diff options
author | Remi Collet <remi@remirepo.net> | 2019-07-05 16:01:49 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2019-07-05 16:01:49 +0200 |
commit | 8e5031b4583e1f9f65d6f1879f68ac6ac4273787 (patch) | |
tree | 7743f97631e296b0d9770d4436162c4b54747297 | |
parent | 89e70d1640d81b02927c1623fe407f8697215933 (diff) |
fix autoloader
-rw-r--r-- | php-sabre-http5.spec | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/php-sabre-http5.spec b/php-sabre-http5.spec index 8546386..e785549 100644 --- a/php-sabre-http5.spec +++ b/php-sabre-http5.spec @@ -23,7 +23,7 @@ Name: php-%{pk_vendor}-%{pk_project}%{major} Summary: Library for dealing with http requests and responses Version: 5.0.0 -Release: 1%{?dist} +Release: 2%{?dist} URL: https://github.com/%{gh_owner}/%{gh_project} License: BSD @@ -127,12 +127,14 @@ cat << 'EOF' | tee -a lib/autoload.php // Dependencies \Fedora\Autoloader\Dependencies::required([ - '/usr/share/php/Sabre/Event5/autoload.php', - '/usr/share/php/Sabre/Uri2/autoload.php', + '%{_datadir}/php/Sabre/Event5/autoload.php', + '%{_datadir}/php/Sabre/Uri2/autoload.php', ]); // Functions -require_once __DIR__ . '/functions.php'; +if (!function_exists('Sabre\\HTTP\\parseDate')) { + require_once __DIR__ . '/functions.php'; +} EOF @@ -175,6 +177,9 @@ exit $ret %changelog +* Fri Jul 5 2019 Remi Collet <remi@remirepo.net> - 5.0.0-2 +- fix autoloader + * Fri Jul 5 2019 Remi Collet <remi@remirepo.net> - 5.0.0-1 - update to 5.0.0 - rename to php-sabre-http5 |