From 8faf1563537a66c19ac05840e7baa1c65601a4fc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 9 May 2017 10:17:00 +0200 Subject: switch to fedora-autoloader --- php-kdyby-events.spec | 55 +++++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 26 deletions(-) (limited to 'php-kdyby-events.spec') diff --git a/php-kdyby-events.spec b/php-kdyby-events.spec index 76fd06e..c9836a3 100644 --- a/php-kdyby-events.spec +++ b/php-kdyby-events.spec @@ -18,7 +18,7 @@ Name: php-%{gh_owner}-%{gh_project} Version: 3.0.2 -%global specrel 1 +%global specrel 2 Release: %{?gh_date:0.%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: Events for Nette Framework @@ -35,15 +35,17 @@ Source2: %{name}-autoload.php # fix for nette/tester > 2 Patch0: %{name}-tester2.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch %if %{with_tests} BuildRequires: php-pcre BuildRequires: php-spl +BuildRequires: php-composer(nette/di) < 3 BuildRequires: php-composer(nette/di) >= 2.3 +BuildRequires: php-composer(nette/utils) < 3 BuildRequires: php-composer(nette/utils) >= 2.3 +BuildRequires: php-composer(doctrine/common) < 3 BuildRequires: php-composer(doctrine/common) >= 2.5.0 -BuildRequires: php-composer(symfony/class-loader) +BuildRequires: php-composer(fedora/autoloader) # From composer.json, "require-dev": { # "nette/application": "~2.3@dev", # "nette/bootstrap": "~2.3@dev", @@ -69,10 +71,14 @@ BuildRequires: php-composer(symfony/class-loader) # "symfony/event-dispatcher": "~2.3|~3.0", # "nette/tester": "~1.4@", # The framework is enough as it requires everything +BuildRequires: php-composer(nette/nette) < 3 BuildRequires: php-composer(nette/nette) >= 2.3 BuildRequires: php-composer(nette/tester) >= 1.4 +BuildRequires: php-composer(symfony/event-dispatcher) < 4 BuildRequires: php-composer(symfony/event-dispatcher) >= 2.3 %endif +# Temporary workaround for doctrine +BuildRequires: php-symfony-class-loader # from composer.json, "require": { # "nette/di": "~2.3@dev", @@ -84,8 +90,9 @@ Requires: php-composer(nette/utils) < 3 # To avoid having to provide the compatibility layer # version 2.5.0 for autoloader Requires: php-composer(doctrine/common) >= 2.5.0 +Requires: php-composer(doctrine/common) < 3 # For autoloader -Requires: php-composer(symfony/class-loader) +Requires: php-composer(fedora/autoloader) # from phpcompatinfo report for version 2.4.0 Requires: php-pcre Requires: php-spl @@ -112,7 +119,6 @@ cp %{SOURCE2} src/%{ns_vendor}/%{ns_project}/autoload.php %install -rm -rf %{buildroot} mkdir -p %{buildroot}%{php_home} cp -pr src/%{ns_vendor} %{buildroot}%{php_home}/%{ns_vendor} @@ -125,41 +131,35 @@ export LANG=fr_FR.utf8 mkdir vendor cat << 'EOF' | tee vendor/autoload.php - 3.0.2-2 +- switch to fedora/autoloader + * Thu Aug 4 2016 Remi Collet - 3.0.2-1 - update to 3.0.2 (for nette 2.4) -- cgit