From 8e5031b4583e1f9f65d6f1879f68ac6ac4273787 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 5 Jul 2019 16:01:49 +0200 Subject: fix autoloader --- php-sabre-http5.spec | 13 +++++++++---- 1 file 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 - 5.0.0-2 +- fix autoloader + * Fri Jul 5 2019 Remi Collet - 5.0.0-1 - update to 5.0.0 - rename to php-sabre-http5 -- cgit