From d444521caea93e44a9128fcaec01122b2e1fd58a Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Fri, 7 Mar 2008 17:53:50 +0000 Subject: [PATCH] More adjustments for svn builds. --- cups.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cups.spec b/cups.spec index 88dbd81..a21ffe3 100644 --- a/cups.spec +++ b/cups.spec @@ -1,4 +1,4 @@ -#define svn 7356 +#define svn 7370 %define initdir /etc/rc.d/init.d %define use_alternatives 1 %define lspp 1 @@ -58,6 +58,9 @@ Requires: %{name}-libs = %{epoch}:%{version}-%{release} Provides: /usr/bin/lpq /usr/bin/lpr /usr/bin/lp /usr/bin/cancel /usr/bin/lprm /usr/bin/lpstat Prereq: /usr/sbin/alternatives %endif +%if %{?svn:1}%{!?svn:0} +Requires: poppler-utils +%endif # Unconditionally obsolete LPRng so that upgrades work properly. Obsoletes: lpd lpr LPRng <= 3.8.15-3 @@ -183,9 +186,8 @@ export CFLAGS="-DLDAP_DEPRECATED=1" %if %lspp --enable-lspp \ %endif - %{?svn:--enable-pdftops} \ --with-log-file-perm=0600 --enable-pie --enable-relro \ - --with-dbusdir=%{_sysconfdir}/dbus-1 \ + --enable-pdftops --with-dbusdir=%{_sysconfdir}/dbus-1 \ localedir=%{_datadir}/locale # If we got this far, all prerequisite libraries must be here. @@ -277,6 +279,8 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/icons %if %{?svn:1}%{!?svn:0} rm -f $RPM_BUILD_ROOT%{_bindir}/ppd{c,html,i,merge,po} +rm -f $RPM_BUILD_ROOT%{cups_serverbin}/filter/{command,raster}to{escpx,pclx} +rm -f $RPM_BUILD_ROOT%{cups_serverbin}/driver/drv rm -rf $RPM_BUILD_ROOT%{_datadir}/cups/ppdc %endif