Compare commits

...

No commits in common. "c8-stream-7.4" and "c10s" have entirely different histories.

12 changed files with 189 additions and 54 deletions

2
.fmf/version Normal file
View File

@ -0,0 +1,2 @@
1

30
.gitignore vendored
View File

@ -1 +1,29 @@
SOURCES/apcu-5.1.18.tgz
clog
*spec~
/apcu-4.0.1.tgz
/apcu-4.0.2.tgz
/apcu-4.0.3.tgz
/apcu-4.0.4.tgz
/apcu-4.0.6.tgz
/apcu-4.0.7.tgz
/apcu-4.0.8.tgz
/apcu-4.0.10.tgz
/apcu-4.0.11.tgz
/apcu-5.1.5.tgz
/apcu-5.1.6.tgz
/apcu-5.1.7.tgz
/apcu-5.1.8.tgz
/apcu-5.1.9.tgz
/apcu-5.1.10.tgz
/apcu-5.1.11.tgz
/apcu-5.1.12.tgz
/apcu-5.1.13.tgz
/apcu-5.1.14.tgz
/apcu-5.1.15.tgz
/apcu-5.1.17.tgz
/apcu-5.1.18.tgz
/apcu-5.1.19.tgz
/apcu-5.1.20.tgz
/apcu-5.1.21.tgz
/apcu-5.1.22.tgz
/apcu-5.1.23.tgz

View File

@ -1 +0,0 @@
feb857e48c942501f16760460427a5c902eb7a98 SOURCES/apcu-5.1.18.tgz

6
README.md Normal file
View File

@ -0,0 +1,6 @@
# php-pecl-apcu
The php-pecl-apcu package

View File

@ -3,15 +3,7 @@ Alias /apcu-panel /usr/share/apcu-panel
<Directory /usr/share/apcu-panel>
<IfModule mod_authz_core.c>
# Apache 2.4
Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>

View File

@ -55,7 +55,7 @@ apc.mmap_file_mask=/tmp/apc.XXXXXX
;apc.serializer='php'
; use the SAPI request start time for TTL
;apc.use_request_time=1
;apc.use_request_time=0
; Enables APCu handling of signals, such as SIGSEGV, that write core files
; when signaled. APCu will attempt to unmap the shared memory segment in

1
ci.fmf Normal file
View File

@ -0,0 +1 @@
resultsdb-testcase: separate

8
gating.yaml Normal file
View File

@ -0,0 +1,8 @@
#gating rhel
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-internal.functional}

View File

