diff options
-rw-r--r-- | composer.json | 4 | ||||
-rw-r--r-- | phinx.spec | 13 |
2 files changed, 12 insertions, 5 deletions
diff --git a/composer.json b/composer.json index c61d7a7..88fde42 100644 --- a/composer.json +++ b/composer.json @@ -33,6 +33,7 @@ }, "require-dev": { "ext-json": "*", + "ext-pdo": "*", "phpunit/phpunit": "^8.5", "sebastian/comparator": ">=1.2.3", "cakephp/cakephp-codesniffer": "^3.0", @@ -50,6 +51,7 @@ }, "suggest": { "ext-json": "Install if using JSON configuration format", + "ext-pdo": "PDO extension is needed", "symfony/yaml": "Install if using YAML configuration format" }, "scripts": { @@ -57,7 +59,7 @@ "@test", "@cs-check" ], - "cs-check": "phpcs --colors -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP --ignore=/tests/Phinx/Config/_rootDirectories/,/tests/log/ src/ tests/ app/", + "cs-check": "phpcs --colors -p -n --standard=vendor/cakephp/cakephp-codesniffer/CakePHP --ignore=/tests/Phinx/Config/_rootDirectories/,/tests/log/ src/ tests/ app/", "cs-fix": "phpcbf --colors -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP --ignore=/tests/Phinx/Config/_rootDirectories/,/tests/log/ src/ tests/ app/", "stan": "phpstan analyse src/", "stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan:^0.12 && mv composer.backup composer.json", @@ -10,7 +10,7 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit 415000ce988af20c2e4a8110f32171975f31743e +%global gh_commit 94d0b78f68bfb20aac4c59b0b3ff49956803fc70 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner robmorgan #global gh_date 20150820 @@ -19,7 +19,7 @@ %global with_tests 0%{!?_without_tests:1} Name: %{gh_project} -Version: 0.12.0 +Version: 0.12.1 Release: 1%{?gh_date?%{gh_date}git%{gh_short}}%{?dist} Summary: Manage the database migrations for your PHP app @@ -55,6 +55,7 @@ BuildRequires: php-pcre BuildRequires: php-spl # For tests, from composer.json "require-dev": { # "ext-json": "*", +# "ext-pdo": "*", # "phpunit/phpunit": ^8.5", # "sebastian/comparator": ">=1.2.3", # "cakephp/cakephp-codesniffer": "^3.0", @@ -73,6 +74,7 @@ BuildRequires: php-composer(fedora/autoloader) # "symfony/config": "^3.4|^4.0|^5.0" # From composer.json, "suggest": { # "ext-json": "Install if using JSON configuration format", +# "ext-pdo": "PDO extension is needed", # "symfony/yaml": "Install if using YAML configuration format" Requires: php(language) >= 7.2 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 @@ -120,7 +122,7 @@ sed -e 's/@VERSION@/%{version}/' \ cp %{SOURCE1} src/%{psr0}/autoload.php -sed -e 's:../data/Phinx:data:' -i src/Phinx/Console/Command/Init.php +sed -e 's:../../data:data:' -i src/Phinx/Console/Command/Init.php : Create the launcher cat << 'EOF' | tee phinx @@ -142,7 +144,7 @@ mkdir -p %{buildroot}%{_datadir}/php cp -pr src/%{psr0} %{buildroot}%{_datadir}/php/%{psr0} : Default config files -cp -pr src/data/%{psr0} %{buildroot}%{_datadir}/php/%{psr0}/data +cp -pr data %{buildroot}%{_datadir}/php/%{psr0}/data : The command install -Dpm 755 phinx %{buildroot}%{_bindir}/phinx @@ -193,6 +195,9 @@ exit $ret %changelog +* Mon Apr 13 2020 Remi Collet <remi@remirepo.net> - 0.12.1-1 +- update to 0.12.1 + * Fri Apr 10 2020 Remi Collet <remi@remirepo.net> - 0.12.0-1 - update to 0.12.0 - raise dependency on PHP 7.2 |