From c7c5a04e2dd7312bd0ac9259327be0ad8cd9b475 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 17 Aug 2020 14:45:06 +0200 Subject: v2.6.0 from Fedora --- php-gettext-languages.spec | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'php-gettext-languages.spec') 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 - 2.6.0-1 +- Update to 2.6.0 (#1772151). + * Sun Jul 29 2018 Randy Barlow - 2.4.0-1 - Update to 2.4.0 (#1594776). - https://github.com/mlocati/cldr-to-gettext-plural-rules/releases/tag/2.4.0 -- cgit