summaryrefslogtreecommitdiffstats
path: root/php-gettext-languages.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-gettext-languages.spec')
-rw-r--r--php-gettext-languages.spec16
1 files changed, 11 insertions, 5 deletions
diff --git a/php-gettext-languages.spec b/php-gettext-languages.spec
index 6853009..db2a87a 100644
--- a/php-gettext-languages.spec
+++ b/php-gettext-languages.spec
@@ -9,7 +9,7 @@
#
Name: php-gettext-languages
-Version: 2.4.0
+Version: 2.6.0
Release: 1%{?dist}
BuildArch: noarch
@@ -50,9 +50,11 @@ generated from CLDR data.
%prep
%autosetup -p1 -n cldr-to-gettext-plural-rules-%{version}
-sed -i "s:require_once.*:require_once '%{_datadir}/php/Gettext/Languages/autoloader.php';:" bin/export-plural-rules.php
-echo "#!/usr/bin/env php" > bin/export-plural-rules.sh
-cat bin/export-plural-rules.sh bin/export-plural-rules.php > bin/export-plural-rules
+sed -i "s:require_once.*:require_once '%{_datadir}/php/Gettext/Languages/autoloader.php';:" bin/export-plural-rules
+#echo "#!/usr/bin/env php" > bin/export-plural-rules.sh
+#cat bin/export-plural-rules.sh bin/export-plural-rules.php > bin/export-plural-rules
+
+sed -i '1s;^;#!/usr/bin/php\n;' bin/export-plural-rules
%install
@@ -65,12 +67,13 @@ cp -a bin/export-plural-rules %{buildroot}/%{_bindir}/%{name}-export-plural-rule
chmod 755 %{buildroot}/%{_bindir}/%{name}-export-plural-rules
cp -ar src/* %{buildroot}/%{_datadir}/php/Gettext/Languages/
+cp -ar tests/test %{buildroot}/%{_datadir}/php/Gettext/Languages/Test
%check
sed -i "s:require_once.*:require_once '%{buildroot}/%{_datadir}/php/Gettext/Languages/autoloader.php';:" tests/bootstrap.php
-sed -i "s:require_once.*:require_once '%{buildroot}/%{_datadir}/php/Gettext/Languages/autoloader.php';:" bin/export-plural-rules.php
+sed -i "s:require_once.*:require_once '%{buildroot}/%{_datadir}/php/Gettext/Languages/autoloader.php';:" bin/export-plural-rules
phpunit --bootstrap tests/bootstrap.php
@@ -85,6 +88,9 @@ phpunit --bootstrap tests/bootstrap.php
%changelog
+* Fri Jul 24 2020 Sundeep Anand <suanand@fedoraproject.org> - 2.6.0-1
+- Update to 2.6.0 (#1772151).
+
* Sun Jul 29 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 2.4.0-1
- Update to 2.4.0 (#1594776).
- https://github.com/mlocati/cldr-to-gettext-plural-rules/releases/tag/2.4.0