diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-06-29 14:20:01 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-06-29 14:20:01 +0200 |
commit | 9bdc6556d2b33b264ece5fb9a35531be60c3a0f3 (patch) | |
tree | 1a656d19e3b68243e00be823861717071586adaf | |
parent | a30fa635834a70d5a8c92cb7cc18b1967214a561 (diff) |
php-phpunit-comparator: manage dependencies in autoloader
-rw-r--r-- | php-phpunit-comparator.spec | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/php-phpunit-comparator.spec b/php-phpunit-comparator.spec index 21c5484..647c9d3 100644 --- a/php-phpunit-comparator.spec +++ b/php-phpunit-comparator.spec @@ -20,7 +20,7 @@ Name: php-phpunit-comparator Version: 1.1.1 -Release: 1%{?dist} +Release: 3%{?dist} Summary: Compare PHP values for equality Group: Development/Libraries @@ -65,6 +65,12 @@ This component provides the functionality to compare PHP values for equality. # Generate the Autoloader phpab --output src/autoload.php src +cat <<EOF | tee -a src/autoload.php +// Dependencies' autoloaders +require_once '%{_datadir}/php/SebastianBergmann/Diff/autoload.php'; +require_once '%{_datadir}/php/SebastianBergmann/Exporter/autoload.php'; +EOF + %install rm -rf %{buildroot} @@ -78,7 +84,7 @@ sed -e 's/vendor/src/' -i tests/bootstrap.php sed -e '/log/d' phpunit.xml.dist >phpunit.xml phpunit \ - --include-path %{_datadir}/php \ + --include-path %{buildroot}%{_datadir}/php \ --bootstrap tests/bootstrap.php %else : bootstrap build with test suite disabled @@ -99,6 +105,9 @@ rm -rf %{buildroot} %changelog +* Mon Jun 29 2015 Remi Collet <remi@fedoraproject.org> - 1.1.1-3 +- manage dependencies in autoloader + * Fri Jan 30 2015 Remi Collet <remi@fedoraproject.org> - 1.1.1-1 - update to 1.1.1 - raise dependency on sebastian/diff >= 1.2 |