From 2404139c8b3c9859e5e6e17dceee6371427dc08b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 13 Oct 2015 08:45:29 +0200 Subject: php-twig-extensions: 1.3.0, backport from Fedora --- php-twig-extensions.spec | 72 ++++++++++++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 30 deletions(-) diff --git a/php-twig-extensions.spec b/php-twig-extensions.spec index 478c4f8..20d1de6 100644 --- a/php-twig-extensions.spec +++ b/php-twig-extensions.spec @@ -1,7 +1,8 @@ +# remirepo spec file for php-twig-extensions, from # -# RPM spec file for php-twig-extensions +# Fedora spec file for php-twig-extensions # -# Copyright (c) 2014 Shawn Iwinski +# Copyright (c) 2014-2015 Shawn Iwinski # # License: MIT # http://opensource.org/licenses/MIT @@ -11,8 +12,8 @@ %global github_owner twigphp %global github_name Twig-extensions -%global github_version 1.2.0 -%global github_commit 8cf4b9fe04077bd54fc73f4fde83347040c3b8cd +%global github_version 1.3.0 +%global github_commit 449e3c8a9ffad7c2479c7864557275a32b037499 %global composer_vendor twig %global composer_project extensions @@ -20,19 +21,18 @@ # "symfony/translation": "~2.3" %global symfony_min_ver 2.3 %global symfony_max_ver 3.0 -# "twig/twig": "~1.12" -%global twig_min_ver 1.12 -%global twig_max_ver 2.0 +# "twig/twig": "~1.20|~2.0" +%global twig_min_ver 1.20 +%global twig_max_ver 3.0 # Build using "--without tests" to disable tests -%global with_tests %{?_without_tests:0}%{!?_without_tests:1} +%global with_tests 0%{!?_without_tests:1} -%{!?phpdir: %global phpdir %{_datadir}/php} -%{!?__phpunit: %global __phpunit %{_bindir}/phpunit} +%{!?phpdir: %global phpdir %{_datadir}/php} Name: php-%{composer_vendor}-%{composer_project} Version: %{github_version} -Release: 2%{?dist} +Release: 1%{?dist} Summary: Twig extensions Group: Development/Libraries @@ -42,14 +42,13 @@ Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{githu BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch +# Tests %if %{with_tests} -BuildRequires: php-phpunit-PHPUnit -# composer.json +BuildRequires: php-composer(phpunit/phpunit) +## composer.json BuildRequires: php-composer(symfony/translation) >= %{symfony_min_ver} -BuildRequires: php-composer(symfony/translation) < %{symfony_max_ver} BuildRequires: php-composer(twig/twig) >= %{twig_min_ver} -BuildRequires: php-composer(twig/twig) < %{twig_max_ver} -# phpcompatinfo (computed from version 1.2.0) +## phpcompatinfo (computed from version 1.3.0) BuildRequires: php-date BuildRequires: php-intl BuildRequires: php-mbstring @@ -63,7 +62,7 @@ Requires: php-composer(twig/twig) < %{twig_max_ver} # composer.json: optional Requires: php-composer(symfony/translation) >= %{symfony_min_ver} Requires: php-composer(symfony/translation) < %{symfony_max_ver} -# phpcompatinfo (computed from version 1.2.0) +# phpcompatinfo (computed from version 1.3.0) Requires: php-intl Requires: php-mbstring Requires: php-pcre @@ -79,6 +78,21 @@ Common additional features for Twig that do not directly belong in core Twig. %prep %setup -qn %{github_name}-%{github_commit} +: Create autoloader +cat <<'AUTOLOAD' | tee lib/Twig/Extensions/autoload.php + vendor/autoload.php <<'AUTOLOAD' - - 1.3.0-1 +- Updated to 1.3.0 (RHBZ #1256169) +- "php-phpunit-PHPUnit" build dependency changed to "php-composer(phpunit/phpunit)" +- "twig/twig" dependency version changed from "~1.12" to "~1.20|~2.0" + * Fri Nov 14 2014 Remi Collet - 1.2.0-2 - backport for remi repo, add EL-5 stuff -- cgit