diff options
author | Remi Collet <remi@remirepo.net> | 2017-05-05 07:03:12 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2017-05-05 07:03:12 +0200 |
commit | 27bdedc8c424ca208c379d31a8b8d178c2161788 (patch) | |
tree | 0b96e7716d178f96fc10d53acd9f9e287b0d2428 /php-pecl-protobuf.spec | |
parent | 588712b22d4acaf798f93135bb80dc4af3f76521 (diff) |
v3.3.0
Diffstat (limited to 'php-pecl-protobuf.spec')
-rw-r--r-- | php-pecl-protobuf.spec | 54 |
1 files changed, 30 insertions, 24 deletions
diff --git a/php-pecl-protobuf.spec b/php-pecl-protobuf.spec index 233c929..7fcaf21 100644 --- a/php-pecl-protobuf.spec +++ b/php-pecl-protobuf.spec @@ -7,11 +7,7 @@ # Please, preserve the changelog entries # %if 0%{?scl:1} -%if "%{scl}" == "rh-php56" -%global sub_prefix more-php56- -%else %global sub_prefix %{scl_prefix} -%endif %scl_package php-pecl-protobuf %endif @@ -22,19 +18,16 @@ %else %global ini_name 40-%{pecl_name}.ini %endif -%global prever a1 Summary: Mechanism for serializing structured data Name: %{?sub_prefix}php-pecl-%{pecl_name} -Version: 3.1.0 -Release: 0.1.%{prever}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 3.3.0 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} -Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{prever}.tgz -Source1: https://raw.githubusercontent.com/google/protobuf/master/LICENSE +Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: %{?scl_prefix}php-devel >= 5.5.9 BuildRequires: %{?scl_prefix}php-pear @@ -65,6 +58,18 @@ Obsoletes: php55w-pecl-%{pecl_name} <= %{version} Obsoletes: php56u-pecl-%{pecl_name} <= %{version} Obsoletes: php56w-pecl-%{pecl_name} <= %{version} %endif +%if "%{php_version}" > "7.0" +Obsoletes: php70u-pecl-%{pecl_name} <= %{version} +Obsoletes: php70w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "7.1" +Obsoletes: php71u-pecl-%{pecl_name} <= %{version} +Obsoletes: php71w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "7.2" +Obsoletes: php72u-pecl-%{pecl_name} <= %{version} +Obsoletes: php72w-pecl-%{pecl_name} <= %{version} +%endif %endif %if 0%{?fedora} < 20 && 0%{?rhel} < 7 @@ -85,17 +90,21 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c -mv %{pecl_name}-%{version}%{prever} NTS -cp %{SOURCE1} LICENSE +mv %{pecl_name}-%{version}%{?prever} NTS + +# Don't install/register tests +sed -e 's/role="test"/role="src"/' \ + %{?_licensedir: -e '/LICENSE/s/role="doc"/role="src"/' } \ + %{!?_licensedir:-e '/LICENSE/s/role="src"/role="doc"/' } \ + -i package.xml -%{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml} cd NTS # Sanity check, really often broken extver=$(sed -n '/#define PHP_PROTOBUF_VERSION/{s/.* "//;s/".*$//;p}' protobuf.h) -if test "x${extver}" != "x%{version}%{prever}"; then - : Error: Upstream extension version is ${extver}, expecting %{version}%{prever}. +if test "x${extver}" != "x%{version}%{?prever}"; then + : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever}. exit 1 fi cd .. @@ -131,7 +140,6 @@ make %{?_smp_mflags} %install -rm -rf %{buildroot} # Install the NTS stuff make -C NTS install INSTALL_ROOT=%{buildroot} install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} @@ -190,15 +198,9 @@ fi %endif -%clean -rm -rf %{buildroot} - - %files -%defattr(-,root,root,-) -%{!?_licensedir:%global license %%doc} -%license LICENSE -#doc #{pecl_docdir}/%{pecl_name} +%{?_licensedir:%license NTS/LICENSE} +%{!?_licensedir:%doc %{pecl_docdir}/%{pecl_name}} %{pecl_xmldir}/%{name}.xml %config(noreplace) %{php_inidir}/%{ini_name} @@ -211,6 +213,10 @@ rm -rf %{buildroot} %changelog +* Fri May 5 2017 Remi Collet <remi@fedoraproject.org> - 3.3.0-1 +- update to 3.3.0 +- open https://github.com/google/protobuf/issues/3058 - PHP 7.1 + * Tue Sep 27 2016 Remi Collet <remi@fedoraproject.org> - 3.1.0-0.1.a1 - initial package, version 3.1.0a1 (alpha) - open https://github.com/google/protobuf/issues/2185 - License |