]> git.pld-linux.org Git - packages/php-pecl-zstd.git/commitdiff
Build using system zstd-devel
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 16 Mar 2020 14:42:22 +0000 (16:42 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 16 Mar 2020 14:42:22 +0000 (16:42 +0200)
php-pecl-zstd.spec

index 8b4ee1649197359d8b88dcc658a06504826ff133..f3ca405b31ed40cc72f2a0ee9d3bb90e74bdb5d4 100644 (file)
@@ -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
This page took 0.070782 seconds and 4 git commands to generate.