[php-pecl-apc] PHP 5.4.0 Build
Remi Collet
remi at fedoraproject.org
Fri Jan 20 16:47:09 UTC 2012
commit 6aaebf737fc733d3abd78cd185c317cdf9aa8d08
Author: remi <fedora at famillecollet.com>
Date: Fri Jan 20 17:46:39 2012 +0100
PHP 5.4.0 Build
.gitignore | 1 +
php-pecl-apc.spec | 50 ++++++++++++++++++++++++++++++++------------------
sources | 2 +-
3 files changed, 34 insertions(+), 19 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 797aee1..4c7460d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
*~
/APC-3.1.8.tgz
/APC-3.1.9.tgz
+/apc-svn316786.tgz
diff --git a/php-pecl-apc.spec b/php-pecl-apc.spec
index 86676e7..d4b5e8e 100644
--- a/php-pecl-apc.spec
+++ b/php-pecl-apc.spec
@@ -1,17 +1,26 @@
%{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}}
-%global php_extdir %(%{_bindir}/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)
%global pecl_name APC
+%global svnver 316786
+
Summary: APC caches and optimizes PHP intermediate code
Name: php-pecl-apc
Version: 3.1.9
-Release: 3%{?dist}
License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/APC
+%if 0%{?svnver}
+# svn export -r 316786 https://svn.php.net/repository/pecl/apc/trunk apc-svn316786
+# tar czf apc-svn316786.tgz apc-svn316786
+Source: apc-svn%{svnver}.tgz
+Release: 4.svn%{svnver}%{?dist}
+%else
+Release: 3%{?dist}
Source: http://pecl.php.net/get/APC-%{version}.tgz
+%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Conflicts: php-mmcache php-eaccelerator
@@ -36,11 +45,11 @@ Provides: php-pecl(%{pecl_name}) = %{version}
Requires(post): %{__pecl}
Requires(postun): %{__pecl}
-
-%{?filter_setup:
-%filter_provides_in %{php_extdir}/.*\.so$
-%filter_setup
-}
+# RPM 4.8
+%{?filter_provides_in: %filter_provides_in %{php_extdir}/.*\.so$}
+%{?filter_setup}
+# RPM 4.9
+%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}%{php_extdir}/.*\\.so$
%description
@@ -61,6 +70,11 @@ These are the files needed to compile programs using APC serializer.
%prep
%setup -q -c
+%if 0%{?svnver}
+mv apc-svn%{svnver}/package.xml .
+mv apc-svn%{svnver} APC-%{version}
+%endif
+
# Check than upstream version is correct, http://pecl.php.net/bugs/19590
grep '"%{version}"' APC-%{version}/php_apc.h || exit 1
@@ -69,25 +83,22 @@ grep '"%{version}"' APC-%{version}/php_apc.h || exit 1
cd APC-%{version}
%{_bindir}/phpize
%configure --enable-apc-mmap --with-php-config=%{_bindir}/php-config
-%{__make} %{?_smp_mflags}
+make %{?_smp_mflags}
%install
+rm -rf %{buildroot}
pushd APC-%{version}
-%{__rm} -rf %{buildroot}
-%{__make} install INSTALL_ROOT=%{buildroot}
-
-mkdir -p %{buildroot}/%{_datadir}/%{name}
-cp -a apc.php %{buildroot}/%{_datadir}/%{name}/.
+make install INSTALL_ROOT=%{buildroot}
# Fix the charset of NOTICE
iconv -f iso-8859-1 -t utf8 NOTICE >NOTICE.utf8
mv NOTICE.utf8 NOTICE
popd
+
# Install the package XML file
-%{__mkdir_p} %{buildroot}%{pecl_xmldir}
-%{__install} -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
+install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
# Drop in the bit of configuration
%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
@@ -187,7 +198,7 @@ fi
%clean
-%{__rm} -rf %{buildroot}
+rm -rf %{buildroot}
%files
@@ -196,8 +207,6 @@ fi
%doc APC-%{version}/NOTICE APC-%{version}/TODO APC-%{version}/apc.php
%doc APC-%{version}/INSTALL
%config(noreplace) %{_sysconfdir}/php.d/apc.ini
-%dir %{_datadir}/%{name}
-%{_datadir}/%{name}/apc.php
%{php_extdir}/apc.so
%{pecl_xmldir}/%{name}.xml
@@ -206,6 +215,11 @@ fi
%changelog
+* Thu Jan 19 2012 Remi Collet <remi at fedoraproject.org> - 3.1.9-4.svn316786
+- rebuild against php 5.4
+- keep apc.php as doc
+- fix filters
+
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.1.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
diff --git a/sources b/sources
index e104ac4..99f6181 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a2cf7fbf6f3a87f190d897a53260ddaa APC-3.1.9.tgz
+a3f3dca6ab27d01c0e26040eea8cb0b5 apc-svn316786.tgz
More information about the scm-commits
mailing list