summaryrefslogtreecommitdiffstats
path: root/php-opencloud.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-11-02 16:27:01 +0100
committerRemi Collet <remi@remirepo.net>2017-11-02 16:27:01 +0100
commit65ab0fa253b4c1ba454a4d36847ef923ba08c08f (patch)
treece34dc4bb4753ef261493aeb6214c292b2287f8f /php-opencloud.spec
parentb917f662e60e92c010ba312891625cb09c0f1d7c (diff)
fix FTBFS from Koschei, add patch for PHP 7.2 from https://github.com/mikemccabe/json-patch-php/pull/17HEADmaster
Diffstat (limited to 'php-opencloud.spec')
-rw-r--r--php-opencloud.spec13
1 files changed, 11 insertions, 2 deletions
diff --git a/php-opencloud.spec b/php-opencloud.spec
index f8a607b..e3ccd00 100644
--- a/php-opencloud.spec
+++ b/php-opencloud.spec
@@ -49,7 +49,7 @@
Name: php-opencloud
Version: %{github_version}
-Release: 2%{?github_release}%{?dist}
+Release: 4%{?github_release}%{?dist}
Summary: PHP SDK for OpenStack/Rackspace APIs
Group: Development/Libraries
@@ -60,6 +60,8 @@ Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{githu
# Bundled: php-composer(mikemccabe/json-patch-php)
Source1: https://github.com/%{mikemccabe_json_patch_php_github_owner}/%{mikemccabe_json_patch_php_github_name}/archive/%{mikemccabe_json_patch_php_github_commit}/%{name}-mikemccabe-json-patch-php-%{mikemccabe_json_patch_php_github_version}-%{mikemccabe_json_patch_php_github_commit}.tar.gz
+Patch0: https://patch-diff.githubusercontent.com/raw/mikemccabe/json-patch-php/pull/17.patch
+
BuildArch: noarch
# Tests
%if %{with_tests}
@@ -128,6 +130,9 @@ Documentation for PHP SDK for OpenStack/Rackspace APIs.
%prep
%setup -qn %{github_name}-%{github_commit} -a 1
+cd %{mikemccabe_json_patch_php_github_name}-%{mikemccabe_json_patch_php_github_commit}
+%patch0 -p1
+
%build
: Create autoloader
@@ -194,7 +199,7 @@ sed \
: Upstream tests
RETURN_CODE=0
PHPUNIT=$(which phpunit)
-for PHP_EXEC in "" %{?rhel:php55} php56 php70 php71; do
+for PHP_EXEC in "" %{?rhel:php55} php56 php70 php71 php72; do
if [ -z "$PHP_EXEC" ] || which $PHP_EXEC; then
$PHP_EXEC $PHPUNIT --verbose || RETURN_CODE=1
fi
@@ -219,6 +224,10 @@ exit $RETURN_CODE
%changelog
+* Thu Nov 2 2017 Remi Collet <remi@remimrepo.net> - 1.16.0-4
+- fix FTBFS from Koschei, add patch for PHP 7.2 from
+ https://github.com/mikemccabe/json-patch-php/pull/17
+
* Mon May 29 2017 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.16.0-2
- Fix autoloader dependency