# remirepo/fedora spec file for php-theseer-autoload # # Copyright (c) 2014-2019 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # # For compatibility with SCL %undefine __brp_mangle_shebangs %global gh_commit 3353caee350a60a9ad19c452e9fd026881d1641f %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner theseer %global gh_project Autoload %global php_home %{_datadir}/php/TheSeer %global pear_name Autoload %global pear_channel pear.netpirates.net Name: php-theseer-autoload Version: 1.25.2 Release: 1%{?dist} Summary: A tool and library to generate autoload code License: BSD URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{?gh_short}.tar.gz # Autoloader path Patch0: %{gh_project}-rpm.patch BuildArch: noarch BuildRequires: php(language) >= 5.3.1 # From composer.json, "require-dev": { # "phpunit/phpunit": "^4.8.35|^5.7|^6.0", # "squizlabs/php_codesniffer": "~1.5" %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 BuildRequires: (php-composer(theseer/directoryscanner) >= 1.3 with php-composer(theseer/directoryscanner) < 2) BuildRequires: (php-composer(zetacomponents/console-tools) >= 1.7 with php-composer(zetacomponents/console-tools) < 2) %global phpunit %{_bindir}/phpunit6 %else BuildRequires: php-composer(theseer/directoryscanner) < 2 BuildRequires: php-composer(theseer/directoryscanner) >= 1.3 BuildRequires: php-composer(zetacomponents/console-tools) < 2 BuildRequires: php-composer(zetacomponents/console-tools) >= 1.7 %global phpunit %{_bindir}/phpunit %endif BuildRequires: %{phpunit} # From composer.json, "require": { # "theseer/directoryscanner": "~1.3", # "zetacomponents/console-tools": "~1.7" Requires: php(language) >= 5.3.1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 Requires: (php-composer(theseer/directoryscanner) >= 1.3 with php-composer(theseer/directoryscanner) < 2) Requires: (php-composer(zetacomponents/console-tools) >= 1.7 with php-composer(zetacomponents/console-tools) < 2) %else Requires: php-composer(theseer/directoryscanner) < 2 Requires: php-composer(theseer/directoryscanner) >= 1.3 Requires: php-composer(zetacomponents/console-tools) < 2 Requires: php-composer(zetacomponents/console-tools) >= 1.7 %endif # From phpcompatinfo report for version 1.25.0 Requires: php-cli Requires: php-date Requires: php-json Requires: php-openssl Requires: php-phar Requires: php-spl Requires: php-tokenizer # Optional xdebug Provides: php-pear(%{pear_channel}/%{pear_name}) = %{version} Provides: php-composer(theseer/autoload) = %{version} %description The PHP AutoloadBuilder CLI tool phpab is a command line application to automate the process of generating an autoload require file with the option of creating static require lists as well as phar archives. %prep %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p0 -b .rpm : drop composer dependencies sed -e '\:../vendor/:d' -i src/autoload.php : add package dependencies cat </dev/null || : fi %files %{!?_licensedir:%global license %%doc} %license LICENSE %doc README.md composer.json %{php_home}/%{gh_project} %{_bindir}/phpab %changelog * Mon Feb 4 2019 Remi Collet - 1.25.2-1 - update to 1.25.2 * Sat Oct 20 2018 Remi Collet - 1.25.1-1 - update to 1.25.1 - drop patch merged upstream * Mon Oct 15 2018 Remi Collet - 1.25.0-3 - add upstream patch for PHP 7.3 * Mon Jul 2 2018 Remi Collet - 1.25.0-1 - update to 1.25.0 - use range dependencies * Mon Jun 26 2017 Remi Collet - 1.24.1-1 - Update to 1.24.1 - drop patch merged upstream * Mon Jun 26 2017 Remi Collet - 1.24.0-1 - Update to 1.24.0 - use phpunit6 on F26+ - add patch for PHP 5.3 in EL-6 from https://github.com/theseer/Autoload/pull/78 * Wed Dec 21 2016 Remi Collet - 1.23.0-1 - update to 1.23.0 * Sat Aug 13 2016 Remi Collet - 1.22.0-1 - update to 1.22.0 * Wed Nov 11 2015 Remi Collet - 1.21.0-1 - update to 1.21.0 * Sun Oct 4 2015 Remi Collet - 1.20.3-1 - update to 1.20.3 * Sun Oct 4 2015 Remi Collet - 1.20.2-1 - update to 1.20.2 * Sat Oct 3 2015 Remi Collet - 1.20.1-1 - update to 1.20.1 * Sat Jul 25 2015 Remi Collet - 1.20.0-1 - update to 1.20.0 * Tue Jul 14 2015 Remi Collet - 1.19.2-1 - update to 1.19.2 * Mon Jul 13 2015 Remi Collet - 1.19.1-1 - update to 1.19.1 * Thu Jul 2 2015 Remi Collet - 1.19.0-1 - update to 1.19.0 * Wed Jul 1 2015 Remi Collet - 1.18.0-1 - update to 1.18.0 - load dependencies in the autoloader (not in the command) * Thu Jun 4 2015 Remi Collet - 1.17.0-3 - missing dependency on php-cli * Wed Jun 3 2015 Remi Collet - 1.17.0-2 - swicth from eZ to Zeta Components - ensure compatibility with SCL * Fri May 15 2015 Remi Collet - 1.17.0-1 - Update to 1.17.0 * Tue Nov 25 2014 Remi Collet - 1.16.2-1 - Update to 1.16.2 * Tue Nov 25 2014 Remi Collet - 1.16.1-1 - Update to 1.16.1 - switch from pear to github sources * Wed Nov 12 2014 Remi Collet - 1.16.0-2 - define date.timezone in phpab command to avoid warning * Tue Sep 02 2014 Remi Collet - 1.16.0-1 - Update to 1.16.0 * Thu Aug 14 2014 Remi Collet - 1.15.1-1 - Update to 1.15.1 * Tue Aug 12 2014 Remi Collet - 1.15.0-1 - Update to 1.15.0 * Thu Apr 24 2014 Remi Collet - 1.14.2-1 - Update to 1.14.2 * Sun Apr 6 2014 Remi Collet - 1.14.1-1 - initial package, version 1.14.1