summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-10-20 08:56:10 +0200
committerRemi Collet <remi@remirepo.net>2020-10-20 08:56:10 +0200
commit75a5e33e8f141bef7121e4750612294f320bbea9 (patch)
treef4bf8b5c5e588b3fbff6dc2a53bd151a0327a4ed
parentc5e5c905aab5be9361425800f0c691dd84f1fd6d (diff)
switch to classmap autoloader
-rw-r--r--php-cs-fixer-phpunit-constraint-isidenticalstring.spec18
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