summaryrefslogtreecommitdiffstats
path: root/php-justinrainbow-json-schema.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-10-21 11:09:10 +0200
committerRemi Collet <fedora@famillecollet.com>2016-10-21 11:09:10 +0200
commit9e850c26ed992801f06b0726f53afaba55534387 (patch)
tree78eb8cda2d268d4bdd9894f8f761f534d6347110 /php-justinrainbow-json-schema.spec
parent29527f6a62274a5c9602df1e0e13bf6248c11601 (diff)
php-justinrainbow-json-schema; fedira-loader
Diffstat (limited to 'php-justinrainbow-json-schema.spec')
-rw-r--r--php-justinrainbow-json-schema.spec13
1 files changed, 8 insertions, 5 deletions
diff --git a/php-justinrainbow-json-schema.spec b/php-justinrainbow-json-schema.spec
index b34c121..5127529 100644
--- a/php-justinrainbow-json-schema.spec
+++ b/php-justinrainbow-json-schema.spec
@@ -30,7 +30,7 @@
Name: php-%{gh_owner}-%{gh_project}
Version: 2.0.5
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A library to validate a json schema
Group: Development/Libraries
@@ -65,7 +65,7 @@ BuildRequires: php-spl
# "phpdocumentor/phpdocumentor": "~2"
BuildRequires: php-composer(phpunit/phpunit) >= 4.8.22
# Autoloader
-BuildRequires: php-composer(symfony/class-loader) >= 2.5
+BuildRequires: php-composer(fedora/autoloader)
# For composer schema
BuildRequires: composer
%endif
@@ -81,8 +81,8 @@ Requires: php-json
Requires: php-mbstring
Requires: php-pcre
Requires: php-spl
-# Autoloader (2.5 for PSR-4)
-Requires: php-composer(symfony/class-loader) >= 2.5
+# Autoloader
+Requires: php-composer(fedora/autoloader)
%if %{eolv1}
Obsoletes: php-JsonSchema < 2
%endif
@@ -158,7 +158,7 @@ install -Dpm 0755 bin/validate-json %{buildroot}%{_bindir}/validate-json
cat << 'EOF' | tee vendor/autoload.php
<?php
require '%{buildroot}%{php_home}/JsonSchema2/autoload.php';
-$fedoraPsr4ClassLoader->addPrefix('JsonSchema\\Tests\\', 'tests/');
+\Fedora\Autoloader\Autoload::addPsr4('JsonSchema\\Tests\\', 'tests/');
EOF
: Test the command
@@ -209,6 +209,9 @@ rm -rf %{buildroot}
%changelog
+* Fri Oct 21 2016 Remi Collet <remi@fedoraproject.org> - 2.0.5-3
+- switch from symfony/class-loader to fedora/autoloader
+
* Thu Jul 21 2016 Remi Collet <remi@fedoraproject.org> - 2.0.5-2
- fix failed test, FTBFS detected by Koschei
open https://github.com/justinrainbow/json-schema/pull/292