SPECS: php-pecl-cvsclient.spec, php-pecl-cyrus.spec, php-pecl-ecas...
glen
glen at pld-linux.org
Wed Sep 14 01:02:58 CEST 2005
Author: glen Date: Tue Sep 13 23:02:58 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added conf.d and php api version
---- Files affected:
SPECS:
php-pecl-cvsclient.spec (1.6 -> 1.7) , php-pecl-cyrus.spec (1.6 -> 1.7) , php-pecl-ecasound.spec (1.10 -> 1.11) , php-pecl-enchant.spec (1.8 -> 1.9)
---- Diffs:
================================================================
Index: SPECS/php-pecl-cvsclient.spec
diff -u SPECS/php-pecl-cvsclient.spec:1.6 SPECS/php-pecl-cvsclient.spec:1.7
--- SPECS/php-pecl-cvsclient.spec:1.6 Tue Sep 13 23:16:43 2005
+++ SPECS/php-pecl-cvsclient.spec Wed Sep 14 01:02:53 2005
@@ -1,25 +1,26 @@
# $Revision$, $Date$
%define _modname cvsclient
%define _status beta
+%define _sysconfdir /etc/php
+%define extensionsdir %(php-config --extension-dir 2>/dev/null)
Summary: %{_modname} - CVS pserver client
Summary(pl): %{_modname} - klient CVS pserver
Name: php-pecl-%{_modname}
Version: 0.2
-Release: 1
+Release: 1.1
License: PHP
Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
# Source0-md5: d25ca6d7797118edf37817fcb7e93bc7
URL: http://pecl.php.net/package/cvsclient/
-BuildRequires: php-devel
-Requires: php-common
+BuildRequires: php-devel >= 3:5.0.0
+BuildRequires: rpmbuild(macros) >= 1.238
+%requires_php_extension
+Requires: %{_sysconfdir}/conf.d
Obsoletes: php-pear-%{_modname}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _sysconfdir /etc/php
-%define extensionsdir %{_libdir}/php
-
%description
pserver client extension. Current version has read-only streams
wrapper. Later versions to include commit/diff/log support.
@@ -44,23 +45,30 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{extensionsdir}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/conf.d,%{extensionsdir}}
install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
+cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
+; Enable %{_modname} extension module
+extension=%{_modname}.so
+EOF
%clean
rm -rf $RPM_BUILD_ROOT
%post
-%{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.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
-%preun
-if [ "$1" = "0" ]; then
- %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
+%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)
+%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"`)
@@ -69,6 +77,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2005/09/13 23:02:53 glen
+- added conf.d and php api version
+
Revision 1.6 2005/09/13 21:16:43 glen
- superfluous BR libtool removed
================================================================
Index: SPECS/php-pecl-cyrus.spec
diff -u SPECS/php-pecl-cyrus.spec:1.6 SPECS/php-pecl-cyrus.spec:1.7
--- SPECS/php-pecl-cyrus.spec:1.6 Tue Sep 13 23:16:43 2005
+++ SPECS/php-pecl-cyrus.spec Wed Sep 14 01:02:53 2005
@@ -1,6 +1,8 @@
# $Revision$, $Date$
%define _modname cyrus
%define _status stable
+%define _sysconfdir /etc/php
+%define extensionsdir %(php-config --extension-dir 2>/dev/null)
Summary: %{_modname} - eases manipulation of IMAP servers
Summary(pl): %{_modname} - ułatwienie manipulacji serwerami IMAP
@@ -13,14 +15,13 @@
# Source0-md5: f0749ead144a8ddfd29d2961057d181b
URL: http://pecl.php.net/package/cyrus/
BuildRequires: cyrus-imapd-devel
-BuildRequires: php-devel
-Requires: php-common
+BuildRequires: php-devel >= 3:5.0.0
+BuildRequires: rpmbuild(macros) >= 1.238
+%requires_php_extension
+Requires: %{_sysconfdir}/conf.d
Obsoletes: php-pear-%{_modname}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _sysconfdir /etc/php
-%define extensionsdir %{_libdir}/php
-
%description
An extension which eases the manipulation of Cyrus IMAP servers.
@@ -42,23 +43,30 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{extensionsdir}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/conf.d,%{extensionsdir}}
install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
+cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
+; Enable %{_modname} extension module
+extension=%{_modname}.so
+EOF
%clean
rm -rf $RPM_BUILD_ROOT
%post
-%{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.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
-%preun
-if [ "$1" = "0" ]; then
- %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
+%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)
+%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"`)
@@ -67,6 +75,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2005/09/13 23:02:53 glen
+- added conf.d and php api version
+
Revision 1.6 2005/09/13 21:16:43 glen
- superfluous BR libtool removed
================================================================
Index: SPECS/php-pecl-ecasound.spec
diff -u SPECS/php-pecl-ecasound.spec:1.10 SPECS/php-pecl-ecasound.spec:1.11
--- SPECS/php-pecl-ecasound.spec:1.10 Tue Sep 13 23:16:43 2005
+++ SPECS/php-pecl-ecasound.spec Wed Sep 14 01:02:53 2005
@@ -1,7 +1,12 @@
# $Revision$, $Date$
+# TODO
+# - doesn't build
%define _modname ecasound
%define _modname_c Ecasound
%define _status beta
+%define _sysconfdir /etc/php
+%define extensionsdir %(php-config --extension-dir 2>/dev/null)
+
Summary: %{_modname} - audio recording and processing functions
Summary(pl): %{_modname} - funkcje do nagrywania i przetwarzania dźwięku
Name: php-pecl-%{_modname}
@@ -14,15 +19,14 @@
Patch0: %{name}-search_path.patch
URL: http://pecl.php.net/package/ecasound/
BuildRequires: ecasound-devel
-BuildRequires: php-devel
-Requires: php-common
+BuildRequires: php-devel >= 3:5.0.0
+BuildRequires: rpmbuild(macros) >= 1.238
+%requires_php_extension
+Requires: %{_sysconfdir}/conf.d
Obsoletes: php-Ecasound
Obsoletes: php-pear-%{_modname}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _sysconfdir /etc/php
-%define extensionsdir %{_libdir}/php
-
%description
This extension wraps the Ecasound libraries to provide advanced audio
processing capabilities.
@@ -43,27 +47,34 @@
cd %{_modname_c}-%{version}
phpize
%configure
-%{__make}
+%{__make} -j1
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{extensionsdir}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/conf.d,%{extensionsdir}}
install %{_modname_c}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
+cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
+; Enable %{_modname} extension module
+extension=%{_modname}.so
+EOF
%clean
rm -rf $RPM_BUILD_ROOT
%post
-%{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.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
-%preun
-if [ "$1" = "0" ]; then
- %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
+%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)
+%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"`)
@@ -72,6 +83,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.11 2005/09/13 23:02:53 glen
+- added conf.d and php api version
+
Revision 1.10 2005/09/13 21:16:43 glen
- superfluous BR libtool removed
================================================================
Index: SPECS/php-pecl-enchant.spec
diff -u SPECS/php-pecl-enchant.spec:1.8 SPECS/php-pecl-enchant.spec:1.9
--- SPECS/php-pecl-enchant.spec:1.8 Tue Sep 13 23:16:43 2005
+++ SPECS/php-pecl-enchant.spec Wed Sep 14 01:02:53 2005
@@ -1,6 +1,8 @@
# $Revision$, $Date$
%define _modname enchant
%define _status stable
+%define _sysconfdir /etc/php
+%define extensionsdir %(php-config --extension-dir 2>/dev/null)
Summary: %{_modname} - libenchant binder
Summary(pl): %{_modname} - dowiązania biblioteki libenchant
@@ -13,14 +15,13 @@
# Source0-md5: c8fd6f0d8f2b25bc23ab6472d8ac5232
URL: http://pecl.php.net/package/enchant/
BuildRequires: enchant-devel
-BuildRequires: php-devel
-Requires: php-common
+BuildRequires: php-devel >= 3:5.0.0
+BuildRequires: rpmbuild(macros) >= 1.238
+%requires_php_extension
+Requires: %{_sysconfdir}/conf.d
Obsoletes: php-pear-%{_modname}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _sysconfdir /etc/php
-%define extensionsdir %{_libdir}/php
-
%description
Enchant is a binder for libenchant. Libenchant provides a common API
for many spell libraries:
@@ -56,24 +57,31 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{extensionsdir}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/conf.d,%{extensionsdir}}
install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
+cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
+; Enable %{_modname} extension module
+extension=%{_modname}.so
+EOF
%clean
rm -rf $RPM_BUILD_ROOT
%post
-%{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.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
-%preun
-if [ "$1" = "0" ]; then
- %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
+%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 %{_modname}-%{version}/{docs,CREDITS}
+%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"`)
@@ -82,6 +90,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.9 2005/09/13 23:02:53 glen
+- added conf.d and php api version
+
Revision 1.8 2005/09/13 21:16:43 glen
- superfluous BR libtool removed
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php-pecl-cvsclient.spec?r1=1.6&r2=1.7&f=u
http://cvs.pld-linux.org/SPECS/php-pecl-cyrus.spec?r1=1.6&r2=1.7&f=u
http://cvs.pld-linux.org/SPECS/php-pecl-ecasound.spec?r1=1.10&r2=1.11&f=u
http://cvs.pld-linux.org/SPECS/php-pecl-enchant.spec?r1=1.8&r2=1.9&f=u
More information about the pld-cvs-commit
mailing list