From 55ae6474b4371e9c3fc24d5c15d8ddbc488f4c8c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 9 Aug 2017 09:55:29 +0200 Subject: patch for bigendian --- php-pecl-ds.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'php-pecl-ds.spec') diff --git a/php-pecl-ds.spec b/php-pecl-ds.spec index 4c3dc58..ede760c 100644 --- a/php-pecl-ds.spec +++ b/php-pecl-ds.spec @@ -30,7 +30,7 @@ Summary: Data Structures for PHP Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 1.2.2 -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: MIT Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} @@ -39,6 +39,8 @@ Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz # in composer.json: "require-dev": { "php-ds/tests": "dev-master" } Source1: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{gh_short}.tar.gz +Patch0: %{pecl_name}-bigendian.patch + BuildRequires: %{?scl_prefix}php-devel >= 7 BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-json @@ -95,6 +97,7 @@ mv %{gh_project}-%{gh_commit} tests %{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml} cd NTS +%patch0 -p1 -b .bigendian # Sanity check, really often broken extver=$(sed -n '/#define PHP_DS_VERSION/{s/.* "//;s/".*$//;p}' php_ds.h) @@ -233,6 +236,9 @@ cd .. %changelog +* Wed Aug 9 2017 Remi Collet - 1.2.2-2 +- add patch for bigendian + * Mon Aug 7 2017 Remi Collet - 1.2.2-1 - Update to 1.2.2 -- cgit