[packages/php-pecl-zstd] New, version 0.8.0

glen glen at pld-linux.org
Mon Mar 16 15:41:13 CET 2020


commit 260423e29ae6c149d1dcb3dee30ec7f43cdff8d3
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Mar 16 16:34:37 2020 +0200

    New, version 0.8.0
    
    Created from php-pecl.spec template spec

 php-pecl-zstd.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)
---
diff --git a/php-pecl-zstd.spec b/php-pecl-zstd.spec
new file mode 100644
index 0000000..8b4ee16
--- /dev/null
+++ b/php-pecl-zstd.spec
@@ -0,0 +1,69 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define		php_name	php%{?php_suffix}
+%define		modname	zstd
+Summary:	%{modname} - Zstandard extension
+Name:		%{php_name}-pecl-%{modname}
+Version:	0.8.0
+Release:	1
+License:	PHP 3.01
+Group:		Development/Languages/PHP
+Source0:	https://pecl.php.net/get/%{modname}-%{version}.tgz
+# Source0-md5:	6ca4a5f81a2acb47d9ae4fa1d2440434
+URL:		https://pecl.php.net/package/zstd/
+BuildRequires:	%{php_name}-cli
+BuildRequires:	%{php_name}-devel
+BuildRequires:	rpmbuild(macros) >= 1.666
+%{?requires_php_extension}
+Provides:	php(%{modname}) = %{version}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PHP extension for compression and decompression with Zstandard
+library.
+
+%prep
+%setup -qc
+mv %{modname}-%{version}/* .
+
+%build
+phpize
+%configure
+%{__make}
+
+# simple module load test
+%{__php} -n -q \
+	-d extension_dir=modules \
+	-d extension=%{modname}.so \
+	-m > modules.log
+grep %{modname} modules.log
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	EXTENSION_DIR=%{php_extensiondir} \
+	INSTALL_ROOT=$RPM_BUILD_ROOT
+
+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)
+%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-zstd.git/commitdiff/260423e29ae6c149d1dcb3dee30ec7f43cdff8d3



More information about the pld-cvs-commit mailing list