Compare commits
38 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d79a610b6e | ||
|
|
33c79c07d8 | ||
|
|
98151c4bee | ||
|
|
4e343ece93 | ||
|
|
ef09623fc7 | ||
|
|
a96607617e | ||
|
|
67bbd82e0e | ||
|
|
0e5194592d | ||
|
|
7f33dc79c0 | ||
|
|
00dc926291 | ||
|
|
8d84bc0028 | ||
|
|
fc0647baa5 | ||
|
|
b5dd49d094 | ||
|
|
fab8a58278 | ||
|
|
402eddb87e | ||
|
|
10277324e9 | ||
|
|
ab8f1b3a78 | ||
|
|
4155b913c1 | ||
|
|
5d013d5295 | ||
|
|
9f186920d6 | ||
|
|
d222124c9e | ||
|
|
86423eb72a | ||
|
|
f980edc43b | ||
|
|
ab600bb971 | ||
|
|
9e034803fb | ||
|
|
30df04820d | ||
|
|
aa4ffcee54 | ||
|
|
1565b384d5 | ||
|
|
e59c9c7735 | ||
|
|
3d8445350a | ||
|
|
ba6e8875d3 | ||
|
|
9d1891e312 | ||
|
|
022c55e6de | ||
|
|
4c831d7a31 | ||
|
|
431ae67839 | ||
|
|
48caa81517 | ||
|
|
ec40649b8e | ||
|
|
9e602c6626 |
5 changed files with 185 additions and 33 deletions
18
.gitignore
vendored
18
.gitignore
vendored
|
|
@ -1 +1,19 @@
|
||||||
/php-gettext-gettext-3.5.9-8da2f945.tgz
|
/php-gettext-gettext-3.5.9-8da2f945.tgz
|
||||||
|
/php-gettext-gettext-4.4.3.tar.gz
|
||||||
|
/Gettext-4.4.3.tar.gz
|
||||||
|
/Gettext-4.4.4.tar.gz
|
||||||
|
/tests-v4.4.4.tar.bz2
|
||||||
|
/Gettext-4.5.0.tar.gz
|
||||||
|
/tests-v4.5.0.tar.bz2
|
||||||
|
/Gettext-4.6.0.tar.gz
|
||||||
|
/tests-v4.6.0.tar.bz2
|
||||||
|
/Gettext-4.6.3.tar.gz
|
||||||
|
/tests-v4.6.3.tar.bz2
|
||||||
|
/tests-v4.7.0.tar.bz2
|
||||||
|
/v4.7.0.tar.gz
|
||||||
|
/v5.5.1.tar.gz
|
||||||
|
/tests-v5.5.1.tar.bz2
|
||||||
|
/v5.5.2.tar.gz
|
||||||
|
/v5.5.4.tar.gz
|
||||||
|
/v5.6.1.tar.gz
|
||||||
|
/v5.7.0.tar.gz
|
||||||
|
|
|
||||||
25
dltests.sh
Executable file
25
dltests.sh
Executable file
|
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# This was borrowed from nodejs-grunt-contrib-concat
|
||||||
|
|
||||||
|
tag=v5.7.0
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
tmp=$(mktemp -d)
|
||||||
|
|
||||||
|
trap cleanup EXIT
|
||||||
|
cleanup() {
|
||||||
|
set +e
|
||||||
|
[ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
|
||||||
|
}
|
||||||
|
|
||||||
|
unset CDPATH
|
||||||
|
pwd=$(pwd)
|
||||||
|
|
||||||
|
pushd "$tmp"
|
||||||
|
git clone https://github.com/php-gettext/Gettext.git
|
||||||
|
ls
|
||||||
|
cd Gettext
|
||||||
|
git archive --prefix="tests/" --format=tar ${tag}:tests/ \
|
||||||
|
| bzip2 > "$pwd"/tests-${tag}.tar.bz2
|
||||||
|
popd
|
||||||
|
|
@ -1,25 +1,29 @@
|
||||||
%global gh_commit 8da2f94538a2250275bb86b431c51e31e256e1e1
|
%global gh_owner php-gettext
|
||||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:8})
|
|
||||||
%global gh_owner oscarotero
|
|
||||||
%global gh_project Gettext
|
%global gh_project Gettext
|
||||||
|
|
||||||
|
|
||||||
Name: php-gettext-gettext
|
Name: php-gettext-gettext
|
||||||
Version: 3.5.9
|
Version: 5.7.0
|
||||||
Release: 5%{?dist}
|
Release: 8%{?dist}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
Summary: PHP gettext manager
|
Summary: PHP gettext manager
|
||||||
URL: https://github.com/%{gh_owner}/%{gh_project}
|
URL: https://github.com/%{gh_owner}/%{gh_project}
|
||||||
Source0: %{name}-%{version}-%{gh_short}.tgz
|
Source0: %{url}/archive/v%{version}.tar.gz
|
||||||
|
# Upstream strips the tests from the tarball, so we have to generate it manually.
|
||||||
|
# dltests.sh is used to do this, and is included in this repository.
|
||||||
|
Source1: tests-v%{version}.tar.bz2
|
||||||
|
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
BuildRequires: php-composer(gettext/languages) >= 2.0.0
|
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
|
||||||
BuildRequires: php-composer(gettext/languages) < 3.0.0
|
BuildRequires: (php-composer(gettext/languages) >= 2.3.0 with php-composer(gettext/languages) < 3)
|
||||||
BuildRequires: phpunit
|
%else
|
||||||
|
BuildRequires: php-gettext-languages >= 2.3.0
|
||||||
|
%endif
|
||||||
|
BuildRequires: phpunit8
|
||||||
|
|
||||||
Requires: php(language) >= 5.3.0
|
Requires: php(language) >= 5.4.0
|
||||||
Requires: php-date
|
Requires: php-date
|
||||||
Requires: php-dom
|
Requires: php-dom
|
||||||
Requires: php-gettext
|
Requires: php-gettext
|
||||||
|
|
@ -29,8 +33,11 @@ Requires: php-simplexml
|
||||||
Requires: php-spl
|
Requires: php-spl
|
||||||
Requires: php-tokenizer
|
Requires: php-tokenizer
|
||||||
|
|
||||||
Requires: php-composer(gettext/languages) >= 2.0.0
|
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
|
||||||
Requires: php-composer(gettext/languages) < 3.0.0
|
Requires: (php-composer(gettext/languages) >= 2.3.0 with php-composer(gettext/languages) < 3)
|
||||||
|
%else
|
||||||
|
Requires: php-gettext-languages >= 2.3.0
|
||||||
|
%endif
|
||||||
|
|
||||||
Provides: php-composer(gettext/gettext) = %{version}
|
Provides: php-composer(gettext/gettext) = %{version}
|
||||||
|
|
||||||
|
|
@ -43,13 +50,11 @@ Autoloader: %{_datadir}/php/Gettext/autoload.php
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n Gettext-%{gh_commit}
|
%setup -a1 -n Gettext-%{version}
|
||||||
|
|
||||||
# The documentation has the wrong newline codes
|
# The documentation has the wrong newline codes
|
||||||
dos2unix *.md
|
dos2unix *.md
|
||||||
|
|
||||||
sed -i "s:include_once.*:\ninclude_once '%{buildroot}/%{_datadir}/php/Gettext/autoload.php';:" tests/bootstrap.php
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
: Create autoloader
|
: Create autoloader
|
||||||
|
|
@ -63,6 +68,8 @@ require_once '%{_datadir}/php/Fedora/Autoloader/autoload.php';
|
||||||
|
|
||||||
\Fedora\Autoloader\Autoload::addPsr4('Gettext\\', __DIR__);
|
\Fedora\Autoloader\Autoload::addPsr4('Gettext\\', __DIR__);
|
||||||
|
|
||||||
|
\Fedora\Autoloader\Autoload::addPsr4('Gettext\\Tests\\', 'tests');
|
||||||
|
|
||||||
\Fedora\Autoloader\Dependencies::required(array(
|
\Fedora\Autoloader\Dependencies::required(array(
|
||||||
'%{_datadir}/php/Gettext/Languages/autoloader.php'
|
'%{_datadir}/php/Gettext/Languages/autoloader.php'
|
||||||
));
|
));
|
||||||
|
|
@ -78,15 +85,26 @@ cp -ar src/* %{buildroot}/%{_datadir}/php/Gettext/
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
# Upstream no longer contains tests/bootstrap.php file
|
||||||
|
#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
|
# 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
|
# 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:
|
# without the dependencies. There is an upstream issue about compatibility issues with Twig:
|
||||||
# https://github.com/oscarotero/Gettext/issues/137
|
# https://github.com/oscarotero/Gettext/issues/137
|
||||||
phpunit --bootstrap tests/bootstrap.php --filter ^\(\(?!\(testBlade\|testTwig\)\).\)*$
|
|
||||||
|
|
||||||
|
: run upstream test suite with all installed PHP versions
|
||||||
|
ret=0
|
||||||
|
for cmd in php php71 php72 php73 php74; do
|
||||||
|
if which $cmd; then
|
||||||
|
$cmd %{_bindir}/phpunit8 --bootstrap %{buildroot}/%{_datadir}/php/Gettext/autoload.php tests --exclude-group default
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
exit $ret
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
%doc CHANGELOG.md
|
||||||
%doc composer.json
|
%doc composer.json
|
||||||
%doc CONTRIBUTING.md
|
%doc CONTRIBUTING.md
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
|
@ -94,22 +112,113 @@ phpunit --bootstrap tests/bootstrap.php --filter ^\(\(?!\(testBlade\|testTwig\)\
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 5.7.0-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 5.7.0-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.7.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.7.0-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.7.0-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.7.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.7.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Dec 12 2022 Sundeep Anand <suanand@fedoraproject.org> - 5.7.0-1
|
||||||
|
- update to 5.7.0 (#2111800)
|
||||||
|
|
||||||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Dec 7 2021 Sundeep Anand <suanand@fedoraproject.org> - 5.6.1-1
|
||||||
|
- update to 5.6.1 (#2020848)
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.4-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed May 12 2021 Sundeep Anand <suanand@fedoraproject.org> - 5.5.4-1
|
||||||
|
- update to 5.5.4 (#1903457)
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Nov 18 2020 Sundeep Anand <suanand@fedoraproject.org> - 5.5.2-1
|
||||||
|
- update to 5.5.2 (#1898773)
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 24 2020 Sundeep Anand <suanand@fedoraproject.org> - 5.5.1-1
|
||||||
|
- update to 5.5.1 (#1768669)
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Oct 10 2019 Remi Collet <remi@remirepo.net> - 4.7.0-2
|
||||||
|
- update to 4.7.0
|
||||||
|
- use range dependencies
|
||||||
|
- add patch for PHP 7.4 from
|
||||||
|
- https://github.com/oscarotero/Gettext/pull/230
|
||||||
|
|
||||||
|
* Thu Oct 10 2019 Sundeep Anand <suanand@fedoraproject.org> - 4.7.0-1
|
||||||
|
- Update to 4.7.0 (#1759099).
|
||||||
|
- https://github.com/oscarotero/Gettext/blob/v4.7.0/CHANGELOG.md
|
||||||
|
|
||||||
|
* Wed Sep 11 2019 Sundeep Anand <suanand@fedoraproject.org> - 4.6.3-2
|
||||||
|
- Fix dependencies.
|
||||||
|
|
||||||
|
* Tue Sep 10 2019 Sundeep Anand <suanand@fedoraproject.org> - 4.6.3-1
|
||||||
|
- Update to 4.6.3 (#1742047).
|
||||||
|
- https://github.com/oscarotero/Gettext/blob/v4.6.3/CHANGELOG.md
|
||||||
|
|
||||||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jul 29 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 4.6.0-1
|
||||||
|
- Update to 4.6.0 (#1595474).
|
||||||
|
- https://github.com/oscarotero/Gettext/blob/v4.6.0/CHANGELOG.md
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun May 20 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 4.5.0-1
|
||||||
|
- Update to 4.5.0 (#1571010).
|
||||||
|
- https://github.com/oscarotero/Gettext/blob/v4.5.0/CHANGELOG.md
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.3-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
|
* Tue Oct 31 2017 Remi Collet <remi@remirepo.net> - 3.5.9-7
|
||||||
|
- fix FTBFS from Koschei
|
||||||
|
- add upstream patch for PHP 7.2
|
||||||
|
- add patch for bigendian from https://github.com/oscarotero/Gettext/pull/159
|
||||||
|
|
||||||
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.9-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
* Sun Apr 02 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.5.9-5
|
* Sun Apr 02 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.5.9-5
|
||||||
- Depend on php-dom and php-simplexml.
|
- Depend on php-dom and php-simplexml.
|
||||||
- Don't provide /usr/share/php/Gettext.
|
- Don't provide /usr/share/php/Gettext.
|
||||||
|
|
||||||
* Wed Feb 01 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.5.9-4
|
|
||||||
- Remove dependency on twig/twig.
|
|
||||||
|
|
||||||
* Wed Feb 01 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.5.9-3
|
|
||||||
- Create a Fedora autoloader.
|
|
||||||
- Depend on twig/twig.
|
|
||||||
- Install to /usr/share/php/Gettext instead of the Gettext subdir of that path.
|
|
||||||
|
|
||||||
* Sun Jan 22 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.5.9-2
|
|
||||||
- Use a git snapshot instead of a GitHub URL so that we can run the
|
|
||||||
tests (except for two that need optional dependencies).
|
|
||||||
- require_once Gettext/Languages inside the autoloader.
|
|
||||||
|
|
||||||
* Tue Jan 17 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.5.9-1
|
|
||||||
- Initial release.
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (php-gettext-gettext-3.5.9-8da2f945.tgz) = b949a74bc5a39790a2621579469d81fb39d34c8c59616e68a38d256b7aef617f283b07c65080efd00cfdb0bd48bdfffcbc02659018e81e185edd444ff22c0d44
|
SHA512 (v5.7.0.tar.gz) = cfa8eae6751f604486c4aa4133c2d003c602ea9b8aa5de68c4ba594f91f12addf32306d0598a0fff1bf5b5707f4f96f73543868a569a757bb6b15113e3f51e9d
|
||||||
|
|
|
||||||
BIN
tests-v5.7.0.tar.bz2
Normal file
BIN
tests-v5.7.0.tar.bz2
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue