# spec file for php-bartlett-PHP-Reflect # # Copyright (c) 2011-2014 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/3.0/ # # Please, preserve the changelog entries # %{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} %global channel bartlett.laurent-laville.org %global pear_name PHP_Reflect Name: php-bartlett-PHP-Reflect Version: 1.9.0 Release: 1%{?dist} Summary: Adds the ability to reverse-engineer PHP Group: Development/Libraries License: BSD URL: http://bartlett.laurent-laville.org/ Source0: http://%{channel}/get/%{pear_name}-%{version}%{?prever}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: php(language) >= 5.3.0 BuildRequires: php-pear(PEAR) >= 1.9.0 BuildRequires: php-channel(%{channel}) # to run test suite BuildRequires: php-pear(pear.phpunit.de/PHPUnit) >= 3.6.0 Requires(post): %{__pear} Requires(postun): %{__pear} # From package.xml Requires: php(language) >= 5.3.0 Requires: php-pear(PEAR) >= 1.9.0 Requires: php-channel(%{channel}) Requires: php-pcre Requires: php-spl Requires: php-tokenizer Provides: php-pear(%{channel}/%{pear_name}) = %{version}%{?prever} %description PHP_Reflect adds the ability to reverse-engineer classes, interfaces, functions, constants and more, by connecting php callbacks to other tokens. HTML Documentation: %{pear_docdir}/%{pear_name}/html/index.html %prep %setup -q -c # Package is V2 cd %{pear_name}-%{version}%{?prever} mv -f ../package.xml %{name}.xml %build cd %{pear_name}-%{version}%{?prever} %install rm -rf %{buildroot} cd %{pear_name}-%{version}%{?prever} %{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml # Clean up unnecessary files rm -rf %{buildroot}%{pear_metadir}/.??* # Install XML package description mkdir -p %{buildroot}%{pear_xmldir} install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir} %check cd %{pear_name}-%{version}%{?prever} # Version 1.9.0 : OK (Tests: 51, Assertions: 113, Skipped: 1) %{_bindir}/phpunit \ -d date.timezone=UTC \ --bootstrap %{buildroot}%{pear_phpdir}/Bartlett/PHP/Reflect/Autoload.php \ tests %clean rm -rf %{buildroot} %post %{__pear} install --nodeps --soft --force --register-only \ %{pear_xmldir}/%{name}.xml >/dev/null || : %postun if [ $1 -eq 0 ] ; then %{__pear} uninstall --nodeps --ignore-errors --register-only \ %{channel}/%{pear_name} >/dev/null || : fi %files %defattr(-,root,root,-) %doc %{pear_docdir}/%{pear_name} %{pear_xmldir}/%{name}.xml %{pear_phpdir}/Bartlett %{pear_testdir}/PHP_Reflect %changelog * Sat Oct 12 2013 Remi Collet - 1.9.0-1 - Update to 1.9.0 - raise dependency on PHP >= 5.3 * Mon Sep 23 2013 Remi Collet - 1.8.1-1 - Update to 1.8.1 * Fri Sep 20 2013 Remi Collet - 1.8.0-1 - Update to 1.8.0 * Wed Jun 26 2013 Remi Collet - 1.7.0-1 - Update to 1.7.0 * Sat Apr 06 2013 Remi Collet - 1.6.2-1 - Update to 1.6.2 * Tue Feb 26 2013 Remi Collet - 1.6.1-1 - Update to 1.6.1 * Fri Feb 22 2013 Remi Collet - 1.6.0-1 - Version 1.6.0 (stable) - API 1.6.0 (stable) - html documentation is now provided by upstream * Mon Nov 26 2012 Remi Collet - 1.5.0-2 - generate documentation using asciidoc, without phing * Mon Nov 26 2012 Remi Collet - 1.5.0-1 - Version 1.5.0 (stable) - API 1.5.0 (stable) - drop documentation build * Tue Oct 30 2012 Remi Collet - 1.4.3-1 - Version 1.4.3 (stable) - API 1.4.0 (stable) * Tue Aug 14 2012 Remi Collet - 1.4.2-2 - rebuildt for new pear_testdir * Wed Aug 01 2012 Remi Collet - 1.4.2-1 - Version 1.4.2 (stable) - API 1.4.0 (stable) * Fri Jul 20 2012 Fedora Release Engineering - 1.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Feb 17 2012 Remi Collet - 1.3.0-2 - bump release * Fri Feb 17 2012 Remi Collet - 1.3.0-1 - Version 1.3.0 (stable) - API 1.3.0 (stable) * Sun Feb 05 2012 Remi Collet - 1.2.0-1 - Version 1.2.0 (stable) - API 1.2.0 (stable) * Sat Jan 14 2012 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Nov 11 2011 Remi Collet - 1.1.0-1 - Version 1.1.0 (stable) - API 1.1.0 (stable) * Mon Sep 19 2011 Remi Collet - 1.0.2-2 - remove unused .js and improve installation of generated doc - use buildroot macro * Mon Jul 18 2011 Remi Collet - 1.0.2-1 - Version 1.0.2 (stable) - API 1.0.0 (stable) * Thu Jun 16 2011 Remi Collet - 1.0.1-1 - Version 1.0.1 (stable) - API 1.0.0 (stable) * Thu Jun 02 2011 Remi Collet - 1.0.0-1 - Version 1.0.0 (stable) - API 1.0.0 (stable) - add HTML documentation * Tue Apr 26 2011 Remi Collet - 1.0.0-0.1.RC1 - Version 1.0.0RC1 (beta) - API 1.0.0 (beta) * Sun Apr 17 2011 Remi Collet - 0.7.0-1 - Version 0.7.0 (beta) - API 0.7.0 (beta) * Mon Apr 11 2011 Remi Collet - 0.6.0-1 - Version 0.6.0 (beta) - API 0.6.0 (beta) * Wed Apr 06 2011 Remi Collet - 0.5.1-1 - Version 0.5.1 (beta) - API 0.5.0 (beta) * Fri Mar 25 2011 Remi Collet - 0.5.0-1 - Version 0.5.0 (beta) - API 0.5.0 (beta) * Fri Feb 25 2011 Remi Collet - 0.4.0-1 - Version 0.4.0 (beta) - Initial RPM package