rpms/php-pecl-apc/F-8 php-pecl-apc.spec,1.7,1.8 sources,1.4,1.5
Tim Jackson (timj)
fedora-extras-commits at redhat.com
Sun Jul 13 09:42:06 UTC 2008
- Previous message: rpms/ntfs-3g/devel .cvsignore, 1.21, 1.22 ntfs-3g.spec, 1.31, 1.32 sources, 1.23, 1.24
- Next message: rpms/mksh/EL-5 .cvsignore, 1.12, 1.13 mksh.spec, 1.13, 1.14 sources, 1.12, 1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: timj
Update of /cvs/pkgs/rpms/php-pecl-apc/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26134
Modified Files:
php-pecl-apc.spec sources
Log Message:
Update to 3.0.19
Usual maintainer has fallen behind with updates and has indicated that he
will welcome assistance
Index: php-pecl-apc.spec
===================================================================
RCS file: /cvs/pkgs/rpms/php-pecl-apc/F-8/php-pecl-apc.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- php-pecl-apc.spec 28 Aug 2007 21:53:01 -0000 1.7
+++ php-pecl-apc.spec 13 Jul 2008 09:41:13 -0000 1.8
@@ -1,31 +1,48 @@
+%{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}}
%define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php4)
+%global php_zendabiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP Extension => //p') | tail -1)
+%global php_version %((echo 0; php-config --version 2>/dev/null) | tail -1)
+%define pecl_name APC
+
Summary: APC caches and optimizes PHP intermediate code
Name: php-pecl-apc
-Version: 3.0.14
-Release: 2%{?dist}
-License: PHP License
+Version: 3.0.19
+Release: 1%{?dist}
+License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/APC
Source: http://pecl.php.net/get/APC-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Conflicts: php-mmcache php-eaccelerator
-BuildRequires: php-devel httpd-devel
-Obsoletes: php-apc
+BuildRequires: php-devel httpd-devel php-pear
%if %{?php_zend_api}0
-Requires: php(zend-abi) = %{php_zend_api}
-Requires: php(api) = %{php_core_api}
+# Require clean ABI/API versions if available (Fedora)
+Requires: php(zend-abi) = %{php_zend_api}
+Requires: php(api) = %{php_core_api}
+%else
+%if "%{rhel}" == "5"
+# RHEL5 where we have php-common providing the Zend ABI the "old way"
+Requires: php-zend-abi = %{php_zendabiver}
%else
-Requires: php-api = %{php_apiver}
+# RHEL4 where we have no php-common and nothing providing the Zend ABI...
+Requires: php = %{php_version}
+%endif
%endif
-Provides: php-apc = %{version}-%{release}
-Provides: php-pecl(apc)
+Provides: php-pecl(%{pecl_name}) = %{version}
+
+# This is obsoleted by the above Provide, but for backwards compatibility
+# with previous versions of the package
+Provides: php-pecl(apc) = %{version}
+
+Requires(post): %{__pecl}
+Requires(postun): %{__pecl}
%description
-APC is a free, open, and robust framework for
-caching and optimizing PHP intermediate code.
+APC is a free, open, and robust framework for caching and optimizing PHP
+intermediate code.
%prep
-%setup -q -n APC-%{version}
+%setup -q -n %{pecl_name}-%{version}
%build
%{_bindir}/phpize
@@ -36,6 +53,10 @@
%{__rm} -rf %{buildroot}
%{__make} install INSTALL_ROOT=%{buildroot}
+# Install the package XML file
+%{__mkdir_p} %{buildroot}%{pecl_xmldir}
+%{__install} -m 644 ../package.xml %{buildroot}%{pecl_xmldir}/%{pecl_name}.xml
+
# Drop in the bit of configuration
%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
%{__cat} > %{buildroot}%{_sysconfdir}/php.d/apc.ini << 'EOF'
@@ -54,6 +75,19 @@
apc.cache_by_default=1
EOF
+# Fix the charset of NOTICE
+iconv -f iso-8859-1 -t utf8 NOTICE >NOTICE.utf8
+mv NOTICE.utf8 NOTICE
+
+%post
+%{__pecl} install --nodeps --soft --force --register-only --nobuild %{pecl_xmldir}/%{pecl_name}.xml >/dev/null || :
+
+
+%postun
+if [ $1 -eq 0 ] ; then
+%{__pecl} uninstall --nodeps --ignore-errors --register-only %{pecl_name} >/dev/null || :
+fi
+
%clean
%{__rm} -rf %{buildroot}
@@ -62,8 +96,19 @@
%doc TECHNOTES.txt CHANGELOG LICENSE NOTICE TODO INSTALL apc.php
%config(noreplace) %{_sysconfdir}/php.d/apc.ini
%{php_extdir}/apc.so
+%{pecl_xmldir}/%{pecl_name}.xml
%changelog
+* Wed Jun 25 2008 Tim Jackson <rpm at timj.co.uk> - 3.0.19-1
+- Update to 3.0.19
+- Fix PHP Zend API/ABI dependencies to work on EL-4/5
+- Fix "License" tag
+- Fix encoding of "NOTICE" file
+- Add registration via PECL
+
+* Mon Feb 18 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 3.0.14-3
+- Autorebuild for GCC 4.3
+
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 3.0.14-2
- Rebuild for selinux ppc32 issue.
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/php-pecl-apc/F-8/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sources 28 Jun 2007 13:41:58 -0000 1.4
+++ sources 13 Jul 2008 09:41:13 -0000 1.5
@@ -1 +1 @@
-0f452f936239b6107d3e2e5cda4f4bda APC-3.0.14.tgz
+951f43d2873e3572f5d5ae71a9b66f90 APC-3.0.19.tgz
- Previous message: rpms/ntfs-3g/devel .cvsignore, 1.21, 1.22 ntfs-3g.spec, 1.31, 1.32 sources, 1.23, 1.24
- Next message: rpms/mksh/EL-5 .cvsignore, 1.12, 1.13 mksh.spec, 1.13, 1.14 sources, 1.12, 1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list