From 69c1e6638c37d67c0a15a2f774cca678ee48679f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 26 Feb 2018 05:58:46 +0100 Subject: v4.4.4 from Fedora --- php-gettext-gettext.spec | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'php-gettext-gettext.spec') diff --git a/php-gettext-gettext.spec b/php-gettext-gettext.spec index 284a2b5..d030284 100644 --- a/php-gettext-gettext.spec +++ b/php-gettext-gettext.spec @@ -8,22 +8,22 @@ # Please preserve changelog entries # -%global gh_commit 4f57f004635cc6311a20815ebfdc0757cb337113 -%global gh_short %(c=%{gh_commit}; echo ${c:0:8}) %global gh_owner oscarotero %global gh_project Gettext Name: php-gettext-gettext -Version: 4.4.3 +Version: 4.4.4 Release: 1%{?dist} BuildArch: noarch License: MIT Summary: PHP gettext manager URL: https://github.com/%{gh_owner}/%{gh_project} +Source0: %{url}/archive/v%{version}/%{gh_project}-%{version}.tar.gz # Upstream strips the tests from the tarball, so we have to generate it manually. -Source0: %{gh_project}-%{version}.tar.gz +# dltests.sh is used to do this, and is included in this repository. +Source1: tests-v%{version}.tar.bz2 # Skip some tests on bigendian as reference file are littleendian # https://github.com/oscarotero/Gettext/pull/159 @@ -58,13 +58,11 @@ Autoloader: %{_datadir}/php/Gettext/autoload.php %prep -%autosetup -p1 -n Gettext-%{version} +%autosetup -p1 -a1 -n Gettext-%{version} # The documentation has the wrong newline codes dos2unix *.md -sed -i "s:include_once.*:\ninclude_once '%{buildroot}/%{_datadir}/php/Gettext/autoload.php';:" tests/bootstrap.php - %build : Create autoloader @@ -93,11 +91,13 @@ cp -ar src/* %{buildroot}/%{_datadir}/php/Gettext/ %check +sed -i "s:include_once.*:\ninclude_once '%{buildroot}/%{_datadir}/php/Gettext/autoload.php';:" tests/bootstrap.php + # gettext has some optional dependencies that we are not integrating with at this time (we can later # if desired). Thus, we need to skip the tests on these integration points since they will fail # without the dependencies. There is an upstream issue about compatibility issues with Twig: # https://github.com/oscarotero/Gettext/issues/137 -phpunit --bootstrap tests/bootstrap.php --filter ^\(\(?!\(testBlade\|testTwig\)\).\)*$ +phpunit --bootstrap tests/bootstrap.php --filter ^\(\(?!\(testBlade\|testTwig\)\).\)*$ tests %files @@ -111,6 +111,10 @@ phpunit --bootstrap tests/bootstrap.php --filter ^\(\(?!\(testBlade\|testTwig\)\ %changelog +* Sun Feb 25 2018 Randy Barlow - 4.4.4-1 +- Update to 4.4.4 (#1548216). +- https://github.com/oscarotero/Gettext/blob/v4.4.4/CHANGELOG.md + * Sun Dec 17 2017 Randy Barlow - 4.4.3-1 - Update to 4.4.3 (#1450031). - https://github.com/oscarotero/Gettext/blob/v4.4.3/CHANGELOG.md -- cgit