From 44df0105e2f84693156675542395256c392c46e7 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 15 Jun 2015 16:39:41 +0200 Subject: php-twig: sync with Fedora --- php-twig.spec | 77 ++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 47 insertions(+), 30 deletions(-) (limited to 'php-twig.spec') diff --git a/php-twig.spec b/php-twig.spec index 41c6583..09c6bcb 100644 --- a/php-twig.spec +++ b/php-twig.spec @@ -12,7 +12,7 @@ # Please preserve changelog entries # -%global github_owner fabpot +%global github_owner twigphp %global github_name Twig %global github_version 1.18.2 %global github_commit e8e6575abf6102af53ec283f7f14b89e304fa602 @@ -40,18 +40,18 @@ %global with_tests 0 %else # Build using "--without tests" to disable tests -%global with_tests %{?_without_tests:0}%{!?_without_tests:1} +%global with_tests 0%{!?_without_tests:1} %endif -%{?scl: %scl_package php-twig} -%{!?scl: %global pkg_name %{name}} -%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} -%{!?__php: %global __php %{_bindir}/php} -%{!?__phpunit: %global __phpunit %{_bindir}/phpunit} +%{?scl: %scl_package php-twig} +%{!?scl: %global pkg_name %{name}} +%{!?phpdir: %global phpdir %{_datadir}/php} +%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} +%{!?__php: %global __php %{_bindir}/php} Name: %{?scl_prefix}php-%{composer_project} Version: %{github_version} -Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} Summary: The flexible, fast, and secure template engine for PHP Group: Development/Libraries @@ -64,7 +64,7 @@ BuildRequires: %{?scl_prefix}php-devel >= %{php_min_ver} %if %{with_tests} # For tests BuildRequires: %{_bindir}/phpunit -# For tests: phpcompatinfo (computed from version 1.17.0) +## phpcompatinfo (computed from version 1.18.2) BuildRequires: %{?scl_prefix}php-ctype BuildRequires: %{?scl_prefix}php-date BuildRequires: %{?scl_prefix}php-dom @@ -80,7 +80,7 @@ BuildRequires: %{?scl_prefix}php-spl # Lib ## composer.json Requires: %{?scl_prefix}php(language) >= %{php_min_ver} -## phpcompatinfo (computed from version 1.17.0) +## phpcompatinfo (computed from version 1.18.2) Requires: %{?scl_prefix}php-ctype Requires: %{?scl_prefix}php-date Requires: %{?scl_prefix}php-dom @@ -163,31 +163,41 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -qn %{github_name}-%{github_commit} -# Ext -## NTS +: Ext -- NTS mv ext/%{ext_name} ext/NTS -## ZTS %if %{with_zts} +: Ext -- ZTS cp -pr ext/NTS ext/ZTS %endif -## Create configuration file +: Ext -- Create configuration file cat > %{ini_name} << 'INI' ; Enable %{ext_name} extension module extension=%{ext_name}.so INI +: Create lib autoloader +(cat <<'AUTOLOAD' + - 1.18.2-2 +- rebuild for remirepo with rawhide changes (autoloader) + +* Thu Jun 11 2015 Shawn Iwinski - 1.18.2-1 +- Updated to 1.18.2 (BZ #1183601) +- Added autoloader + * Sun Jun 7 2015 Remi Collet - 1.18.2-1 - Update to 1.18.2 -- cgit