From bab10c261dc238c10f12445c20e9079dac74b26e Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 18 Mar 2023 16:33:13 +0100 Subject: [PATCH] cups: Fix file permissions in /usr/include and drop /var/run Signed-off-by: Stefan Schantl --- cups/cups.nm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/cups/cups.nm b/cups/cups.nm index d038d41c8..113819ee2 100644 --- a/cups/cups.nm +++ b/cups/cups.nm @@ -5,7 +5,7 @@ name = cups version = 2.3.6 -release = 2 +release = 3 groups = Applications/Printing url = https://cups.org/software.php @@ -56,12 +56,20 @@ build --enable-webif \ --with-xinetd=no - install - make install BUILDROOT=%{BUILDROOT} + make_install_targets += \ + BUILDROOT=%{BUILDROOT} + install_cmds # Install default config file. mkdir -pv %{BUILDROOT}/etc/cups cp -vf %{DIR_APP}/conf/cupsd.conf %{BUILDROOT}/etc/cups/ + + # Fix file permissions in /usr/include + find %{BUILDROOT}%{includedir} -type f -iname "*.h" \ + -exec chmod 644 {} \; + + # Drop /var/run + rm -rvf %{BUILDROOT}%{localstatedir}/run end end -- 2.47.3