[packages/php-pecl-apcu_bc] new, version 1.0.3; provides apc module methods using apcu
glen
glen at pld-linux.org
Thu Nov 9 20:23:48 CET 2017
commit ff2179ce738cdbe286c0695b8b2442f5db816f76
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Thu Nov 9 21:23:12 2017 +0200
new, version 1.0.3; provides apc module methods using apcu
php-pecl-apcu_bc.spec | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
---
diff --git a/php-pecl-apcu_bc.spec b/php-pecl-apcu_bc.spec
new file mode 100644
index 0000000..03db7e6
--- /dev/null
+++ b/php-pecl-apcu_bc.spec
@@ -0,0 +1,63 @@
+%define php_name php%{?php_suffix}
+%define modname apcu_bc
+Summary: APCu Backwards Compatibility Module
+Name: %{php_name}-pecl-%{modname}
+Version: 1.0.3
+Release: 1
+License: PHP 3.01
+Group: Development/Languages/PHP
+Source0: https://pecl.php.net/get/%{modname}-%{version}.tgz
+# Source0-md5: 2ba61ea2cf887814e702e25ad7f1a5e1
+URL: https://pecl.php.net/package/apcu_bc
+BuildRequires: %{php_name}-devel >= 4:7.0.0
+BuildRequires: %{php_name}-pecl-apcu-devel
+BuildRequires: rpmbuild(macros) >= 1.666
+%{?requires_php_extension}
+Requires: %{php_name}-pecl-apcu
+Provides: php(apcu) = %{version}
+Provides: php(apcu_bc) = %{version}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module provides a backwards APC compatible API using APCu.
+
+%prep
+%setup -qc
+mv %{modname}-%{version}/* .
+
+%build
+phpize
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ EXTENSION_DIR=%{php_extensiondir} \
+ INSTALL_ROOT=$RPM_BUILD_ROOT
+
+# ext filename not important, rename for simplicity
+mv $RPM_BUILD_ROOT%{php_extensiondir}/{apc,%{modname}}.so
+
+install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%php_webserver_restart
+
+%postun
+if [ "$1" = 0 ]; then
+ %php_webserver_restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-apcu_bc.git/commitdiff/ff2179ce738cdbe286c0695b8b2442f5db816f76
More information about the pld-cvs-commit
mailing list