diff options
-rw-r--r-- | php-cs-fixer-phpunit-constraint-isidenticalstring.spec | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/php-cs-fixer-phpunit-constraint-isidenticalstring.spec b/php-cs-fixer-phpunit-constraint-isidenticalstring.spec index 86cce9c..588a040 100644 --- a/php-cs-fixer-phpunit-constraint-isidenticalstring.spec +++ b/php-cs-fixer-phpunit-constraint-isidenticalstring.spec @@ -20,7 +20,7 @@ Name: %{pk_vendor}-%{pk_project} Version: 1.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Constraint for testing strings considering not-same line endings License: MIT @@ -86,11 +86,12 @@ Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}/autoload.php %prep %setup -q -n %{gh_project}-%{gh_commit} -cat << 'EOF' | tee src/autoload.php -<?php -/* autoloader for %{name} */ -\Fedora\Autoloader\Autoload::addPsr4('%{ns_vendor}\\%{ns_project}\\', __DIR__); +%build +: Generate a simple classmap autoloader +phpab --template fedora --output src/autoload.php src +cat << 'EOF' | tee -a src/autoload.php + \Fedora\Autoloader\Dependencies::required([ '%{php_home}/PHPUnitGoodPractices/Polyfill/autoload.php', __DIR__ . '/Constraint/IsIdenticalString.php', @@ -98,10 +99,6 @@ cat << 'EOF' | tee src/autoload.php EOF -%build -# Empty build section, most likely nothing required. - - %install : Library mkdir -p %{buildroot}%{php_home}/%{ns_vendor} @@ -171,6 +168,9 @@ exit $ret %changelog +* Tue Oct 20 2020 Remi Collet <remi@remirepo.net> - 1.2.0-2 +- switch to classmap autoloader + * Tue Oct 20 2020 Remi Collet <remi@remirepo.net> - 1.2.0-1 - update to 1.2.0 - raise dependency on phpunitgoodpractices/polyfill 1.4 |