|
|
c3a76d |
# RHSCL spec file for rh-php73-php-pecl-apcu, from:
|
|
|
c3a76d |
#
|
|
|
c3a76d |
# centos/sclo spec file for sclo-php70-php-pecl-apcu, from:
|
|
|
c3a76d |
#
|
|
|
c3a76d |
# remirepo spec file for php-pecl-apcu
|
|
|
c3a76d |
# with SCL compatibility, from:
|
|
|
c3a76d |
#
|
|
|
c3a76d |
# Fedora spec file for php-pecl-apcu
|
|
|
c3a76d |
#
|
|
|
c3a76d |
# Copyright (c) 2013-2019 Remi Collet
|
|
|
c3a76d |
# License: CC-BY-SA
|
|
|
c3a76d |
# http://creativecommons.org/licenses/by-sa/4.0/
|
|
|
c3a76d |
#
|
|
|
c3a76d |
# Please, preserve the changelog entries
|
|
|
c3a76d |
#
|
|
|
c3a76d |
%if 0%{?scl:1}
|
|
|
c3a76d |
%scl_package php-pecl-apcu
|
|
|
c3a76d |
%else
|
|
|
c3a76d |
%global pkg_name %{name}
|
|
|
c3a76d |
%endif
|
|
|
c3a76d |
|
|
|
c3a76d |
%global pecl_name apcu
|
|
|
c3a76d |
%global ini_name 40-%{pecl_name}.ini
|
|
|
c3a76d |
|
|
|
c3a76d |
Name: %{?scl_prefix}php-pecl-apcu
|
|
|
c3a76d |
Summary: APC User Cache
|
|
|
c3a76d |
Version: 5.1.17
|
|
|
c3a76d |
Release: 1%{?dist}
|
|
|
c3a76d |
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
|
|
|
c3a76d |
Source1: %{pecl_name}.ini
|
|
|
c3a76d |
|
|
|
c3a76d |
License: PHP
|
|
|
c3a76d |
Group: Development/Languages
|
|
|
c3a76d |
URL: http://pecl.php.net/package/APCu
|
|
|
c3a76d |
|
|
|
c3a76d |
BuildRequires: %{?scl_prefix}php-devel > 7
|
|
|
c3a76d |
BuildRequires: %{?scl_prefix}php-pear
|
|
|
c3a76d |
BuildRequires: pcre-devel
|
|
|
c3a76d |
|
|
|
c3a76d |
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
|
|
|
c3a76d |
Requires: %{?scl_prefix}php(api) = %{php_core_api}
|
|
|
c3a76d |
|
|
|
c3a76d |
Provides: %{?scl_prefix}php-apcu = %{version}
|
|
|
c3a76d |
Provides: %{?scl_prefix}php-apcu%{?_isa} = %{version}
|
|
|
c3a76d |
Provides: %{?scl_prefix}php-pecl(apcu) = %{version}
|
|
|
c3a76d |
Provides: %{?scl_prefix}php-pecl(apcu)%{?_isa} = %{version}
|
|
|
c3a76d |
|
|
|
c3a76d |
|
|
|
c3a76d |
%description
|
|
|
c3a76d |
APCu is userland caching: APC stripped of opcode caching.
|
|
|
c3a76d |
|
|
|
c3a76d |
APCu only supports userland caching of variables.
|
|
|
c3a76d |
|
|
|
c3a76d |
|
|
|
c3a76d |
%package devel
|
|
|
c3a76d |
Summary: APCu developer files (header)
|
|
|
c3a76d |
Group: Development/Libraries
|
|
|
c3a76d |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
c3a76d |
Requires: %{?scl_prefix}php-devel%{?_isa}
|
|
|
c3a76d |
|
|
|
c3a76d |
%description devel
|
|
|
c3a76d |
These are the files needed to compile programs using APCu.
|
|
|
c3a76d |
|
|
|
c3a76d |
|
|
|
c3a76d |
%prep
|
|
|
c3a76d |
%setup -qc
|
|
|
c3a76d |
mv %{pecl_name}-%{version} NTS
|
|
|
c3a76d |
|
|
|
c3a76d |
cd NTS
|
|
|
c3a76d |
|
|
|
c3a76d |
# Sanity check, really often broken
|
|
|
c3a76d |
extver=$(sed -n '/#define PHP_APCU_VERSION/{s/.* "//;s/".*$//;p}' php_apc.h)
|
|
|
c3a76d |
if test "x${extver}" != "x%{version}"; then
|
|
|
c3a76d |
: Error: Upstream extension version is ${extver}, expecting %{version}.
|
|
|
c3a76d |
exit 1
|
|
|
c3a76d |
fi
|
|
|
c3a76d |
cd ..
|
|
|
c3a76d |
|
|
|
c3a76d |
|
|
|
c3a76d |
%build
|
|
|
c3a76d |
cd NTS
|
|
|
c3a76d |
%{_bindir}/phpize
|
|
|
c3a76d |
%configure --with-php-config=%{_bindir}/php-config
|
|
|
c3a76d |
make %{?_smp_mflags}
|
|
|
c3a76d |
|
|
|
c3a76d |
|
|
|
c3a76d |
%install
|
|
|
c3a76d |
# Install the NTS stuff
|
|
|
c3a76d |
make -C NTS install INSTALL_ROOT=%{buildroot}
|
|
|
c3a76d |
install -D -m 644 %{SOURCE1} %{buildroot}%{php_inidir}/%{ini_name}
|
|
|
c3a76d |
|
|
|
c3a76d |
# Install the package XML file
|
|
|
c3a76d |
install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
|
|
|
c3a76d |
|
|
|
c3a76d |
# Test & Documentation
|
|
|
c3a76d |
cd NTS
|
|
|
c3a76d |
for i in $(grep 'role="test"' ../package.xml | sed -e 's/^.*name="//;s/".*$//')
|
|
|
c3a76d |
do install -Dpm 644 $i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i
|
|
|
c3a76d |
done
|
|
|
c3a76d |
for i in apc.php $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//')
|
|
|
c3a76d |
do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
|
|
|
c3a76d |
done
|
|
|
c3a76d |
|
|
|
c3a76d |
|
|
|
c3a76d |
%check
|
|
|
c3a76d |
cd NTS
|
|
|
c3a76d |
|
|
|
c3a76d |
%{_bindir}/php -n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so -m | grep 'apcu'
|
|
|
c3a76d |
|
|
|
c3a76d |
# Upstream test suite for NTS extension
|
|
|
c3a76d |
TEST_PHP_EXECUTABLE=%{_bindir}/php \
|
|
|
c3a76d |
TEST_PHP_ARGS="-n -d extension_dir=$PWD/modules -d extension=%{pecl_name}.so" \
|
|
|
c3a76d |
NO_INTERACTION=1 \
|
|
|
c3a76d |
REPORT_EXIT_STATUS=1 \
|
|
|
c3a76d |
%{_bindir}/php -n run-tests.php --show-diff
|
|
|
c3a76d |
|
|
|
c3a76d |
|
|
|
c3a76d |
# when pear installed alone, after us
|
|
|
c3a76d |
%triggerin -- %{?scl_prefix}php-pear
|
|
|
c3a76d |
if [ -x %{__pecl} ] ; then
|
|
|
c3a76d |
%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
|
|
|
c3a76d |
fi
|
|
|
c3a76d |
|
|
|
c3a76d |
# posttrans as pear can be installed after us
|
|
|
c3a76d |
%posttrans
|
|
|
c3a76d |
if [ -x %{__pecl} ] ; then
|
|
|
c3a76d |
%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
|
|
|
c3a76d |
fi
|
|
|
c3a76d |
|
|
|
c3a76d |
%postun
|
|
|
c3a76d |
if [ $1 -eq 0 -a -x %{__pecl} ] ; then
|
|
|
c3a76d |
%{pecl_uninstall} %{pecl_name} >/dev/null || :
|
|
|
c3a76d |
fi
|
|
|
c3a76d |
|
|
|
c3a76d |
|
|
|
c3a76d |
%files
|
|
|
c3a76d |
%doc %{pecl_docdir}/%{pecl_name}
|
|
|
c3a76d |
%{pecl_xmldir}/%{name}.xml
|
|
|
c3a76d |
|
|
|
c3a76d |
%config(noreplace) %{php_inidir}/%{ini_name}
|
|
|
c3a76d |
%{php_extdir}/%{pecl_name}.so
|
|
|
c3a76d |
|
|
|
c3a76d |
|
|
|
c3a76d |
%files devel
|
|
|
c3a76d |
%doc %{pecl_testdir}/%{pecl_name}
|
|
|
c3a76d |
%{php_incldir}/ext/%{pecl_name}
|
|
|
c3a76d |
|
|
|
c3a76d |
|
|
|
c3a76d |
%changelog
|
|
|
c3a76d |
* Fri Jul 12 2019 Remi Collet <rcollet@redhat.com> - 5.1.17-1
|
|
|
c3a76d |
- update to 5.1.17
|
|
|
c3a76d |
|
|
|
c3a76d |
* Tue Jul 10 2018 Remi Collet <rcollet@redhat.com> - 5.1.12-1
|
|
|
c3a76d |
- update to 5.1.12
|
|
|
c3a76d |
|
|
|
c3a76d |
* Tue Aug 8 2017 Remi Collet <rcollet@redhat.com> - 5.1.8-1
|
|
|
c3a76d |
- cleaup for rh-php71 in RHSCL #1398827
|
|
|
c3a76d |
|
|
|
c3a76d |
* Fri Jan 20 2017 Remi Collet <remi@remirepo.net> - 5.1.8-1
|
|
|
c3a76d |
- update to 5.1.8 for PHP 7
|
|
|
c3a76d |
|
|
|
c3a76d |
* Thu Nov 3 2016 Remi Collet <remi@fedoraproject.org> - 5.1.7-1
|
|
|
c3a76d |
- update to 5.1.7 for PHP 7
|
|
|
c3a76d |
|
|
|
c3a76d |
* Mon Jan 18 2016 Remi Collet <remi@fedoraproject.org> - 4.0.10-1
|
|
|
c3a76d |
- cleanup for SCLo build
|
|
|
c3a76d |
|
|
|
c3a76d |
* Mon Dec 7 2015 Remi Collet <remi@fedoraproject.org> - 4.0.10-1
|
|
|
c3a76d |
- Update to 4.0.10 (stable)
|
|
|
c3a76d |
|
|
|
c3a76d |
* Fri Nov 20 2015 Remi Collet <remi@fedoraproject.org> - 4.0.8-1
|
|
|
c3a76d |
- Update to 4.0.8 (stable)
|
|
|
c3a76d |
|
|
|
c3a76d |
* Fri Nov 20 2015 Remi Collet <remi@fedoraproject.org> - 4.0.8-0.1.20151120git0911f48
|
|
|
c3a76d |
- test build for upcoming 4.0.8
|
|
|
c3a76d |
- sources from github
|
|
|
c3a76d |
|
|
|
c3a76d |
* Fri Jun 19 2015 Remi Collet <remi@fedoraproject.org> - 4.0.7-3
|
|
|
c3a76d |
- allow build against rh-php56 (as more-php56)
|
|
|
c3a76d |
|
|
|
c3a76d |
* Tue Jun 9 2015 Remi Collet <remi@fedoraproject.org> - 4.0.7-2
|
|
|
c3a76d |
- upstream fix for the control panel
|
|
|
c3a76d |
- drop runtime dependency on pear, new scriptlets
|
|
|
c3a76d |
|
|
|
c3a76d |
* Wed Dec 24 2014 Remi Collet <remi@fedoraproject.org> - 4.0.7-1.1
|
|
|
c3a76d |
- Fedora 21 SCL mass rebuild
|
|
|
c3a76d |
|
|
|
c3a76d |
* Sat Oct 11 2014 Remi Collet <remi@fedoraproject.org> - 4.0.7-1
|
|
|
c3a76d |
- Update to 4.0.7
|
|
|
c3a76d |
|
|
|
c3a76d |
* Sun Aug 24 2014 Remi Collet <remi@fedoraproject.org> - 4.0.6-2
|
|
|
c3a76d |
- improve SCL stuff
|
|
|
c3a76d |
|
|
|
c3a76d |
* Thu Jun 12 2014 Remi Collet <remi@fedoraproject.org> - 4.0.6-1
|
|
|
c3a76d |
- Update to 4.0.6 (beta)
|
|
|
c3a76d |
|
|
|
c3a76d |
* Wed Jun 11 2014 Remi Collet <remi@fedoraproject.org> - 4.0.5-1
|
|
|
c3a76d |
- Update to 4.0.5 (beta)
|
|
|
c3a76d |
- open https://github.com/krakjoe/apcu/pull/74 (PHP 5.4)
|
|
|
c3a76d |
|
|
|
c3a76d |
* Sun Jun 8 2014 Remi Collet <remi@fedoraproject.org> - 4.0.4-3
|
|
|
c3a76d |
- add build patch for php 5.6.0beta4
|
|
|
c3a76d |
|
|
|
c3a76d |
* Wed Apr 9 2014 Remi Collet <remi@fedoraproject.org> - 4.0.4-2
|
|
|
c3a76d |
- add numerical prefix to extension configuration file
|
|
|
c3a76d |
|
|
|
c3a76d |
* Sat Mar 01 2014 Remi Collet <remi@fedoraproject.org> - 4.0.4-1
|
|
|
c3a76d |
- Update to 4.0.4 (beta)
|
|
|
c3a76d |
|
|
|
c3a76d |
* Mon Jan 27 2014 Remi Collet <remi@fedoraproject.org> - 4.0.3-1
|
|
|
c3a76d |
- Update to 4.0.3 (beta)
|
|
|
c3a76d |
- install doc in pecl doc_dir
|
|
|
c3a76d |
- install tests in pecl test_dir (in devel)
|
|
|
c3a76d |
- drop panel sub-package in SCL
|
|
|
c3a76d |
- add SCL stuff
|
|
|
c3a76d |
|
|
|
c3a76d |
* Mon Sep 16 2013 Remi Collet <rcollet@redhat.com> - 4.0.2-2
|
|
|
c3a76d |
- fix perm on config dir
|
|
|
c3a76d |
- always provides php-pecl-apc-devel and apc-panel
|
|
|
c3a76d |
|
|
|
c3a76d |
* Mon Sep 16 2013 Remi Collet <remi@fedoraproject.org> - 4.0.2-1
|
|
|
c3a76d |
- Update to 4.0.2
|
|
|
c3a76d |
|
|
|
c3a76d |
* Fri Aug 30 2013 Remi Collet <remi@fedoraproject.org> - 4.0.1-3
|
|
|
c3a76d |
- rebuild to have NEVR > EPEL (or Fedora)
|
|
|
c3a76d |
|
|
|
c3a76d |
* Thu Jul 4 2013 Remi Collet <remi@fedoraproject.org> - 4.0.1-2
|
|
|
c3a76d |
- obsoletes APC with php 5.5
|
|
|
c3a76d |
- restore APC serializers ABI (patch merged upstream)
|
|
|
c3a76d |
|
|
|
c3a76d |
* Tue Apr 30 2013 Remi Collet <remi@fedoraproject.org> - 4.0.1-1
|
|
|
c3a76d |
- Update to 4.0.1
|
|
|
c3a76d |
- add missing scriptlet
|
|
|
c3a76d |
- fix Conflicts
|
|
|
c3a76d |
|
|
|
c3a76d |
* Thu Apr 25 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-2
|
|
|
c3a76d |
- fix segfault when used from command line
|
|
|
c3a76d |
|
|
|
c3a76d |
* Wed Mar 27 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-1
|
|
|
c3a76d |
- first pecl release
|
|
|
c3a76d |
- rename from php-apcu to php-pecl-apcu
|
|
|
c3a76d |
|
|
|
c3a76d |
* Tue Mar 26 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-0.4.git4322fad
|
|
|
c3a76d |
- new snapshot (test before release)
|
|
|
c3a76d |
|
|
|
c3a76d |
* Mon Mar 25 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-0.3.git647cb2b
|
|
|
c3a76d |
- new snapshot with our pull request
|
|
|
c3a76d |
- allow to run test suite simultaneously on 32/64 arch
|
|
|
c3a76d |
- build warning free
|
|
|
c3a76d |
|
|
|
c3a76d |
* Mon Mar 25 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-0.2.git6d20302
|
|
|
c3a76d |
- new snapshot with full APC compatibility
|
|
|
c3a76d |
|
|
|
c3a76d |
* Sat Mar 23 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-0.1.git44e8dd4
|
|
|
c3a76d |
- initial package, version 4.0.0
|