Author: glen                         Date: Thu Sep 15 18:43:26 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- conf.d and php api version support; doesn't compile anyway

---- Files affected:
SPECS:
   php-pxv.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SPECS/php-pxv.spec
diff -u SPECS/php-pxv.spec:1.10 SPECS/php-pxv.spec:1.11
--- SPECS/php-pxv.spec:1.10     Wed Sep  7 16:17:31 2005
+++ SPECS/php-pxv.spec  Thu Sep 15 20:43:21 2005
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+# TODO
+# - doesn't compile
+%define                _sysconfdir     /etc/php
+%define                extensionsdir   %(php-config --extension-dir 
2>/dev/null)
 Summary:       PHP XML Validator
 Summary(pl):   Narzędzie do kontroli poprawności XML-a w PHP
 Name:          php-pxv
@@ -12,7 +16,8 @@
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: libxml2-devel
-BuildRequires: php-devel
+BuildRequires: php-devel >= 3:5.0.0
+BuildRequires: rpmbuild(macros) >= 1.238
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -30,7 +35,7 @@
 %{__autoheader}
 %{__automake}
 %configure \
-       --libdir=%{_libdir}/php
+       --libdir=%{extensionsdir}
 %{__make}
 
 %install
@@ -43,18 +48,20 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%preun
-if [ "$1" = "0" ]; then
-       %{_sbindir}/php-module-install remove pxv %{_sysconfdir}/php.ini
-fi
-
 %post
-%{_sbindir}/php-module-install install pxv %{_sysconfdir}/php.ini
+[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
+[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+
+%postun
+if [ "$1" = 0 ]; then
+       [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache 
restart
+       [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd 
restart
+fi
 
 %files
 %defattr(644,root,root,755)
 %doc README ChangeLog
-%{_libdir}/php/*
+%{extensionsdir}/*
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -62,6 +69,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2005/09/15 18:43:21  glen
+- conf.d and php api version support; doesn't compile anyway
+
 Revision 1.10  2005/09/07 14:17:31  glen
 - autotools called directly, revert last change
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php-pxv.spec?r1=1.10&r2=1.11&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to