summaryrefslogtreecommitdiffstats
path: root/php-phpunit-mock-objects5.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-phpunit-mock-objects5.spec')
-rw-r--r--php-phpunit-mock-objects5.spec31
1 files changed, 17 insertions, 14 deletions
diff --git a/php-phpunit-mock-objects5.spec b/php-phpunit-mock-objects5.spec
index 33b2876..3783392 100644
--- a/php-phpunit-mock-objects5.spec
+++ b/php-phpunit-mock-objects5.spec
@@ -6,9 +6,9 @@
#
# Please, preserve the changelog entries
#
-%global bootstrap 0
+%global bootstrap 1
# Github
-%global gh_commit 2f789b59ab89669015ad984afa350c4ec577ade0
+%global gh_commit f72a0da31f2bee0b3d90259cacc12f2b0b8b8f5f
#global gh_date 20150902
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_vendor sebastianbergmann
@@ -21,10 +21,10 @@
%global ns_top Framework
%global ns_project MockObject
%global php_home %{_datadir}/php
-%global ver_major 4
+%global ver_major 5
%global ver_minor 0
-%global ver_patch 4
-%global specrel 2
+%global ver_patch 0
+%global specrel 0
%if %{bootstrap}
%global with_tests 0%{?_with_tests:1}
%else
@@ -42,8 +42,7 @@ URL: https://github.com/%{gh_vendor}/%{gh_project}
Source0: https://github.com/%{gh_vendor}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz
# Temporary workaround, under investigation
-Patch0: %{gh_project}-4.0.0-rpm.patch
-Patch1: a669a8e3569e62e542812e0620f3d0f7e53870b2.patch
+Patch0: %{name}-rpm.patch
BuildArch: noarch
BuildRequires: php-fedora-autoloader-devel
@@ -56,8 +55,8 @@ BuildRequires: php-composer(doctrine/instantiator) >= 1.0.5
BuildRequires: php-composer(sebastian/exporter) < 4
BuildRequires: php-composer(sebastian/exporter) >= 3.0
# From composer.json, "require-dev": {
-# "phpunit/phpunit": "^6.4.3"
-BuildRequires: phpunit6 >= 6.4.3
+# "phpunit/phpunit": "^6.5"
+BuildRequires: phpunit6 >= 6.5
%endif
# From composer.json, "require": {
@@ -89,14 +88,13 @@ Provides: php-composer(%{pk_vendor}/%{pk_project}) = %{version}
%description
Mock Object library for PHPUnit
-Autoloader: %{php_home}/%{ns_vendor}/%{ns_top}/%{ns_project}/autoload.php
+Autoloader: %{php_home}/%{ns_vendor}/%{ns_top}/%{ns_project}%{ver_major}/autoload.php
%prep
%setup -q -n %{gh_project}-%{gh_commit}
%patch0 -p0
-%patch1 -p1
find . -name \*.orig -exec rm {} \; -print
@@ -116,7 +114,7 @@ EOF
%install
mkdir -p %{buildroot}%{php_home}/%{ns_vendor}/%{ns_top}
-cp -pr src %{buildroot}%{php_home}/%{ns_vendor}/%{ns_top}/%{ns_project}
+cp -pr src %{buildroot}%{php_home}/%{ns_vendor}/%{ns_top}/%{ns_project}%{ver_major}
%if %{with_tests}
@@ -128,7 +126,7 @@ phpab \
tests/_fixture/
cat << 'EOF' | tee -a vendor/autoload.php
-require_once '%{buildroot}%{php_home}/%{ns_vendor}/%{ns_top}/%{ns_project}/autoload.php';
+require_once '%{buildroot}%{php_home}/%{ns_vendor}/%{ns_top}/%{ns_project}%{ver_major}/autoload.php';
EOF
ret=0
@@ -149,10 +147,15 @@ exit $ret
%doc composer.json
%dir %{php_home}/%{ns_vendor}/
%dir %{php_home}/%{ns_vendor}/%{ns_top}/
- %{php_home}/%{ns_vendor}/%{ns_top}/%{ns_project}/
+ %{php_home}/%{ns_vendor}/%{ns_top}/%{ns_project}%{ver_major}/
%changelog
+* Fri Dec 1 2017 Remi Collet <remi@remirepo.net> - 5.0.0-0
+- rename to php-phpunit-mock-objects5
+- update to 5.0.0
+- boostrap build
+
* Fri Nov 3 2017 Remi Collet <remi@remirepo.net> - 4.0.4-2
- fix FTBFS from Koschei, add upstream patch