remi pushed to php-phpunit-diff (f22). "update to 1.3.0"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 7 05:08:23 UTC 2015


>From d1a9686d477576c0112e4dae7cf672d9fdaaa749 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi at fedoraproject.org>
Date: Fri, 3 Apr 2015 14:39:59 +0200
Subject: update to 1.3.0


diff --git a/.gitignore b/.gitignore
index e0d3414..50158b8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ php-phpunit-diff.spec~
 /Diff-1.1.0.tgz
 /diff-1.1.0.tar.gz
 /diff-1.2.0.tar.gz
+/diff-1.3.0.tar.gz
diff --git a/php-phpunit-diff.spec b/php-phpunit-diff.spec
index e4e918a..0fbf115 100644
--- a/php-phpunit-diff.spec
+++ b/php-phpunit-diff.spec
@@ -1,17 +1,17 @@
 # spec file for php-phpunit-diff
 #
-# Copyright (c) 2013-2014 Remi Collet
+# Copyright (c) 2013-2015 Remi Collet
 # License: CC-BY-SA
-# http://creativecommons.org/licenses/by-sa/3.0/
+# http://creativecommons.org/licenses/by-sa/4.0/
 #
 # Please, preserve the changelog entries
 #
 %global bootstrap    0
-%global gh_commit    5843509fed39dee4b356a306401e9dd1a931fec7
+%global gh_commit    863df9687835c62aa423a22412d26fa2ebde3fd3
 %global gh_short     %(c=%{gh_commit}; echo ${c:0:7})
 %global gh_owner     sebastianbergmann
 %global gh_project   diff
-%global php_home     %{_datadir}/php/SebastianBergmann
+%global php_home     %{_datadir}/php
 %global pear_name    Diff
 %global pear_channel pear.phpunit.de
 %if %{bootstrap}
@@ -21,7 +21,7 @@
 %endif
 
 Name:           php-phpunit-diff
-Version:        1.2.0
+Version:        1.3.0
 Release:        1%{?dist}
 Summary:        Diff implementation
 
@@ -34,7 +34,9 @@ BuildArch:      noarch
 BuildRequires:  php(language) >= 5.3.3
 BuildRequires:  %{_bindir}/phpab
 %if %{with_tests}
-BuildRequires:  php-phpunit-PHPUnit >= 4.2
+# from composer.json, "require-dev": {
+#        "phpunit/phpunit": "~4.2"
+BuildRequires:  php-composer(phpunit/phpunit) >= 4.2
 %endif
 
 # from composer.json
@@ -59,23 +61,26 @@ Diff implementation.
 %prep
 %setup -q -n %{gh_project}-%{gh_commit}
 
+# Restore PSR-0 tree
+mkdir  SebastianBergmann
+mv src SebastianBergmann/Diff
+
 
 %build
 phpab \
-  --output   src/autoload.php \
-  src
+  --output   SebastianBergmann/Diff/autoload.php \
+  SebastianBergmann/Diff
 
 
 %install
-mkdir -p   %{buildroot}%{php_home}
-cp -pr src %{buildroot}%{php_home}/%{pear_name}
+mkdir -p %{buildroot}%{php_home}/SebastianBergmann
+cp -pr                           SebastianBergmann/Diff \
+         %{buildroot}%{php_home}/SebastianBergmann/Diff
 
 
 %if %{with_tests}
 %check
-phpunit \
-  --bootstrap src/autoload.php \
-  -d date.timezone=UTC
+phpunit --bootstrap SebastianBergmann/Diff/autoload.php
 %endif
 
 
@@ -91,11 +96,14 @@ fi
 %license LICENSE
 %doc README.md composer.json
 
-%dir %{php_home}
-%{php_home}/%{pear_name}
+%dir %{php_home}/SebastianBergmann
+     %{php_home}/SebastianBergmann/Diff
 
 
 %changelog
+* Fri Apr  3 2015 Remi Collet <remi at fedoraproject.org> - 1.3.0-1
+- update to 1.3.0
+
 * Fri Oct  3 2014 Remi Collet <remi at fedoraproject.org> - 1.2.0-1
 - update to 1.2.0
 - run test suite during build
diff --git a/sources b/sources
index 6fc69d2..81d8e25 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-948610ad2602247796a1751f2892c6ae  diff-1.2.0.tar.gz
+04919ad153556a51210f09c8f4419416  diff-1.3.0.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/php-phpunit-diff.git/commit/?h=f22&id=d1a9686d477576c0112e4dae7cf672d9fdaaa749


More information about the scm-commits mailing list