summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--atoum.spec158
1 files changed, 158 insertions, 0 deletions
diff --git a/atoum.spec b/atoum.spec
new file mode 100644
index 0000000..9b0dff7
--- /dev/null
+++ b/atoum.spec
@@ -0,0 +1,158 @@
+Name: atoum
+Version: 2.0.1
+Release: 1%{?dist}
+Summary: PHP Unit Testing framework
+
+Group: Development/Libraries
+License: BSD
+URL: http://atoum.org
+Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: php(language) >= 5.3.3
+BuildRequires: php-cli
+BuildRequires: php-dom
+BuildRequires: php-date
+BuildRequires: php-hash
+BuildRequires: php-pcre
+BuildRequires: php-spl
+BuildRequires: php-tokenizer
+BuildRequires: php-json
+BuildRequires: php-mbstring
+BuildRequires: php-pecl(Xdebug) >= 2.2.1
+BuildRequires: php-xml
+
+Requires: php(language) >= 5.3.3
+Requires: php-dom
+Requires: php-date
+Requires: php-hash
+Requires: php-pcre
+Requires: php-spl
+Requires: php-tokenizer
+Requires: php-json
+Requires: php-mbstring
+Requires: php-pecl(Xdebug) >= 2.2.1
+Requires: php-xml
+
+Provides: php-composer(atoum/atoum) = %{version}
+
+
+%description
+A simple, modern and intuitive unit testing framework for PHP!
+
+It has been designed from the start with the following ideas in mind :
+* Can be implemented rapidly ;
+* Simplify test development ;
+* Allow for writing reliable, readable, and clear unit tests ;
+
+To accomplish that, it massively uses capabilities provided by PHP 5.3,
+to give the developer a whole new way of writing unit tests.
+Also, thanks to its fluid interface, it allows for writing unit tests in
+a fashion close to natural language.
+It also makes it easier to implement stubbing within tests, thanks to
+intelligent uses of anonymous functions and closures.
+atoum natively, and by default, performs the execution of each unit test
+within a separate PHP process, to warrant isolation.
+Of course, it can be used seamlessly for continuous integration, and given its
+design, it can be made to cope with specific needs extremely easily.
+atoum also accomplishes all of this without affecting performance, since it
+has been developed to boast a reduced memory footprint while allowing for
+hastened test execution.
+It can also generate unit test execution reports in the Xunit format,
+which makes it compatible with continuous integration tools such as Jenkins.
+atoum also generates code coverage reports, in order to make it possible
+to supervise unit tests.
+
+
+%prep
+%setup -q -n %{name}-%{version}
+rm -f resources/configurations/.gitignore
+rm -f scripts/git/.tag tests/units/classes/scripts/git/.tag
+sed -i bin/%{name} \
+ -e "s|/usr/bin/env php|%{_bindir}/php|" \
+ -e "s|__DIR__ . '/../|'%{_datadir}/%{name}/|"
+
+
+%build
+# Empty build section
+
+
+%install
+# create needed directories
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
+mkdir -p $RPM_BUILD_ROOT%{_bindir}
+install -m 0644 -p constants.php $RPM_BUILD_ROOT%{_datadir}/%{name}
+install -m 0755 bin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
+cp -pr classes $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -pr resources $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -pr scripts $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -pr tests $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+
+%check
+%if 0%{?fedora} >= 22
+# Temporary ignore this test, BC break in libxml, see
+# https://bugzilla.redhat.com/1199396 incorrect identification of duplicate ID
+# https://github.com/atoum/atoum/issues/449 Failed test with libxml version 2.9.2
+rm tests/units/classes/reports/asynchronous/xunit.php
+%endif
+
+cd tests/units
+echo "date.timezone=UTC" >php.ini
+export PHPRC=$(pwd)/php.ini
+php runner.php --directories .
+
+
+%files
+%{!?_licensedir:%global license %%doc}
+%license COPYING
+%doc ABOUT composer.json CREDITS.md FAQ.md README.md
+%{_bindir}/%{name}
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*
+
+
+%changelog
+* Sun Mar 22 2015 Johan Cwiklinski <johan AT x-tnd DOT be> - 2.0.1-1
+- Last upstream release
+
+* Wed Jun 11 2014 Johan Cwiklinski <johan AT x-tnd DOT be> - 0-0.11.gite1f64c2
+- Add provides for registered Packagist package
+
+* Mon Jun 09 2014 Johan Cwiklinski <johan AT x-tnd DOT be> - 0-0.10.gite1f64c2
+- Last upstream commit
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.9.git35a880e
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Sat May 10 2014 Johan Cwiklinski <johan AT x-tnd DOT be> - 0.0.8.git35a880e
+- Last upstream commit
+
+* Sun Dec 08 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 0.0.7.gita68f365
+- Last upstream commit
+
+* Wed Aug 07 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 0.0.6.git587a130
+- Last upstream commit
+
+* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.5.gita0452f6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
+* Sun Jun 23 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 0.0.4.gita0452f6
+- Last upstream commit
+
+* Fri May 10 2013 Johan Cwiklinski <johan AT x-tnd DOt be> - 0.0.3.git3118d58
+- Last upstream commit
+
+* Sun Feb 10 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 0.0.2.gitdbfb82f
+- Last upstream commit
+- Rename package from php-atoum to atoum
+- add missing requires
+- change path to %%{_datadir}/%%{name}
+- add tests and relevant BR
+
+* Sun Jan 13 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 0-0.2.git724d3ee
+- Use %%{real_name} instead of %%{name} in path
+
+* Sun Jan 13 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 0-0.1.git724d3ee
+- Initial Release