diff --git a/.gitignore b/.gitignore index e69de29..1ce46d1 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/apcu-4.0.1.tgz diff --git a/apcu-panel.conf b/apcu-panel.conf new file mode 100644 index 0000000..e51a40f --- /dev/null +++ b/apcu-panel.conf @@ -0,0 +1,17 @@ +# APC Control Panel +Alias /apcu-panel /usr/share/apcu-panel + + + + # Apache 2.4 + Require local + + + # Apache 2.2 + Order Deny,Allow + Deny from All + Allow from 127.0.0.1 + Allow from ::1 + + + diff --git a/apcu.conf.php b/apcu.conf.php new file mode 100644 index 0000000..8ed5320 --- /dev/null +++ b/apcu.conf.php @@ -0,0 +1,23 @@ +%{buildroot}%{_datadir}/apcu-panel/index.php +# Apache config +install -D -m 644 -p %{SOURCE2} \ + %{buildroot}%{_sysconfdir}/httpd/conf.d/apcu-panel.conf +# Panel config +install -D -m 644 -p %{SOURCE3} \ + %{buildroot}%{_sysconfdir}/apcu-panel/conf.php + + +%check +cd NTS + +# Check than both extensions are reported (BC mode) +%{_bindir}/php -n -d extension_dir=modules -d extension=apcu.so -m | grep 'apcu' +%{_bindir}/php -n -d extension_dir=modules -d extension=apcu.so -m | grep 'apc$' + +# Upstream test suite +TEST_PHP_EXECUTABLE=%{_bindir}/php \ +TEST_PHP_ARGS="-n -d extension_dir=$PWD/modules -d extension=%{pecl_name}.so" \ +NO_INTERACTION=1 \ +REPORT_EXIT_STATUS=1 \ +%{_bindir}/php -n run-tests.php + +%if %{with_zts} +cd ../ZTS + +%{__ztsphp} -n -d extension_dir=modules -d extension=apcu.so -m | grep 'apcu' +%{__ztsphp} -n -d extension_dir=modules -d extension=apcu.so -m | grep 'apc$' + +TEST_PHP_EXECUTABLE=%{__ztsphp} \ +TEST_PHP_ARGS="-n -d extension_dir=$PWD/modules -d extension=%{pecl_name}.so" \ +NO_INTERACTION=1 \ +REPORT_EXIT_STATUS=1 \ +%{__ztsphp} -n run-tests.php +%endif + + +%post +%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : + + +%postun +if [ $1 -eq 0 ] ; then + %{pecl_uninstall} %{pecl_name} >/dev/null || : +fi + + +%files +%doc NTS/{NOTICE,LICENSE,README.md} +%{pecl_xmldir}/%{name}.xml + +%config(noreplace) %{php_inidir}/%{pecl_name}.ini +%{php_extdir}/%{pecl_name}.so + +%if %{with_zts} +%{php_ztsextdir}/%{pecl_name}.so +%config(noreplace) %{php_ztsinidir}/%{pecl_name}.ini +%endif + +%files devel +%{php_incldir}/ext/%{pecl_name} +%if %{with_zts} +%{php_ztsincldir}/ext/%{pecl_name} +%endif + +%files -n apcu-panel +%defattr(-,root,root,-) +# Need to restrict access, as it contains a clear password +%attr(750,apache,root) %dir %{_sysconfdir}/apcu-panel +%config(noreplace) %{_sysconfdir}/apcu-panel/conf.php +%config(noreplace) %{_sysconfdir}/httpd/conf.d/apcu-panel.conf +%{_datadir}/apcu-panel + + +%changelog +* Tue Apr 30 2013 Remi Collet - 4.0.1-1 +- Update to 4.0.1 +- add missing scriptlet +- fix Conflicts + +* Thu Apr 25 2013 Remi Collet - 4.0.0-2 +- fix segfault when used from command line + +* Wed Mar 27 2013 Remi Collet - 4.0.0-1 +- first pecl release +- rename from php-apcu to php-pecl-apcu + +* Tue Mar 26 2013 Remi Collet - 4.0.0-0.4.git4322fad +- new snapshot (test before release) + +* Mon Mar 25 2013 Remi Collet - 4.0.0-0.3.git647cb2b +- new snapshot with our pull request +- allow to run test suite simultaneously on 32/64 arch +- build warning free + +* Mon Mar 25 2013 Remi Collet - 4.0.0-0.2.git6d20302 +- new snapshot with full APC compatibility + +* Sat Mar 23 2013 Remi Collet - 4.0.0-0.1.git44e8dd4 +- initial package, version 4.0.0 diff --git a/sources b/sources index e69de29..c93ffbb 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +994de4335eb2967c006aa9ca185876fa apcu-4.0.1.tgz