php-pecl-apcu/php-pecl-apcu.spec

447 lines
14 KiB
RPMSpec
Raw Normal View History

2015-11-20 12:14:30 +00:00
# Fedora spec file for php-pecl-apcu
#
2023-04-20 05:55:57 +00:00
# Copyright (c) 2013-2023 Remi Collet
# License: CC-BY-SA-4.0
2015-11-20 12:14:30 +00:00
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
2018-01-26 12:33:19 +00:00
%global pecl_name apcu
%global with_zts 0%{?__ztsphp:1}
%global ini_name 40-%{pecl_name}.ini
%global sources %{pecl_name}-%{version}
%global _configure ../%{sources}/configure
2013-07-01 14:16:41 +00:00
Name: php-pecl-apcu
2013-07-01 14:16:41 +00:00
Summary: APC User Cache
2023-11-13 07:13:44 +00:00
Version: 5.1.23
Release: 5%{?dist}
Source0: https://pecl.php.net/get/%{sources}.tgz
2013-07-01 14:16:41 +00:00
Source1: %{pecl_name}.ini
Source2: %{pecl_name}-panel.conf
Source3: %{pecl_name}.conf.php
2023-04-20 05:55:57 +00:00
License: PHP-3.01
2020-10-05 12:20:46 +00:00
URL: https://pecl.php.net/package/APCu
2013-07-01 14:16:41 +00:00
2021-03-04 09:32:20 +00:00
BuildRequires: make
2018-02-16 06:13:35 +00:00
BuildRequires: gcc
2021-03-04 09:32:20 +00:00
BuildRequires: php-devel
BuildRequires: php-pear
2013-07-01 14:16:41 +00:00
Requires: php(zend-abi) = %{php_zend_api}
Requires: php(api) = %{php_core_api}
Obsoletes: php-apcu < 4.0.0-1
Provides: php-apcu = %{version}
Provides: php-apcu%{?_isa} = %{version}
Provides: php-pecl(apcu) = %{version}
Provides: php-pecl(apcu)%{?_isa} = %{version}
2013-07-01 14:16:41 +00:00
%description
2016-06-27 14:39:15 +00:00
APCu is userland caching: APC stripped of opcode caching.
2013-07-01 14:16:41 +00:00
2016-06-27 14:39:15 +00:00
APCu only supports userland caching of variables.
2013-07-01 14:16:41 +00:00
2016-06-27 14:39:15 +00:00
The %{?sub_prefix}php-pecl-apcu-bc package provides a drop
in replacement for APC.
2013-07-01 14:16:41 +00:00
%package devel
Summary: APCu developer files (header)
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: php-devel%{?_isa}
Obsoletes: php-pecl-apc-devel < 4
Provides: php-pecl-apc-devel = %{version}-%{release}
Provides: php-pecl-apc-devel%{?_isa} = %{version}-%{release}
2013-07-01 14:16:41 +00:00
%description devel
These are the files needed to compile programs using APCu.
%package -n apcu-panel
2013-07-01 14:16:41 +00:00
Summary: APCu control panel
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
2018-03-15 06:12:53 +00:00
Requires: php(httpd)
Requires: php-gd
Requires: httpd
Obsoletes: apc-panel < 4
Provides: apc-panel = %{version}-%{release}
2013-07-01 14:16:41 +00:00
%description -n apcu-panel
2013-07-01 14:16:41 +00:00
This package provides the APCu control panel, with Apache
configuration, available on http://localhost/apcu-panel/
%prep
%setup -qc
2016-04-20 12:24:48 +00:00
sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml
cd %{sources}
2014-06-13 09:29:41 +00:00
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_APCU_VERSION/{s/.* "//;s/".*$//;p}' php_apc.h)
if test "x${extver}" != "x%{version}"; then
: Error: Upstream extension version is ${extver}, expecting %{version}.
exit 1
fi
cd ..
2013-07-01 14:16:41 +00:00
mkdir NTS
2013-07-01 14:16:41 +00:00
%if %{with_zts}
mkdir ZTS
2013-07-01 14:16:41 +00:00
%endif
# Fix path to configuration file
sed -e s:apc.conf.php:%{_sysconfdir}/apcu-panel/conf.php:g \
-i %{sources}/apc.php
2013-07-01 14:16:41 +00:00
%build
cd %{sources}
%{__phpize}
cd ../NTS
2016-06-27 14:39:15 +00:00
%configure \
--enable-apcu \
--with-php-config=%{__phpconfig}
2013-07-01 14:16:41 +00:00
make %{?_smp_mflags}
%if %{with_zts}
cd ../ZTS
2016-06-27 14:39:15 +00:00
%configure \
--enable-apcu \
--with-php-config=%{__ztsphpconfig}
2013-07-01 14:16:41 +00:00
make %{?_smp_mflags}
%endif
%install
# Install the NTS stuff
make -C NTS install INSTALL_ROOT=%{buildroot}
install -D -m 644 %{SOURCE1} %{buildroot}%{php_inidir}/%{ini_name}
2013-07-01 14:16:41 +00:00
%if %{with_zts}
# Install the ZTS stuff
2013-07-01 14:16:41 +00:00
make -C ZTS install INSTALL_ROOT=%{buildroot}
install -D -m 644 %{SOURCE1} %{buildroot}%{php_ztsinidir}/%{ini_name}
2013-07-01 14:16:41 +00:00
%endif
# Install the package XML file
install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
# Install the Control Panel
# Pages
install -D -m 644 -p %{sources}/apc.php \
%{buildroot}%{_datadir}/apcu-panel/index.php
2013-07-01 14:16:41 +00:00
# Apache config
install -D -m 644 -p %{SOURCE2} \
%{buildroot}%{_sysconfdir}/httpd/conf.d/apcu-panel.conf
2013-07-01 14:16:41 +00:00
# Panel config
install -D -m 644 -p %{SOURCE3} \
%{buildroot}%{_sysconfdir}/apcu-panel/conf.php
# Test & Documentation
cd %{sources}
for i in $(grep 'role="test"' ../package.xml | sed -e 's/^.*name="//;s/".*$//')
do install -Dpm 644 $i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i
done
for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//')
do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
done
2013-07-01 14:16:41 +00:00
%check
cd %{sources}
%{__php} -n \
2016-06-27 14:39:15 +00:00
-d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
-m | grep '^apcu$'
2013-07-01 14:16:41 +00:00
# Upstream test suite for NTS extension
TEST_PHP_EXECUTABLE=%{__php} \
2016-06-27 14:39:15 +00:00
TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \
%{__php} -n run-tests.php -q --show-diff
2013-07-01 14:16:41 +00:00
%if %{with_zts}
2016-06-27 14:39:15 +00:00
%{__ztsphp} -n \
-d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
-m | grep '^apcu$'
2013-07-01 14:16:41 +00:00
# Upstream test suite for ZTS extension
2013-07-01 14:16:41 +00:00
TEST_PHP_EXECUTABLE=%{__ztsphp} \
2016-06-27 14:39:15 +00:00
TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
2022-09-19 07:29:42 +00:00
%{__ztsphp} -n run-tests.php -q --show-diff
2013-07-01 14:16:41 +00:00
%endif
%files
%license %{sources}/LICENSE
%doc %{pecl_docdir}/%{pecl_name}
2013-07-01 14:16:41 +00:00
%{pecl_xmldir}/%{name}.xml
2014-10-27 15:01:35 +00:00
%config(noreplace) %{php_inidir}/%{ini_name}
2013-07-01 14:16:41 +00:00
%{php_extdir}/%{pecl_name}.so
2014-10-27 15:01:35 +00:00
2013-07-01 14:16:41 +00:00
%if %{with_zts}
%{php_ztsextdir}/%{pecl_name}.so
%config(noreplace) %{php_ztsinidir}/%{ini_name}
2013-07-01 14:16:41 +00:00
%endif
2013-07-01 14:16:41 +00:00
%files devel
%doc %{pecl_testdir}/%{pecl_name}
2013-07-01 14:16:41 +00:00
%{php_incldir}/ext/%{pecl_name}
2014-10-27 15:01:35 +00:00
2013-07-01 14:16:41 +00:00
%if %{with_zts}
%{php_ztsincldir}/ext/%{pecl_name}
%endif
%files -n apcu-panel
2013-07-01 14:16:41 +00:00
# Need to restrict access, as it contains a clear password
%attr(550,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
2013-07-01 14:16:41 +00:00
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 5.1.23-5
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 5.1.23-4
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.23-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.23-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2023-11-13 07:13:44 +00:00
* Mon Nov 13 2023 Remi Collet <remi@remirepo.net> - 5.1.23-1
- update to 5.1.23
* Tue Oct 03 2023 Remi Collet <remi@remirepo.net> - 5.1.22-6
- rebuild for https://fedoraproject.org/wiki/Changes/php83
- build out of sources tree
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.22-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2023-04-20 05:55:57 +00:00
* Thu Apr 20 2023 Remi Collet <remi@remirepo.net> - 5.1.22-5
- use SPDX license ID
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.22-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Oct 05 2022 Remi Collet <remi@remirepo.net> - 5.1.22-3
- rebuild for https://fedoraproject.org/wiki/Changes/php82
* Tue Sep 20 2022 Remi Collet <remi@remirepo.net> - 5.1.22-2
- drop unneeded build dependency on pcre #2128350
2022-09-19 07:31:11 +00:00
* Mon Sep 19 2022 Remi Collet <remi@remirepo.net> - 5.1.22-1
2022-09-19 07:29:42 +00:00
- update to 5.1.22
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.21-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.21-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Oct 28 2021 Remi Collet <remi@remirepo.net> - 5.1.21-2
- rebuild for https://fedoraproject.org/wiki/Changes/php81
2021-10-07 09:23:43 +00:00
* Thu Oct 7 2021 Remi Collet <remi@remirepo.net> - 5.1.21-1
- update to 5.1.21
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.20-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-03-04 09:32:20 +00:00
* Thu Mar 4 2021 Remi Collet <remi@remirepo.net> - 5.1.20-1
- update to 5.1.20
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.19-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-10-05 12:20:46 +00:00
* Mon Oct 5 2020 Remi Collet <remi@remirepo.net> - 5.1.19-1
- update to 5.1.19
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.18-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.18-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-10-28 06:49:35 +00:00
* Mon Oct 28 2019 Remi Collet <remi@remirepo.net> - 5.1.18-1
- update to 5.1.18
* Thu Oct 03 2019 Remi Collet <remi@remirepo.net> - 5.1.17-3
- rebuild for https://fedoraproject.org/wiki/Changes/php74
2019-10-03 14:36:36 +00:00
- add upstream patches for test suite
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-02-08 11:30:54 +00:00
* Fri Feb 8 2019 Remi Collet <remi@remirepo.net> - 5.1.17-1
- update to 5.1.17
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-12-07 13:42:30 +00:00
* Fri Dec 7 2018 Remi Collet <remi@remirepo.net> - 5.1.15-1
- update to 5.1.15
2018-11-21 08:58:05 +00:00
* Wed Nov 21 2018 Remi Collet <remi@remirepo.net> - 5.1.14-1
- update to 5.1.14 (stable)
2018-11-19 09:21:17 +00:00
* Mon Nov 19 2018 Remi Collet <remi@remirepo.net> - 5.1.13-1
- update to 5.1.13 (stable)
* Thu Oct 11 2018 Remi Collet <remi@remirepo.net> - 5.1.12-3
- Rebuild for https://fedoraproject.org/wiki/Changes/php73
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-07-09 10:28:40 +00:00
* Mon Jul 9 2018 Remi Collet <remi@remirepo.net> - 5.1.12-1
- update to 5.1.12 (stable)
2018-03-08 05:26:42 +00:00
* Thu Mar 8 2018 Remi Collet <remi@remirepo.net> - 5.1.11-1
- update to 5.1.11 (stable)
2018-02-16 06:13:35 +00:00
* Fri Feb 16 2018 Remi Collet <remi@remirepo.net> - 5.1.10-1
- update to 5.1.10 (stable)
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-01-26 12:33:19 +00:00
* Fri Jan 26 2018 Remi Collet <remi@remirepo.net> - 5.1.9-2
- undefine _strict_symbol_defs_build
2018-01-02 14:31:48 +00:00
* Tue Jan 2 2018 Remi Collet <remi@fedoraproject.org> - 5.1.9-1
- Update to 5.1.9 (php 7, stable)
* Tue Oct 03 2017 Remi Collet <remi@fedoraproject.org> - 5.1.8-5
- rebuild for https://fedoraproject.org/wiki/Changes/php72
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2017-01-16 06:45:25 +00:00
* Mon Jan 16 2017 Remi Collet <remi@fedoraproject.org> - 5.1.8-1
- Update to 5.1.8 (php 7, stable)
* Mon Nov 14 2016 Remi Collet <remi@fedoraproject.org> - 5.1.7-2
- rebuild for https://fedoraproject.org/wiki/Changes/php71
2016-10-21 12:26:19 +00:00
* Fri Oct 21 2016 Remi Collet <remi@fedoraproject.org> - 5.1.7-1
- Update to 5.1.7 (php 7, stable)
2016-10-06 05:28:53 +00:00
* Thu Oct 6 2016 Remi Collet <remi@fedoraproject.org> - 5.1.6-1
- Update to 5.1.6 (php 7, stable)
2016-06-27 14:39:15 +00:00
* Mon Jun 27 2016 Remi Collet <remi@fedoraproject.org> - 5.1.5-1
- Update to 5.1.5 (php 7, stable)
2016-04-20 12:24:48 +00:00
* Wed Apr 20 2016 Remi Collet <remi@fedoraproject.org> - 4.0.11-1
- Update to 4.0.11 (stable)
- fix license usage and spec cleanup
* Wed Apr 20 2016 Remi Collet <remi@fedoraproject.org> - 4.0.10-4
- add upstream patch, fix FTBFS with 5.6.21RC1, thanks Koschei
2016-02-10 09:07:03 +00:00
* Wed Feb 10 2016 Remi Collet <remi@fedoraproject.org> - 4.0.10-3
- drop scriptlets (replaced file triggers in php-pear)
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Mon Dec 7 2015 Remi Collet <remi@fedoraproject.org> - 4.0.10-1
- Update to 4.0.10 (stable)
2015-11-20 12:14:30 +00:00
* Fri Nov 20 2015 Remi Collet <remi@fedoraproject.org> - 4.0.8-1
- Update to 4.0.8
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2014-10-27 15:01:35 +00:00
* Mon Oct 27 2014 Remi Collet <remi@fedoraproject.org> - 4.0.7-1
- Update to 4.0.7
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Thu Jun 19 2014 Remi Collet <rcollet@redhat.com> - 4.0.6-2
- rebuild for https://fedoraproject.org/wiki/Changes/Php56
2014-06-13 09:29:41 +00:00
* Thu Jun 12 2014 Remi Collet <remi@fedoraproject.org> - 4.0.6-1
- Update to 4.0.6 (beta)
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Apr 23 2014 Remi Collet <remi@fedoraproject.org> - 4.0.4-2
- add numerical prefix to extension configuration file
2014-03-03 07:02:30 +00:00
* Sat Mar 01 2014 Remi Collet <remi@fedoraproject.org> - 4.0.4-1
- Update to 4.0.4 (beta)
* Mon Jan 27 2014 Remi Collet <remi@fedoraproject.org> - 4.0.3-1
- Update to 4.0.3 (beta)
- install doc in pecl doc_dir
- install tests in pecl test_dir (in devel)
- cleanup SCL stuff
2014-01-13 05:34:21 +00:00
* Mon Jan 13 2014 Remi Collet <rcollet@redhat.com> - 4.0.2-3
- EPEL-7 build
* Mon Sep 16 2013 Remi Collet <rcollet@redhat.com> - 4.0.2-2
- fix perm on config dir
- improve SCL compatibility
- always provides php-pecl-apc-devel and apc-panel
2013-09-16 08:09:04 +00:00
* Mon Sep 16 2013 Remi Collet <remi@fedoraproject.org> - 4.0.2-1
- Update to 4.0.2
* Sat Jul 27 2013 Remi Collet <remi@fedoraproject.org> - 4.0.1-3
- restore APC serializers ABI (patch merged upstream)
2013-07-15 14:42:05 +00:00
* Mon Jul 15 2013 Remi Collet <rcollet@redhat.com> - 4.0.1-2
- adapt for SCL
2013-07-01 14:16:41 +00:00
* Tue Apr 30 2013 Remi Collet <remi@fedoraproject.org> - 4.0.1-1
- Update to 4.0.1
- add missing scriptlet
- fix Conflicts
* Thu Apr 25 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-2
- fix segfault when used from command line
* Wed Mar 27 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-1
- first pecl release
- rename from php-apcu to php-pecl-apcu
* Tue Mar 26 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-0.4.git4322fad
- new snapshot (test before release)
* Mon Mar 25 2013 Remi Collet <remi@fedoraproject.org> - 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 <remi@fedoraproject.org> - 4.0.0-0.2.git6d20302
- new snapshot with full APC compatibility
* Sat Mar 23 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-0.1.git44e8dd4
- initial package, version 4.0.0