summaryrefslogtreecommitdiffstats
path: root/php-sabre-http5.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-sabre-http5.spec')
-rw-r--r--php-sabre-http5.spec13
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