@ -1,35 +1,34 @@
# RHEL / Fedora spec file for php-pecl-apcu
# Fedora spec file for php-pecl-apcu
#
# Copyright (c) 2013-2020 Remi Collet
# License: CC-BY-SA
# Copyright (c) 2013-2023 Remi Collet
# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
# we don't want -z defs linker flag
%undefine _strict_symbol_defs_build
%global pecl_name apcu
%global with_zts 0%{?__ztsphp:1}
%global ini_name 40-%{pecl_name}.ini
%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
Name: php-pecl-apcu
Summary: APC User Cache
Version: 5.1.18
Release: 1%{?dist}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
Version: 5.1.23
Release: 5%{?dist}
Source0: https://pecl.php.net/get/%{sources}.tgz
Source1: %{pecl_name}.ini
Source2: %{pecl_name}-panel.conf
Source3: %{pecl_name}.conf.php
License: PHP
URL: http://pecl.php.net/package/APCu
License: PHP-3.01
URL: https://pecl.php.net/package/APCu
BuildRequires: make
BuildRequires: gcc
BuildRequires: php-devel > 7
BuildRequires: php-devel
BuildRequires: php-pear
BuildRequires: pcre-devel
Requires: php(zend-abi) = %{php_zend_api}
Requires: php(api) = %{php_core_api}
@ -79,11 +78,10 @@ configuration, available on http://localhost/apcu-panel/
%prep
%setup -qc
mv %{pecl_name}-%{version} NTS
sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml
cd NTS
cd %{sources}
# 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
@ -92,30 +90,31 @@ if test "x${extver}" != "x%{version}"; then
fi
cd ..
mkdir NTS
%if %{with_zts}
# duplicate for ZTS build
cp -pr NTS ZTS
mkdir ZTS
%endif
# Fix path to configuration file
sed -e s:apc.conf.php:%{_sysconfdir}/apcu-panel/conf.php:g \
-i NTS/apc.php
-i %{sources}/apc.php
%build
cd NTS
%{_bindir}/phpize
cd %{sources}
%{__phpize}
cd ../NTS
%configure \
--enable-apcu \
--with-php-config=%{_bindir}/php-config
--with-php-config=%{__phpconfig}
make %{?_smp_mflags}
%if %{with_zts}
cd ../ZTS
%{_bindir}/zts-phpize
%configure \
--enable-apcu \
--with-php-config=%{_bindir}/zts-php-config
--with-php-config=%{__ztsphpconfig}
make %{?_smp_mflags}
%endif
@ -136,7 +135,7 @@ install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
# Install the Control Panel
# Pages
install -D -m 644 -p NTS/apc.php \
install -D -m 644 -p %{sources}/apc.php \
%{buildroot}%{_datadir}/apcu-panel/index.php
# Apache config
install -D -m 644 -p %{SOURCE2} \
@ -146,7 +145,7 @@ install -D -m 644 -p %{SOURCE3} \
%{buildroot}%{_sysconfdir}/apcu-panel/conf.php
# Test & Documentation
cd NTS
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
@ -156,35 +155,30 @@ done
%check
cd NTS
%{_bindir}/php -n \
cd %{sources}
%{__php} -n \
-d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
-m | grep 'apcu'
-m | grep '^apcu$'
# Upstream test suite for NTS extension
TEST_PHP_EXECUTABLE=%{_bindir}/php \
TEST_PHP_EXECUTABLE=%{__php} \
TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \
NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \
%{_bindir}/php -n run-tests.php
%{__php} -n run-tests.php -q --show-diff
%if %{with_zts}
cd ../ZTS
%{__ztsphp} -n \
-d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
-m | grep 'apcu'
-m | grep '^apcu$'
# Upstream test suite for ZTS extension
TEST_PHP_EXECUTABLE=%{__ztsphp} \
TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \
%{__ztsphp} -n run-tests.php
%{__ztsphp} -n run-tests.php -q --show-diff
%endif
%files
%license NTS/LICENSE
%license %{sources}/LICENSE
%doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml
@ -215,12 +209,105 @@ REPORT_EXIT_STATUS=1 \
%changelog
* Thu May 14 2020 Remi Collet <rcollet@redhat.com> - 5.1.18-1
* 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
* 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
* 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
* Mon Sep 19 2022 Remi Collet <remi@remirepo.net> - 5.1.22-1
- 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
* 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
* 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
* 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
* Mon Oct 28 2019 Remi Collet <remi@remirepo.net> - 5.1.18-1
- update to 5.1.18
* Tue May 7 2019 Remi Collet <remi@remirepo.net> - 5.1.17-1
* Thu Oct 03 2019 Remi Collet <remi@remirepo.net> - 5.1.17-3
- rebuild for https://fedoraproject.org/wiki/Changes/php74
- 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
* 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
* Fri Dec 7 2018 Remi Collet <remi@remirepo.net> - 5.1.15-1
- update to 5.1.15
* Wed Nov 21 2018 Remi Collet <remi@remirepo.net> - 5.1.14-1
- update to 5.1.14 (stable)
* 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
* Mon Jul 9 2018 Remi Collet <remi@remirepo.net> - 5.1.12-1
- update to 5.1.12 (stable)

11
plans/tier1-internal.fmf Normal file
View File

@ -0,0 +1,11 @@
summary: Internal Tier1 beakerlib tests
discover:
how: fmf
url: https://gitlab.com/redhat/rhel/tests/php-pecl-apcu
filter: "tier:1"
execute:
how: tmt
adjust:
enabled: false
when: distro == centos-stream-10

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (apcu-5.1.23.tgz) = 89e9f10f5d8d1a9503132e80140680be2a10d96f957f69b2f77cc1c496d15cc26dfe4c0368ebe46c72c68d1b4a794d3ddc95942b02d3ba5e8c971b09969058d8