]> git.pld-linux.org Git - packages/php-pecl-apcu_bc.git/commitdiff
new, version 1.0.3; provides apc module methods using apcu
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 9 Nov 2017 19:23:12 +0000 (21:23 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 9 Nov 2017 19:23:12 +0000 (21:23 +0200)
php-pecl-apcu_bc.spec [new file with mode: 0644]

diff --git a/php-pecl-apcu_bc.spec b/php-pecl-apcu_bc.spec
new file mode 100644 (file)
index 0000000..03db7e6
--- /dev/null
@@ -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
This page took 0.091856 seconds and 4 git commands to generate.