The RPM needed to be run as root to chmod to
two directories to lp. By add CHMOD="echo chmod "
you can build as a normal user.
There was also a missing space on the line that
set the permissions on the files that where failing
becuase of the chmod.
--- cups.spec.orig Tue Apr 23 23:24:29 2002
+++ cups.spec Tue Apr 23 23:25:11 2002
@@ -71,7 +71,8 @@
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc3.d
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc5.d
-make prefix=$RPM_BUILD_ROOT \
+make CHOWN="echo chmod " \
+ prefix=$RPM_BUILD_ROOT \
exec_prefix=$RPM_BUILD_ROOT/usr \
BINDIR=$RPM_BUILD_ROOT/usr/bin \
DATADIR=$RPM_BUILD_ROOT/usr/share/cups \
@@ -162,7 +163,7 @@
%dir /usr/share/locale
/usr/share/locale/*
%attr(0700,lp,root) %dir /var/spool/cups
-%attr(1700,lp,root) %dir/var/spool/cups/tmp
+%attr(1700,lp,root) %dir /var/spool/cups/tmp
%files devel
%dir /usr/include/cups
Anonymous
patch file