summaryrefslogtreecommitdiffstats
path: root/php-gettext-gettext.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-02-26 05:58:46 +0100
committerRemi Collet <remi@remirepo.net>2018-02-26 05:58:46 +0100
commit69c1e6638c37d67c0a15a2f774cca678ee48679f (patch)
tree4f2892aeb7efa5766555142f6f447e607a24b69e /php-gettext-gettext.spec
parentc29ede419f705b7402c9193f7b0c786e79a1dab2 (diff)
v4.4.4 from Fedora
Diffstat (limited to 'php-gettext-gettext.spec')
-rw-r--r--php-gettext-gettext.spec20
1 files changed, 12 insertions, 8 deletions
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 <bowlofeggs@fedoraproject.org> - 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 <bowlofeggs@fedoraproject.org> - 4.4.3-1
- Update to 4.4.3 (#1450031).
- https://github.com/oscarotero/Gettext/blob/v4.4.3/CHANGELOG.md