diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-03-27 15:25:19 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-03-27 15:25:19 +0100 |
commit | f8a82164dc377d43a80876a3ea123b5772f614ec (patch) | |
tree | 6bf6bc0b50062bfd10f7e9da0ac883463c029eb5 | |
parent | d22588a8f76f83f8350c8b899fca8ea7c7fe656c (diff) |
php-pecl-jsonc: fix license info
-rw-r--r-- | php-pecl-jsonc.spec | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/php-pecl-jsonc.spec b/php-pecl-jsonc.spec index a56b4ce..31f5030 100644 --- a/php-pecl-jsonc.spec +++ b/php-pecl-jsonc.spec @@ -35,8 +35,15 @@ Summary: Support for JSON serialization Name: %{?scl_prefix}php-pecl-%{proj_name} Version: 1.3.7 -Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +%if %{with_libjson} License: PHP +%else +# PHP extension is PHP +# jsonc-c is MIT +# json-c/linkhask.c is Public Domain +License: PHP and MIT and Public Domain +%endif Group: Development/Languages URL: http://pecl.php.net/package/%{proj_name} Source0: http://pecl.php.net/get/%{proj_name}-%{version}.tgz @@ -52,6 +59,7 @@ BuildRequires: json-c-devel >= 0.11 BuildRequires: json-c-devel < 0.12 %else Provides: bundled(libjson-c) = 0.11 +Provides: bundled(bobjenkins-hash) %endif Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} @@ -124,7 +132,15 @@ Only used to be the best provider for php-json. %prep %setup -q -c + cd %{proj_name}-%{version} +%if %{with_libjson} +rm -rf json-c +%else +sed -e '/AUTHORS/s/role="src"/role="doc"/' \ + -e '/COPYING/s/role="src"/role="doc"/' \ + -i ../package.xml +%endif %ifarch i386 %if 0%{?rhel} == 5 @@ -266,6 +282,10 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) +%{?_licensedir:%license %{proj_name}-%{version}/LICENSE} +%if ! %{with_libjson} +%{?_licensedir:%license %{proj_name}-%{version}/json-c/COPYING} +%endif %doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml @@ -297,6 +317,11 @@ rm -rf %{buildroot} # Note to remi : remember to always build in remi-php55(56) first # %changelog +* Fri Mar 27 2015 Remi Collet <remi@fedoraproject.org> - 1.3.7-2 +- fix license: PHP and MIT and Public Domain +- fix missing license files +- fix license handling + * Wed Feb 18 2015 Remi Collet <remi@fedoraproject.org> - 1.3.7-1 - release 1.3.7 (stable) |