From 2f8f40db92a48c9062dd7c33152cbf005dc03ccb Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 5 Jul 2019 15:43:45 +0200 Subject: fix autoloader --- php-sabre-uri2.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/php-sabre-uri2.spec b/php-sabre-uri2.spec index a8daaa9..879bb00 100644 --- a/php-sabre-uri2.spec +++ b/php-sabre-uri2.spec @@ -23,7 +23,7 @@ Name: php-%{pk_vendor}-%{pk_project}%{major} Summary: Functions for making sense out of URIs Version: 2.1.2 -Release: 1%{?dist} +Release: 2%{?dist} URL: https://github.com/%{gh_owner}/%{gh_project} License: BSD @@ -79,7 +79,9 @@ phpab -t fedora -o lib/autoload.php lib cat << 'EOF' | tee -a lib/autoload.php // Functions -require_once __DIR__ . '/functions.php'; +if (!function_exists('Sabre\\Uri\\resolve')) { + require_once __DIR__ . '/functions.php'; +} EOF %build @@ -122,6 +124,9 @@ exit $ret %changelog +* Fri Jul 5 2019 Remi Collet - 2.1.2-2 +- fix autoloader + * Mon Jul 1 2019 Remi Collet - 2.1.2-1 - update to 2.1.2 - rename to php-sabre-uri2 -- cgit