rpms/php-pecl-apc/EL-5 .cvsignore, 1.3, 1.4 php-pecl-apc.spec, 1.5, 1.6 sources, 1.3, 1.4
Tim Jackson (timj)
fedora-extras-commits at redhat.com
Thu Jun 26 08:01:50 UTC 2008
Author: timj
Update of /cvs/pkgs/rpms/php-pecl-apc/EL-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31938
Modified Files:
.cvsignore php-pecl-apc.spec sources
Log Message:
Prepare for initial EPEL release:
- Update to upstream version 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
- Fix rpmlint warnings
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/php-pecl-apc/EL-5/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- .cvsignore 15 Sep 2006 05:24:08 -0000 1.3
+++ .cvsignore 26 Jun 2008 08:00:57 -0000 1.4
@@ -1 +1 @@
-APC-3.0.12p2.tgz
+APC-3.0.19.tgz
Index: php-pecl-apc.spec
===================================================================
RCS file: /cvs/pkgs/rpms/php-pecl-apc/EL-5/php-pecl-apc.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- php-pecl-apc.spec 15 Sep 2006 05:24:08 -0000 1.5
+++ php-pecl-apc.spec 26 Jun 2008 08:00:57 -0000 1.6
@@ -1,38 +1,60 @@
+%{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}}
%define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php4)
-%define php_apiver %((echo %{default_apiver}; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
+%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.12
+Version: 3.0.19
Release: 1%{?dist}
-License: PHP License
+License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/APC
-Source: http://pecl.php.net/get/APC-%{version}p2.tgz
+Source: http://pecl.php.net/get/APC-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-Requires: php-api = %{php_apiver}
Conflicts: php-mmcache php-eaccelerator
-BuildRequires: php-devel httpd-devel
-Provides: php-apc = %{version}-%{release}
-Obsoletes: php-apc
-Provides: php-pecl(apc)
+BuildRequires: php-devel httpd-devel php-pear
+%if %{?php_zend_api}0
+# 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
+# RHEL4 where we have no php-common and nothing providing the Zend ABI...
+Requires: php = %{php_version}
+%endif
+%endif
+Provides: php-pecl(%{pecl_name}) = %{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}p2
+%setup -q -n %{pecl_name}-%{version}
%build
+#cd APC-%{version}
%{_bindir}/phpize
%configure --enable-apc-mmap --with-apxs=%{_sbindir}/apxs --with-php-config=%{_bindir}/php-config
%{__make} %{?_smp_mflags}
%install
+#cd APC-%{version}
%{__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'
@@ -51,6 +73,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}
@@ -59,8 +94,26 @@
%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.
+
+* Thu Jun 28 2007 Chris Chabot <chabotc at xs4all.nl> - 3.0.14-1
+- Updated to 3.0.14
+- Included new php api snipplets
+
* Fri Sep 15 2006 Chris Chabot <chabotc at xs4all.nl> - 3.0.12-5
- Updated to new upstream version
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/php-pecl-apc/EL-5/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sources 15 Sep 2006 05:24:08 -0000 1.3
+++ sources 26 Jun 2008 08:00:57 -0000 1.4
@@ -1 +1 @@
-e7f1762ee95cdaaf90cf16345c6228a3 APC-3.0.12p2.tgz
+951f43d2873e3572f5d5ae71a9b66f90 APC-3.0.19.tgz
More information about the fedora-extras-commits
mailing list