commit 6de9b624a486b4d1b6054037d87b23b881545bcb
Author: Elan Ruusamäe <[email protected]>
Date:   Wed Dec 20 12:02:21 2006 +0000

    - mark extension stable
    - use new pecl rpm macros
    
    Changed files:
        php-pecl-flvinfo.spec -> 1.6

 php-pecl-flvinfo.spec | 25 +++++++++++--------------
 1 file changed, 11 insertions(+), 14 deletions(-)
---
diff --git a/php-pecl-flvinfo.spec b/php-pecl-flvinfo.spec
index 419f5b5..80fb8f1 100644
--- a/php-pecl-flvinfo.spec
+++ b/php-pecl-flvinfo.spec
@@ -1,12 +1,11 @@
 %define                _modname        flvinfo
-%define                _status         beta
+%define                _status         stable
 %define                _sysconfdir     /etc/php
 %define                extensionsdir   %(php-config --extension-dir 
2>/dev/null)
-
 Summary:       %{_modname} - Provides file info of FLV files
 Name:          php-pecl-%{_modname}
 Version:       0.0.5
-Release:       2
+Release:       3
 License:       PHP 2.02
 Group:         Development/Languages/PHP
 Source0:       %{_modname}-%{version}.tar.bz2
@@ -14,9 +13,9 @@ Source0:      %{_modname}-%{version}.tar.bz2
 Patch0:                flvinfo-lib64.patch
 BuildRequires: ffmpeg-devel >= 0.4.9-3.20061204.1.3
 BuildRequires: php-devel >= 4:5.0
-BuildRequires: rpmbuild(macros) >= 1.254
+BuildRequires: rpmbuild(macros) >= 1.344
 %{?requires_php_extension}
-Requires:      %{_sysconfdir}/conf.d
+Requires:      php-common >= 4:5.0.4
 Provides:      php(%{_modname})
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -47,12 +46,12 @@ phpize
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/conf.d}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{php_sysconfdir}/conf.d}
 
 %{__make} install \
        INSTALL_ROOT=$RPM_BUILD_ROOT \
-       EXTENSION_DIR=%{extensionsdir}
-cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
+       EXTENSION_DIR=%{php_extensiondir}
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
 ; Enable %{_modname} extension module
 extension=%{_modname}.so
 EOF
@@ -62,20 +61,18 @@ install flvinfo $RPM_BUILD_ROOT%{_bindir}
 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 {CREDITS,EXPERIMENTAL}
-%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
 
 %files -n flvinfo
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-flvinfo.git/commitdiff/c2639c83aa4f843f99d7835c40c8622076addfb5

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

Reply via email to