summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-01-14 19:23:20 +0100
committerRemi Collet <fedora@famillecollet.com>2016-01-14 19:23:20 +0100
commit896bb33f0315cc3814b50f1b865dd4dbe8d33fe1 (patch)
tree9b08a1bc9b830a34358047aaf26a39affbbb7983
parentfd045ec8543429ed51060bf9ebc8d5cdcce2f7e2 (diff)
php-symfony: fix autoloader
-rw-r--r--php-symfony.spec9
1 files changed, 6 insertions, 3 deletions
diff --git a/php-symfony.spec b/php-symfony.spec
index e27d5b7..1a26d38 100644
--- a/php-symfony.spec
+++ b/php-symfony.spec
@@ -94,7 +94,7 @@
Name: php-%{composer_project}
Version: %{github_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: PHP framework for web projects
Group: Development/Libraries
@@ -1666,8 +1666,8 @@ if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Compo
}
$fedoraClassLoader->addPrefix('Symfony\\Component\\', dirname(dirname(__DIR__)));
-// Dependency
-require_once '%{_datadir}/php/random_compat/autoload.php';
+// Optional dependency
+@include_once '%{phpdir}/random_compat/autoload.php';
return $fedoraClassLoader;
AUTOLOAD
@@ -2523,6 +2523,9 @@ exit $RET
# ##############################################################################
%changelog
+* Thu Jan 14 2016 Remi Collet <remi@fedoraproject.org> - 2.7.9-2
+- fix autoloader for paragonie/random_compat, thanks Koschei
+
* Thu Jan 14 2016 Remi Collet <remi@fedoraproject.org> - 2.7.9-1
- Update to 2.7.9
- security: add dependency on paragonie/random_compat