SPECS: php-mmcache.spec - also zend exteions, add zend api version...
glen
glen at pld-linux.org
Sat Sep 17 01:14:41 CEST 2005
Author: glen Date: Fri Sep 16 23:14:41 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- also zend exteions, add zend api version dep
- unified
---- Files affected:
SPECS:
php-mmcache.spec (1.33 -> 1.34)
---- Diffs:
================================================================
Index: SPECS/php-mmcache.spec
diff -u SPECS/php-mmcache.spec:1.33 SPECS/php-mmcache.spec:1.34
--- SPECS/php-mmcache.spec:1.33 Sat Sep 17 01:10:56 2005
+++ SPECS/php-mmcache.spec Sat Sep 17 01:14:36 2005
@@ -1,15 +1,15 @@
# $Revision$, $Date$
-%define _name mmcache
+%define _modname mmcache
%define _pkgname turck-mmcache
-%define php_ver %(rpm -q --qf '%%{epoch}:%%{version}' php-devel)
%define _sysconfdir /etc/php
-%define extensionsdir %{_libdir}/php
+%define extensionsdir %(php-config --extension-dir 2>/dev/null)
Summary: Turck MMCache extension module for PHP
Summary(pl): Moduł Turck MMCache dla PHP
-Name: php-%{_name}
+Name: php-%{_modname}
Version: 2.4.6
Release: 7
+Epoch: 0
License: GPL
Group: Libraries
Vendor: Turck Software
@@ -19,6 +19,8 @@
BuildRequires: php-devel >= 3:5.0.0
BuildRequires: rpmbuild(macros) >= 1.238
%{?requires_php_extension}
+%{?requires_zend_extension}
+Requires: %{_sysconfdir}/conf.d
Requires: apache >= 1.3
Requires: php-zlib
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -46,6 +48,7 @@
Group: Libraries
Requires: apache >= 1.3
%{?requires_php_extension}
+%{?requires_zend_extension}
Provides: TurckLoader = %{epoch}:%{version}-%{release}
%description TurckLoader
@@ -106,9 +109,9 @@
install ./mmcache.php $RPM_BUILD_ROOT%{_bindir}
install ./TurckLoader/modules/TurckLoader.so $RPM_BUILD_ROOT%{extensionsdir}
-cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_name}.ini
-; Enable %{_name} extension module
-extension=%{_name}.so
+cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
+; Enable %{_modname} extension module
+extension=%{_modname}.so
EOF
cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/TurckLoader.ini
@@ -148,8 +151,8 @@
%files
%defattr(644,root,root,755)
%doc CREDITS EXPERIMENTAL README TODO
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini
%attr(755,root,root) %{extensionsdir}/mmcache.so
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_name}.ini
%attr(755,root,root) %{_bindir}/encoder.php
%files TurckLoader
@@ -169,6 +172,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.34 2005/09/16 23:14:36 glen
+- also zend exteions, add zend api version dep
+- unified
+
Revision 1.33 2005/09/16 23:10:56 glen
- added README.loader to TurckLoader package %doc
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php-mmcache.spec?r1=1.33&r2=1.34&f=u
More information about the pld-cvs-commit
mailing list