Skip to content

Commit

Permalink
Merge pull request #11 from ggtakec/update_packages
Browse files Browse the repository at this point in the history
Updated files related to packaging
  • Loading branch information
ggtakec authored Oct 26, 2022
2 parents eaabb02 + 881b267 commit 0674dc2
Showing 1 changed file with 27 additions and 28 deletions.
55 changes: 27 additions & 28 deletions buildutils/php-pecl-k2hash.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,43 +53,42 @@

%global buildver %(pkg-config --silence-errors --modversion libk2hash 2>/dev/null || echo 65536)

Summary: A k2hash PHP module written in C
Name: %{?sub_prefix}@K2H_EXT_PKGNAME@
Version: @K2H_EXT_VERSION@
Release: %{package_revision}%{?dist}
License: MIT
Group: Development/Languages
URL: https://@GIT_DOMAIN@/@GIT_ORG@/@GIT_REPO@/
Source0: https://@GIT_DOMAIN@/@GIT_ORG@/@GIT_REPO@/archive/@K2H_EXT_PKGNAME@-%{version}.tar.gz

BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 7.4
BuildRequires: k2hash-devel >= %{buildver}
Requires: k2hash%{?_isa} >= %{buildver}
Summary: A k2hash PHP module written in C
Name: %{?sub_prefix}@K2H_EXT_PKGNAME@
Version: @K2H_EXT_VERSION@
Release: %{package_revision}%{?dist}
License: MIT
Group: Development/Languages
URL: https://@GIT_DOMAIN@/@GIT_ORG@/@GIT_REPO@/
Source0: https://@GIT_DOMAIN@/@GIT_ORG@/@GIT_REPO@/archive/@K2H_EXT_PKGNAME@-%{version}.tar.gz

BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 7.4
BuildRequires: k2hash-devel >= %{buildver}
Requires: k2hash%{?_isa} >= %{buildver}

%if 0%{?php_zend_api}
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
%endif
%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}

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}
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}
Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release}
Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
%endif

# obsoletes rh-php71-******
Provides: rh-php-%{pecl_name} = 1.1.0
Provides: rh-php-%{pecl_name}%{?_isa} = 1.1.0
Provides: rh-php-pecl(%{pecl_name}) = 1.1.0
Provides: rh-php-pecl(%{pecl_name})%{?_isa} = 1.1.0
Provides: rh-php-%{pecl_name} = 1.1.0
Provides: rh-php-%{pecl_name}%{?_isa} = 1.1.0
Provides: rh-php-pecl(%{pecl_name}) = 1.1.0
Provides: rh-php-pecl(%{pecl_name})%{?_isa} = 1.1.0
%if "%{?scl_prefix}" != "%{?sub_prefix}"
Provides: rh-php-pecl-%{pecl_name} = 1.1.0-1
Provides: rh-php-pecl-%{pecl_name}%{?_isa} = 1.1.0-1
Provides: rh-php-pecl-%{pecl_name} = 1.1.0-1
Provides: rh-php-pecl-%{pecl_name}%{?_isa} = 1.1.0-1
%endif

#
Expand Down

0 comments on commit 0674dc2

Please sign in to comment.