SPECS: php-pecl-newt.spec - only usable in CLI SAPI; rel 2
glen
glen at pld-linux.org
Thu Sep 15 00:28:46 CEST 2005
Author: glen Date: Wed Sep 14 22:28:46 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- only usable in CLI SAPI; rel 2
---- Files affected:
SPECS:
php-pecl-newt.spec (1.9 -> 1.10)
---- Diffs:
================================================================
Index: SPECS/php-pecl-newt.spec
diff -u SPECS/php-pecl-newt.spec:1.9 SPECS/php-pecl-newt.spec:1.10
--- SPECS/php-pecl-newt.spec:1.9 Wed Sep 14 15:37:00 2005
+++ SPECS/php-pecl-newt.spec Thu Sep 15 00:28:40 2005
@@ -8,7 +8,7 @@
Summary(pl): %{_modname} - rozszerzenie dla biblioteki Newt
Name: php-pecl-%{_modname}
Version: 1.0
-Release: 1.1
+Release: 1.2
License: PHP
Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
@@ -19,6 +19,7 @@
BuildRequires: rpmbuild(macros) >= 1.238
%{?requires_php_extension}
Requires: %{_sysconfdir}/conf.d
+Requires: php-cli
Obsoletes: php-pear-%{_modname}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -58,28 +59,21 @@
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
-[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+%{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cli.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
+%preun
+if [ "$1" = "0" ]; then
+ %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cli.ini
fi
%files
%defattr(644,root,root,755)
%doc %{_modname}-%{version}/{CREDITS,TODO}
-%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"`)
@@ -88,6 +82,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.10 2005/09/14 22:28:40 glen
+- only usable in CLI SAPI; rel 2
+
Revision 1.9 2005/09/14 13:37:00 glen
- conf.d and php api macros
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php-pecl-newt.spec?r1=1.9&r2=1.10&f=u
More information about the pld-cvs-commit
mailing list