SPECS: php-pecl-mnogosearch.spec - new pecl macros; BR mnogosearch...
glen
glen at pld-linux.org
Thu Jan 4 14:58:12 CET 2007
Author: glen Date: Thu Jan 4 13:58:12 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new pecl macros; BR mnogosearch-devel
---- Files affected:
SPECS:
php-pecl-mnogosearch.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/php-pecl-mnogosearch.spec
diff -u SPECS/php-pecl-mnogosearch.spec:1.2 SPECS/php-pecl-mnogosearch.spec:1.3
--- SPECS/php-pecl-mnogosearch.spec:1.2 Fri Nov 3 00:09:09 2006
+++ SPECS/php-pecl-mnogosearch.spec Thu Jan 4 14:58:05 2007
@@ -1,9 +1,6 @@
# $Revision$, $Date$
%define _modname mnogosearch
%define _status alpha
-%define _sysconfdir /etc/php
-%define extensionsdir %(php-config --extension-dir 2>/dev/null)
-
Summary: %{_modname} - mnoGoSearch extension module for PHP
Summary(pl): %{_modname} - moduł mnoGoSearch dla PHP
Name: php-pecl-%{_modname}
@@ -14,10 +11,11 @@
Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
# Source0-md5: 07fa9afd0c6fa4a3772f84a0eb4f1965
URL: http://pecl.php.net/package/mnogosearch/
+BuildRequires: mnogosearch-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-mnogosearch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -50,13 +48,13 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
+install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
%{__make} install \
-C %{_modname}-%{version} \
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
@@ -65,20 +63,18 @@
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}/CREDITS
-%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
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -86,9 +82,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2007/01/04 13:58:05 glen
+- new pecl macros; BR mnogosearch-devel
+
Revision 1.2 2006/11/02 23:09:09 glen
- BR rpmmacros for fixed %requires_php_extension
Revision 1.1 2006/07/15 19:14:19 adamg
- mnogosearch extension is now part of PECL
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php-pecl-mnogosearch.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list