[php-pecl-apc] - Ship apc.php in a static location as well, so that it is easier to refer to in webserver configu

Jeroen van Meeuwen kanarip at fedoraproject.org
Thu Jul 21 17:28:22 UTC 2011


commit 0ffe538a177607a1e901f374ac44a4337619b182
Author: Jeroen van Meeuwen (Ergo Project) <jeroen.van.meeuwen at ergo-project.org>
Date:   Thu Jul 21 13:28:06 2011 -0400

    - Ship apc.php in a static location as well, so that it is easier to
      refer to in webserver configuration files (monitoring...)
    - Fix the apostrophes messing with the syntax highlighting of your
      favorite editor

 php-pecl-apc.spec |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/php-pecl-apc.spec b/php-pecl-apc.spec
index f3b6940..89f828d 100644
--- a/php-pecl-apc.spec
+++ b/php-pecl-apc.spec
@@ -7,7 +7,7 @@
 Summary:       APC caches and optimizes PHP intermediate code
 Name:          php-pecl-apc
 Version:       3.1.9
-Release:       1%{?dist}
+Release:       2%{?dist}
 License:       PHP
 Group:         Development/Languages
 URL:           http://pecl.php.net/package/APC
@@ -77,6 +77,9 @@ pushd APC-%{version}
 %{__rm} -rf %{buildroot}
 %{__make} install INSTALL_ROOT=%{buildroot}
 
+mkdir -p %{buildroot}/%{_datadir}/%{name}
+cp -a apc.php %{buildroot}/%{_datadir}/%{name}/.
+
 # Fix the charset of NOTICE
 iconv -f iso-8859-1 -t utf8 NOTICE >NOTICE.utf8
 mv NOTICE.utf8 NOTICE
@@ -102,10 +105,10 @@ apc.shm_segments=1
 ; The size of each shared memory segment, with M/G suffixe
 apc.shm_size=64M
 ; 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;
+; requested on your web server. Set to zero or omit if you are 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;
+; variables to store.  Set to zero or omit if you are 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.
@@ -133,7 +136,7 @@ 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.
+; sure inodes have not 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
@@ -193,6 +196,8 @@ 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
 
@@ -201,6 +206,12 @@ fi
 
 
 %changelog
+* Thu Jul 21 2011 Jeroen van Meeuwen <kanarip at kanarip.com> - 3.1.9-2
+- Ship apc.php in a static location as well, so that it is easier to
+  refer to in webserver configuration files (monitoring...)
+- Fix the apostrophes messing with the syntax highlighting of your
+  favorite editor
+
 * Sun May 15 2011 Remi Collet <Fedora at FamilleCollet.com> - 3.1.9-1
 - update to 3.1.9 (bugfix, stable)
 


More information about the scm-commits mailing list