diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-07-02 09:35:41 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-07-02 09:35:41 +0200 |
commit | 4984d6ee8c05107758c7d334d694a9c014425eb4 (patch) | |
tree | 48b4d16b6cc5c669e72ea560d1ce60e0e7f65d43 /php-pecl-yac-php7.spec | |
parent | 5ab72b595e6543a5f6bff9ca37e8f2fe3f1927a2 (diff) |
php-pecl-yac: 2.0.1
Diffstat (limited to 'php-pecl-yac-php7.spec')
-rw-r--r-- | php-pecl-yac-php7.spec | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/php-pecl-yac-php7.spec b/php-pecl-yac-php7.spec index 8631971..4876d5e 100644 --- a/php-pecl-yac-php7.spec +++ b/php-pecl-yac-php7.spec @@ -15,10 +15,9 @@ %else %global sub_prefix %{scl_prefix} %endif +%scl_package php-pecl-yac %endif -%{?scl: %scl_package php-yac} - %global gh_commit 7e5a9edfcfb6ad064c165a0b6abf8d11218fe4b5 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner laruence @@ -36,17 +35,18 @@ Summary: Lockless user data cache Name: %{?sub_prefix}php-pecl-%{pecl_name} -Version: 2.0.0 +Version: 2.0.1 %if 0%{?gh_date:1} Release: 0.6.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pecl_name}-%{version}-%{gh_short}.tar.gz %else -Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz %endif License: PHP Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} -Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pecl_name}-%{version}-%{gh_short}.tar.gz BuildRequires: %{?scl_prefix}php-devel > 7 BuildRequires: %{?scl_prefix}php-pear @@ -64,8 +64,10 @@ Provides: %{?scl_prefix}php-%{pecl_name} = %{version} Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +%if "%{?scl_prefix}" != "%{?sub_prefix}" Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} +%endif %if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} # Other third party repo stuff @@ -79,6 +81,10 @@ Obsoletes: php56u-pecl-%{pecl_name} <= %{version} Obsoletes: php56w-pecl-%{pecl_name} <= %{version} Obsoletes: php70u-pecl-%{pecl_name} <= %{version} Obsoletes: php70w-pecl-%{pecl_name} <= %{version} +%if "%{php_version}" > "7.1" +Obsoletes: php71u-pecl-%{pecl_name} <= %{version} +Obsoletes: php71w-pecl-%{pecl_name} <= %{version} +%endif %endif %if 0%{?fedora} < 20 && 0%{?rhel} < 7 @@ -103,8 +109,12 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -qc +%if 0%{?gh_date:1} mv %{gh_project}-%{gh_commit} NTS mv NTS/package.xml . +%else +mv %{pecl_name}-%{version} NTS +%endif # Don't install (register) the tests sed -e 's/role="test"/role="src"/' \ @@ -262,6 +272,10 @@ fi %changelog +* Sat Jul 2 2016 Remi Collet <remi@fedoraproject.org> - 2.0.1-1 +- update to 2.0.1 (php 7) +- sources from pecl + * Sun Mar 6 2016 Remi Collet <remi@fedoraproject.org> - 2.0.0-2 - adapt for F24 |