From 20a82aca806eae1a4c30176ed90357b3c9df6750 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 27 Oct 2016 14:42:17 +0200 Subject: phinx: 0.6.5 --- phinx-autoload.php | 18 ++++-------------- phinx.spec | 18 +++++++++--------- 2 files changed, 13 insertions(+), 23 deletions(-) diff --git a/phinx-autoload.php b/phinx-autoload.php index b2e2835..b6d642e 100644 --- a/phinx-autoload.php +++ b/phinx-autoload.php @@ -1,19 +1,9 @@ register(); -} - -$fedoraClassLoader->addPrefixes(array( - 'Symfony\\Component\\' => $vendorDir, - 'Phinx\\' => dirname(__DIR__) +\Fedora\Autoloader\Autoload::addPsr4('Phinx\\', __DIR__); +\Fedora\Autoloader\Dependencies::required(array( + '/usr/share/php/Symfony/Component/autoload.php', )); - diff --git a/phinx.spec b/phinx.spec index 6b98d86..2dff32e 100644 --- a/phinx.spec +++ b/phinx.spec @@ -6,7 +6,7 @@ # # Please, preserve the changelog entries # -%global gh_commit 0d9293edb425b2d48ee1fd43cd2571e3ade77314 +%global gh_commit 6943cb4bb78bf9d3964967a032220b7c793b97b7 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner robmorgan #global gh_date 20150820 @@ -20,7 +20,7 @@ %endif Name: %{gh_project} -Version: 0.6.4 +Version: 0.6.5 Release: 1%{?gh_date?%{gh_date}git%{gh_short}}%{?dist} Summary: Manage the database migrations for your PHP app @@ -48,7 +48,7 @@ BuildRequires: php-spl BuildRequires: php-composer(phpunit/phpunit) >= 4.8.26 %endif # For autoloader -BuildRequires: php-composer(symfony/class-loader) +BuildRequires: php-composer(fedora/autoloader) # From composer.json, "require": { # "php": ">=5.4", @@ -66,7 +66,7 @@ Requires: php-json Requires: php-pcre Requires: php-spl # For autoloader -Requires: php-composer(symfony/class-loader) +Requires: php-composer(fedora/autoloader) # Composer Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version} @@ -124,11 +124,7 @@ mkdir vendor cat << 'EOF' | tee vendor/autoload.php register(true); -$psr4->addPrefix('Test\\Phinx\\', dirname(__DIR__).'/tests/Phinx'); +\Fedora\Autoloader\Autoload::addPsr4('Test\\Phinx\\', dirname(__DIR__).'/tests/Phinx'); EOF sed -e '/_ENABLED/s/true/false/;/SQLITE_ENABLED/s/false/true/' \ @@ -171,6 +167,10 @@ rm -rf %{buildroot} %changelog +* Thu Oct 27 2016 Remi Collet - 0.6.5-1 +- update to 0.6.5 +- switch from symfony/class-loader to fedora/autoloader + * Tue Sep 27 2016 Remi Collet - 0.6.4-1 - initial package -- cgit