]> git.pld-linux.org Git - packages/cups.git/commitdiff
- fixed bconds, changelog cosmetics
authoreothane <eothane@pld-linux.org>
Sat, 31 Jan 2004 21:21:10 +0000 (21:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cups.spec -> 1.97

cups.spec

index bbc60d41659b7e8cdbf937a690d20df13878b4fc..4fd5c5a9312c06d174ed789f94eff1cbaa9a71c7 100644 (file)
--- a/cups.spec
+++ b/cups.spec
@@ -42,7 +42,7 @@ BuildRequires:        libtiff-devel
 BuildRequires: openslp-devel
 BuildRequires: openssl-devel >= 0.9.7c
 BuildRequires: pam-devel
-%{?!_without_php:BuildRequires:        php-devel}
+%{?with_php:BuildRequires:     php-devel}
 BuildRequires: pkgconfig
 BuildRequires: rpm-perlprov
 PreReq:                %{name}-libs = %{epoch}:%{version}
@@ -248,9 +248,9 @@ pod
 %{__make}
 
 perl -pi -e 's#-I\.\.\/\.\.#-I../.. -I../../cups#g' scripting/php/Makefile
-%{?!_without_php:%{__make} -C scripting/php}
+%{?with_php:%{__make} -C scripting/php}
 
-%if 0%{?!_without_perl:1}
+%if %{with perl}
 cd scripting/perl
 %{__perl} -pi -e 's@-lcups@-L../../cups $1@' Makefile.PL
 %{__perl} Makefile.PL \
@@ -277,12 +277,12 @@ if [ "%{_lib}" != "lib" ] ; then
        mv $RPM_BUILD_ROOT%{_ulibdir}/*.a $RPM_BUILD_ROOT%{_libdir}
 fi
 
-%if 0%{?!_without_php:1}
+%if %{with php}
 %{__make} -C scripting/php install \
        PHPDIR="$RPM_BUILD_ROOT`php-config --extension-dir`"
 %endif
 
-%if 0%{?!_without_perl:1}
+%if %{with perl}
 cd scripting/perl
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -441,7 +441,7 @@ fi
 %defattr(644,root,root,755)
 %{_libdir}/*.a
 
-%if 0%{?!_without_perl:1}
+%if %{with perl}
 %files -n perl-cups
 %defattr(644,root,root,755)
 %{perl_vendorarch}/*.pm
@@ -451,7 +451,7 @@ fi
 %attr(755,root,root) %{perl_vendorarch}/auto/CUPS/*.so
 %endif
 
-%if 0%{?!_without_php:1}
+%if %{with php}
 %files -n php-cups
 %defattr(644,root,root,755)
 %attr(755,root,root) %(php-config --extension-dir)/*
This page took 0.043598 seconds and 4 git commands to generate.