summaryrefslogtreecommitdiffstats
path: root/php-pecl-zip.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-08-22 16:08:11 +0200
committerRemi Collet <fedora@famillecollet.com>2013-08-22 16:08:11 +0200
commit678544d8c84ca557a21328a509d1824500b85ca0 (patch)
tree60e70ff360c17d590fc2f99e1b3caff8987bf8e5 /php-pecl-zip.spec
parentfc5f073486a9b7755b31af15f5fbeecd3e31f065 (diff)
php-pecl-zip: fixes from review comments #999313
Diffstat (limited to 'php-pecl-zip.spec')
-rw-r--r--php-pecl-zip.spec19
1 files changed, 16 insertions, 3 deletions
diff --git a/php-pecl-zip.spec b/php-pecl-zip.spec
index 5902dae..3fd97b9 100644
--- a/php-pecl-zip.spec
+++ b/php-pecl-zip.spec
@@ -18,8 +18,13 @@ Summary: A ZIP archive management extension
Summary(fr): Une extension de gestion des ZIP
Name: php-pecl-zip
Version: 1.12.1
-Release: 2%{?dist}
+Release: 3%{?dist}
+%if %{with_libzip}
+# Zip extension is PHP, Libzip library is BSD
+License: PHP and BSD
+%else
License: PHP
+%endif
Group: Development/Languages
URL: http://pecl.php.net/package/zip
@@ -34,9 +39,8 @@ Patch1: zip-systemlibzip.patch
BuildRequires: php-devel
%if %{with_libzip}
BuildRequires: pkgconfig(libzip) >= 0.11.1
-%else
-BuildRequires: zlib-devel
%endif
+BuildRequires: zlib-devel
BuildRequires: php-pear
Requires(post): %{_bindir}/pecl
@@ -67,12 +71,16 @@ Zip est une extension pour créer et lire les archives au format ZIP.
cd %{pecl_name}-%{version}
%patch0 -p1 -b .git
+
%if %{with_libzip}
%patch1 -p1 -b .systemlibzip
# delete bundled libzip to ensure it is not used (except zipint.h)
rm lib/*.c
%endif
+# make rpmlint happy (fixed in upstream git)
+chmod -x *.c *.h lib/*.h examples/* CREDITS
+
cd ..
: Create the configuration file
cat >%{pecl_name}.ini << 'EOF'
@@ -183,6 +191,11 @@ fi
%changelog
+* Thu Aug 22 2013 Remi Collet <rcollet@redhat.com> 1.12.1-3
+- fixes from review comments #999313: clarify License
+- drop execution right from sources
+- BR libzip-devel always needed
+
* Tue Aug 20 2013 Remi Collet <rcollet@redhat.com> 1.12.1-2
- refresh our merged patches from upstream git