SPECS: php-wbxml.spec - update build framework to current
glen
glen at pld-linux.org
Thu Apr 27 21:40:57 CEST 2006
Author: glen Date: Thu Apr 27 19:40:57 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- update build framework to current
---- Files affected:
SPECS:
php-wbxml.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/php-wbxml.spec
diff -u SPECS/php-wbxml.spec:1.3 SPECS/php-wbxml.spec:1.4
--- SPECS/php-wbxml.spec:1.3 Thu Nov 3 01:25:44 2005
+++ SPECS/php-wbxml.spec Thu Apr 27 21:40:52 2006
@@ -1,9 +1,12 @@
# $Revision$, $Date$
+%define _modname wbxml
+%define _sysconfdir /etc/php
+%define extensionsdir %(php-config --extension-dir 2>/dev/null)
Summary: PHP WBXML Library wrapper
Summary(pl): Wrapper PHP do biblioteki WBXML
Name: php-wbxml
Version: 0.1
-Release: 0.1
+Release: 0.2
License: PHP 2.02
Group: Libraries
Source0: http://www.k-fish.de/fileadmin/wbxml-%{version}.tar.gz
@@ -11,13 +14,13 @@
URL: http://www.k-fish.de/SyncML_support.57.0.html
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: php-devel
+BuildRequires: php-devel >= 3:5.0.0
BuildRequires: wbxml2-devel
+%{?requires_php_extension}
+Requires: %{_sysconfdir}/conf.d
Requires: wbxml2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _sysconfdir /etc/php
-
%description
This is a simple extension that acts as a wrapper around the
conversion functions in the WBXML Library written by Aymerick Jehanne.
@@ -43,26 +46,34 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/conf.d,%{extensionsdir}}
%{__make} install \
INSTALL_ROOT=$RPM_BUILD_ROOT
+cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
+; Enable %{_modname} extension module
+extension=%{_modname}.so
+EOF
+
%clean
rm -rf $RPM_BUILD_ROOT
-%preun
-if [ "$1" = "0" ]; then
- %{_sbindir}/php-module-install remove wbxml %{_sysconfdir}/php.ini
-fi
-
%post
-%{_sbindir}/php-module-install install wbxml %{_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 CREDITS
-%attr(755,root,root) %{_libdir}/php/*.so
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini
+%attr(755,root,root) %{extensionsdir}/%{_modname}.so
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -70,6 +81,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2006/04/27 19:40:52 glen
+- update build framework to current
+
Revision 1.3 2005/11/03 00:25:44 qboosh
- .so perms, added md5
- License is PHP 2.02 acc. to sources
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php-wbxml.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list