]> git.pld-linux.org Git - packages/apache-mod_perl.git/commitdiff
- added %{apxs} local macro to avoid adapter problems
authorankry <ankry@pld-linux.org>
Sun, 17 Feb 2002 19:01:42 +0000 (19:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fix use of %{apxs} and %{_sbindir}/apxs
- added BR %{apxs} & Prereq %{_sbindir}/apxs (if necessary); removed BR apache

Changed files:
    apache-mod_perl.spec -> 1.17

apache-mod_perl.spec

index 8055dc78f9d78241794b5b69a4b594c4e2f2e340..9856b9be45edae0f1d5a0801e72478d91656c901 100644 (file)
@@ -1,4 +1,5 @@
 %include       /usr/lib/rpm/macros.perl
+%define        apxs    /usr/sbin/apxs
 Summary:       A Perl interpreter for the Apache Web server
 Summary(cs):   VestavìnĂ˝ interpret Perlu pro WWW server Apache
 Summary(da):   En indbygget Perl-fortolker for webtjeneren Apache
@@ -52,6 +53,8 @@ BuildRequires:        perl-MIME-Base64
 BuildRequires: perl-URI
 BuildRequires: perl-libwww
 BuildRequires: rpm-perlprov >= 3.0.3-16
+BuildRequires: %{apxs}
+Prereq:                %{_sbindir}/apxs
 Prereq:                apache(EAPI)
 Provides:      perl(mod_perl_hooks)
 Provides:      mod_perl
@@ -198,7 +201,7 @@ Apache web 
 %build
 perl Makefile.PL \
        USE_APXS=1 \
-       WITH_APXS=/usr/sbin/apxs \
+       WITH_APXS=%{apxs} \
        EVERYTHING=1 \
        PERL_STACKED_HANDLERS=1
 
@@ -223,7 +226,7 @@ gzip -9nf README INSTALL ToDo
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/usr/sbin/apxs -e -a -n perl %{_libexecdir}/libperl.so 1>&2
+%{_sbindir}/apxs -e -a -n perl %{_libexecdir}/libperl.so 1>&2
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
@@ -232,7 +235,7 @@ fi
 
 %preun
 if [ "$1" = "0" ]; then
-       /usr/sbin/apxs -e -A -n perl %{_libexecdir}/libperl.so 1>&2
+       %{_sbindir}/apxs -e -A -n perl %{_libexecdir}/libperl.so 1>&2
        if [ -f /var/lock/subsys/httpd ]; then
                /etc/rc.d/init.d/httpd stop 1>&2
        fi
This page took 0.086765 seconds and 4 git commands to generate.