From f480bd081753b40573023dedba9d5c0dd631c972 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Oct 06 2014 06:40:20 +0000 Subject: update to 1.0.2 (no change) + enable test suite --- diff --git a/.gitignore b/.gitignore index a29527d..cdabcf4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ clog php-phpunit-exporter.spec~ /Exporter-1.0.0.tgz /exporter-1.0.1.tar.gz +/exporter-1.0.2.tar.gz diff --git a/php-phpunit-exporter.spec b/php-phpunit-exporter.spec index 6942912..28bfd34 100644 --- a/php-phpunit-exporter.spec +++ b/php-phpunit-exporter.spec @@ -6,19 +6,23 @@ # # Please, preserve the changelog entries # -%global gh_commit 1f9a98e6f5dfe0524cb8c6166f7c82f3e9ae1529 +%global bootstrap 0 +%global gh_commit c7d59948d6e82818e1bdff7cadb6c34710eb7dc0 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project exporter %global php_home %{_datadir}/php/SebastianBergmann/ %global pear_name Exporter %global pear_channel pear.phpunit.de -# Circular dependency with phpunit +%if %{bootstrap} %global with_tests %{?_with_tests:1}%{!?_with_tests:0} +%else +%global with_tests %{?_without_tests:0}%{!?_without_tests:1} +%endif Name: php-phpunit-exporter -Version: 1.0.1 -Release: 4%{?dist} +Version: 1.0.2 +Release: 1%{?dist} Summary: Export PHP variables for visualization Group: Development/Libraries @@ -72,6 +76,16 @@ cp -pr src %{buildroot}%{php_home}/%{pear_name} %if %{with_tests} %check +if [ -d /usr/share/php/PHPUnit ] +then + # Hack PHPUnit 4 autoloader to not use system library + mkdir PHPUnit + sed -e 's:SebastianBergmann/Exporter:src:' \ + -e 's:dirname(__FILE__):"/usr/share/php/PHPUnit":' \ + /usr/share/php/PHPUnit/Autoload.php \ + >PHPUnit/Autoload.php +fi + phpunit \ --bootstrap src/autoload.php \ -d date.timezone=UTC @@ -95,6 +109,10 @@ fi %changelog +* Sun Oct 5 2014 Remi Collet - 1.0.2-1 +- update to 1.0.2 +- enable test suite + * Fri Jul 18 2014 Remi Collet - 1.0.1-4 - add composer dependencies diff --git a/sources b/sources index 6d616c4..e1d80a8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f354f3bd9f5bb220d74e34fe390c91ee exporter-1.0.1.tar.gz +7a8d3604f3363038aca90e234ad81db5 exporter-1.0.2.tar.gz