From de1aadb32dbdf44093c91a3a8f4bba913d57ea85 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 15 Oct 2015 09:11:48 +0200 Subject: php-hamcrest: 1.2.2 --- autoload.php.in | 17 ----------------- php-hamcrest.spec | 41 ++++++++++++++++++++++++++--------------- 2 files changed, 26 insertions(+), 32 deletions(-) delete mode 100644 autoload.php.in diff --git a/autoload.php.in b/autoload.php.in deleted file mode 100644 index 2112c71..0000000 --- a/autoload.php.in +++ /dev/null @@ -1,17 +0,0 @@ -=5.3.2" BuildRequires: php(language) >= 5.3.2 -# From phpcompatinfo report for 1.2.0 +# From phpcompatinfo report for 1.2.2 BuildRequires: php-dom BuildRequires: php-pcre BuildRequires: php-spl +%endif Requires: php(language) >= 5.3.2 -# From phpcompatinfo report for 1.2.0 +# From phpcompatinfo report for 1.2.2 Requires: php-dom Requires: php-pcre Requires: php-spl @@ -57,6 +56,9 @@ but subsequently ported to many other languages. a literal translation of the original Java API for Hamcrest, with a few Exceptions, mostly down to PHP language barriers. +To use this library, you just have to add, in your project: + require_once '%{_datadir}/php/Hamcrest/autoload.php'; + %prep %setup -q -n %{gh_project}-%{gh_commit} @@ -70,10 +72,15 @@ mv hamcrest/Hamcrest.php hamcrest/Hamcrest/Hamcrest.php %build # Library autoloader %{_bindir}/phpab \ - --template %{SOURCE1} \ --output hamcrest/Hamcrest/autoload.php \ hamcrest/Hamcrest +cat << 'EOF' | tee -a hamcrest/Hamcrest/autoload.php + +// Functions +require __DIR__ . '/Hamcrest.php'; +EOF + # Test suite autoloader %{_bindir}/phpab \ --output tests/autoload.php \ @@ -90,7 +97,7 @@ cp -pr hamcrest/* %{buildroot}%{_datadir}/php %check %if %{with_tests} cd tests -%{_bindir}/phpunit +%{_bindir}/phpunit --verbose %else : Test suite disabled %endif @@ -104,10 +111,14 @@ rm -rf %{buildroot} %defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE.txt -%doc CHANGES.txt README.md composer.json TODO.txt +%doc CHANGES.txt README.md TODO.txt +%doc composer.json %{_datadir}/php/Hamcrest %changelog +* Thu Oct 15 2015 Remi Collet - 1.2.2-1 +- update to 1.2.2 + * Mon Jan 5 2015 Remi Collet - 1.2.0-1 - initial package \ No newline at end of file -- cgit