diff options
author | Elan Ruusamäe | 2006-12-14 23:48:52 (GMT) |
---|---|---|
committer | cvs2git | 2012-06-24 12:13:13 (GMT) |
commit | 7ef0fd522bdbd5630aad2bf036f0bba5a9a88829 (patch) | |
tree | c435cee6c63f50668ad8e109c5aae8be99e1007b | |
parent | 7580fc6e62f9da3ca676fccbe7143877dae393e4 (diff) | |
download | php-pecl-archive-7ef0fd522bdbd5630aad2bf036f0bba5a9a88829.zip php-pecl-archive-7ef0fd522bdbd5630aad2bf036f0bba5a9a88829.tar.gz |
- use new php extension related macros
Changed files:
php-pecl-archive.spec -> 1.12
-rw-r--r-- | php-pecl-archive.spec | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/php-pecl-archive.spec b/php-pecl-archive.spec index 31b4198..b820848 100644 --- a/php-pecl-archive.spec +++ b/php-pecl-archive.spec @@ -1,7 +1,5 @@ %define _modname archive %define _status beta -%define _sysconfdir /etc/php -%define extensionsdir %(php-config --extension-dir 2>/dev/null) Summary: %{_modname} - manipulate tar/cpio archives Summary(pl): %{_modname} - obróbka archiwów tar/cpio Name: php-pecl-%{_modname} @@ -14,9 +12,9 @@ Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz URL: http://pecl.php.net/package/archive/ BuildRequires: libarchive-devel BuildRequires: php-devel >= 3:5.0.0 -BuildRequires: rpmbuild(macros) >= 1.322 +BuildRequires: rpmbuild(macros) >= 1.344 %{?requires_php_extension} -Requires: %{_sysconfdir}/conf.d +Requires: php-common >= 4:5.0.4 Obsoletes: php-pear-%{_modname} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -43,10 +41,10 @@ phpize %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_sysconfdir}/conf.d,%{extensionsdir}} +install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}} -install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir} -cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini +install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir} +cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini ; Enable %{_modname} extension module extension=%{_modname}.so EOF @@ -55,17 +53,15 @@ EOF 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 +%php_webserver_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 + %php_webserver_restart fi %files %defattr(644,root,root,755) %doc %{_modname}-%{version}/{API.txt,CREDITS,tests} -%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini -%attr(755,root,root) %{extensionsdir}/%{_modname}.so +%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini +%attr(755,root,root) %{php_extensiondir}/%{_modname}.so |