rpms/php-pecl-apc/devel .cvsignore, 1.4, 1.5 php-pecl-apc.spec, 1.10, 1.11 sources, 1.5, 1.6
Remi Collet
remi at fedoraproject.org
Mon Jul 13 06:56:01 UTC 2009
Author: remi
Update of /cvs/extras/rpms/php-pecl-apc/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13010
Modified Files:
.cvsignore php-pecl-apc.spec sources
Log Message:
update to 3.1.2 - PHP 5.3.0 Support
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/php-pecl-apc/devel/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- .cvsignore 28 Jun 2007 13:41:58 -0000 1.4
+++ .cvsignore 13 Jul 2009 06:56:00 -0000 1.5
@@ -1 +1 @@
-APC-3.0.14.tgz
+APC-3.1.2.tgz
Index: php-pecl-apc.spec
===================================================================
RCS file: /cvs/extras/rpms/php-pecl-apc/devel/php-pecl-apc.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- php-pecl-apc.spec 26 Feb 2009 22:34:21 -0000 1.10
+++ php-pecl-apc.spec 13 Jul 2009 06:56:00 -0000 1.11
@@ -6,15 +6,17 @@
Summary: APC caches and optimizes PHP intermediate code
Name: php-pecl-apc
-Version: 3.0.19
-Release: 2%{?dist}
+Version: 3.1.2
+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 php-pear
+BuildRequires: php-devel >= 5.1.0, httpd-devel, php-pear, pcre-devel
+Requires(post): %{__pecl}
+Requires(postun): %{__pecl}
%if %{?php_zend_api}0
# Require clean ABI/API versions if available (Fedora)
Requires: php(zend-abi) = %{php_zend_api}
@@ -37,64 +39,133 @@ Requires(postun): %{__pecl}
APC is a free, open, and robust framework for caching and optimizing PHP
intermediate code.
+
%prep
-%setup -q -n %{pecl_name}-%{version}
+%setup -q -c
+
%build
+cd APC-%{version}
%{_bindir}/phpize
-%configure --enable-apc-mmap --with-apxs=%{_sbindir}/apxs --with-php-config=%{_bindir}/php-config
+%configure --enable-apc-mmap --with-php-config=%{_bindir}/php-config
%{__make} %{?_smp_mflags}
+
%install
+pushd APC-%{version}
%{__rm} -rf %{buildroot}
%{__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}/%{pecl_name}.xml
+%{__install} -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
# Drop in the bit of configuration
%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
%{__cat} > %{buildroot}%{_sysconfdir}/php.d/apc.ini << 'EOF'
; Enable apc extension module
extension = apc.so
-; Options for the apc module
+
+; Options for the APC module version 3.1.x
+
+; This can be set to 0 to disable APC.
apc.enabled=1
+; The number of shared memory segments to allocate for the compiler cache.
apc.shm_segments=1
-apc.optimization=0
+; The size of each shared memory segment in MB.
apc.shm_size=32
+; A "hint" about the number of distinct source files that will be included or
+; requested on your web server. Set to zero or omit if you're not sure;
+apc.num_files_hint=1024
+; Just like num_files_hint, a "hint" about the number of distinct user cache
+; variables to store. Set to zero or omit if you're not sure;
+apc.user_entries_hint=4096
+; The number of seconds a cache entry is allowed to idle in a slot in case this
+; cache entry slot is needed by another entry.
apc.ttl=7200
+; The number of seconds a user cache entry is allowed to idle in a slot in case
+; this cache entry slot is needed by another entry.
apc.user_ttl=7200
-apc.num_files_hint=1024
-apc.mmap_file_mask=/tmp/apc.XXXXXX
-apc.enable_cli=1
+; The number of seconds that a cache entry may remain on the garbage-collection list.
+apc.gc_ttl=3600
+; On by default, but can be set to off and used in conjunction with positive
+; apc.filters so that files are only cached if matched by a positive filter.
apc.cache_by_default=1
+; A comma-separated list of POSIX extended regular expressions.
+apc.filters
+; The mktemp-style file_mask to pass to the mmap module
+apc.mmap_file_mask=/tmp/apc.XXXXXX
+; This file_update_protection setting puts a delay on caching brand new files.
+apc.file_update_protection=2
+; Setting this enables APC for the CLI version of PHP (Mostly for testing and debugging).
+apc.enable_cli=0
+; Prevents large files from being cached
+apc.max_file_size=1M
+; Whether to stat the main script file and the fullpath includes.
+apc.stat=1
+; Vertification with ctime will avoid problems caused by programs such as svn or rsync by making
+; sure inodes havn't changed since the last stat. APC will normally only check mtime.
+apc.stat_ctime=0
+; Whether to canonicalize paths in stat=0 mode or fall back to stat behaviour
+apc.canonicalize=0
+; With write_lock enabled, only one process at a time will try to compile an
+; uncached script while the other processes will run uncached
+apc.write_lock=1
+; Logs any scripts that were automatically excluded from being cached due to early/late binding issues.
+apc.report_autofilter=0
+; RFC1867 File Upload Progress hook handler
+apc.rfc1867=0
+apc.rfc1867_prefix =upload_
+apc.rfc1867_name=APC_UPLOAD_PROGRESS
+apc.rfc1867_freq=0
+apc.rfc1867_ttl=3600
+; Optimize include_once and require_once calls and avoid the expensive system calls used.
+apc.include_once_override=0
+; not documented
+apc.coredump_unmap=0
+apc.file_md5=0
+apc.preload_path
EOF
-# Fix the charset of NOTICE
-iconv -f iso-8859-1 -t utf8 NOTICE >NOTICE.utf8
-mv NOTICE.utf8 NOTICE
+%if 0%{?pecl_install:1}
%post
-%{__pecl} install --nodeps --soft --force --register-only --nobuild %{pecl_xmldir}/%{pecl_name}.xml >/dev/null || :
+%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
+%endif
+%if 0%{?pecl_uninstall:1}
%postun
-if [ $1 -eq 0 ] ; then
-%{__pecl} uninstall --nodeps --ignore-errors --register-only %{pecl_name} >/dev/null || :
+if [ $1 -eq 0 ] ; then
+ %{pecl_uninstall} %{pecl_name} >/dev/null || :
fi
+%endif
+
%clean
%{__rm} -rf %{buildroot}
+
%files
%defattr(-, root, root, 0755)
-%doc TECHNOTES.txt CHANGELOG LICENSE NOTICE TODO INSTALL apc.php
+%doc APC-%{version}/TECHNOTES.txt APC-%{version}/CHANGELOG APC-%{version}/LICENSE
+%doc APC-%{version}/NOTICE APC-%{version}/TODO APC-%{version}/apc.php
+%doc APC-%{version}/INSTALL
%config(noreplace) %{_sysconfdir}/php.d/apc.ini
%{php_extdir}/apc.so
-%{pecl_xmldir}/%{pecl_name}.xml
+%{pecl_xmldir}/%{name}.xml
+
%changelog
+* Sun Jul 12 2009 Remi Collet <Fedora at FamilleCollet.com> - 3.1.2-1
+- update to 3.1.2 (beta) - PHP 5.3 support
+- use setup -q -c
+
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.0.19-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/php-pecl-apc/devel/sources,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- sources 13 Jul 2008 11:17:18 -0000 1.5
+++ sources 13 Jul 2009 06:56:00 -0000 1.6
@@ -1 +1 @@
-951f43d2873e3572f5d5ae71a9b66f90 APC-3.0.19.tgz
+0a18cf164b3e044e27edd4c1d8c3145c APC-3.1.2.tgz
More information about the fedora-extras-commits
mailing list