[packages/php-pecl-zstd] Build using system zstd-devel

glen glen at pld-linux.org
Mon Mar 16 21:56:30 CET 2020


commit c66b7e5659b558bca0407de2851419f1fe091bd1
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Mar 16 16:42:22 2020 +0200

    Build using system zstd-devel

 php-pecl-zstd.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/php-pecl-zstd.spec b/php-pecl-zstd.spec
index 8b4ee16..f3ca405 100644
--- a/php-pecl-zstd.spec
+++ b/php-pecl-zstd.spec
@@ -16,6 +16,7 @@ URL:		https://pecl.php.net/package/zstd/
 BuildRequires:	%{php_name}-cli
 BuildRequires:	%{php_name}-devel
 BuildRequires:	rpmbuild(macros) >= 1.666
+BuildRequires:	zstd-devel
 %{?requires_php_extension}
 Provides:	php(%{modname}) = %{version}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -27,10 +28,12 @@ library.
 %prep
 %setup -qc
 mv %{modname}-%{version}/* .
+rm -r zstd
 
 %build
 phpize
-%configure
+%configure \
+	--with-libzstd
 %{__make}
 
 # simple module load test
@@ -65,5 +68,6 @@ 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-zstd.git/commitdiff/36ee533eaa240fd4ad0d863d9d31e51e7c24bc4b



More information about the pld-cvs-commit mailing list