summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-01-03 16:18:51 +0100
committerRemi Collet <remi@remirepo.net>2019-01-03 16:18:51 +0100
commit7ea3248ac17d920769bfcae3df71e8c013bb5197 (patch)
tree272ec86737aafc513a8d7d40014289b1bbb80362
parent28ef1c9cfa570021547a286f3a2224a7142c8551 (diff)
move autoloader in Doctrine/DBAL/Migration for compatibility with version 1.5.0
-rw-r--r--php-doctrine-migrations.spec17
1 files changed, 10 insertions, 7 deletions
diff --git a/php-doctrine-migrations.spec b/php-doctrine-migrations.spec
index d32133e..b3ed72c 100644
--- a/php-doctrine-migrations.spec
+++ b/php-doctrine-migrations.spec
@@ -26,7 +26,7 @@
Name: php-%{pk_vendor}-%{pk_project}
Version: 1.8.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: PHP Doctrine Migrations project
License: MIT
@@ -131,7 +131,7 @@ easily deploying changes to it. It is a very easy to use and a powerful tool.
Documentation: https://www.doctrine-project.org/projects/migrations.html
-Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php
+Autoloader: %{_datadir}/php/%{ns_vendor}/DBAL/%{ns_project}/autoload.php
%prep
@@ -141,10 +141,10 @@ Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php
%build
: Generate a simple autoloader
%{_bindir}/phpab \
- --output lib/%{ns_vendor}/%{ns_project}/autoload.php \
+ --output lib/%{ns_vendor}/DBAL/%{ns_project}/autoload.php \
--template fedora \
lib/%{ns_vendor}
-cat << 'EOF' | tee -a lib/%{ns_vendor}/%{ns_project}/autoload.php
+cat << 'EOF' | tee -a lib/%{ns_vendor}/DBAL/%{ns_project}/autoload.php
// Dependencies
\Fedora\Autoloader\Dependencies::required([
@@ -182,9 +182,9 @@ mkdir vendor
cat << 'EOF' | tee -a vendor/autoload.php
\Fedora\Autoloader\Dependencies::required([
- '%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php',
+ '%{buildroot}%{_datadir}/php/%{ns_vendor}/DBAL/%{ns_project}/autoload.php',
'%{_datadir}/php/%{ns_vendor}/ORM/autoload.php',
- '%{_datadir}/php/org/bovigo/vfs/visitor/vfsStreamVisitor.php',
+ '%{_datadir}/php/org/bovigo/vfs/autoload.php',
]);
EOF
@@ -200,7 +200,6 @@ for cmd in php php71 php72 php73; do
--verbose || ret=1
fi
done
-find . -name migrations
# restore
chmod +w tests/Doctrine/DBAL/Migrations/Tests/Functional/_files
@@ -222,5 +221,9 @@ exit $ret
%changelog
+* Thu Jan 3 2019 Remi Collet <remi@remirepo.net> - 1.8.1-2
+- move autoloader in Doctrine/DBAL/Migration
+ for compatibility with version 1.5.0
+
* Thu Jan 3 2019 Remi Collet <remi@remirepo.net> - 1.8.1-1
- initial package, version 1.8.1