summaryrefslogtreecommitdiffstats
path: root/php-horde-Horde-Cli.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-01-09 16:07:39 +0100
committerRemi Collet <fedora@famillecollet.com>2013-01-09 16:07:39 +0100
commit4ca202341bc133e49f79353d66bccf9591b007db (patch)
tree6a5f0684544a7f14e890c99e47dff34aa85e8f66 /php-horde-Horde-Cli.spec
parentf233e25cf1c23dfb263df78d362db704fa97d630 (diff)
php-horde-Horde-Cli: 2.0.2
Diffstat (limited to 'php-horde-Horde-Cli.spec')
-rw-r--r--php-horde-Horde-Cli.spec23
1 files changed, 11 insertions, 12 deletions
diff --git a/php-horde-Horde-Cli.spec b/php-horde-Horde-Cli.spec
index 8654d3e..92a2e98 100644
--- a/php-horde-Horde-Cli.spec
+++ b/php-horde-Horde-Cli.spec
@@ -4,7 +4,7 @@
%global pear_channel pear.horde.org
Name: php-horde-Horde-Cli
-Version: 2.0.1
+Version: 2.0.2
Release: 1%{?dist}
Summary: Horde Command Line Interface API
@@ -12,8 +12,6 @@ Group: Development/Libraries
License: LGPLv2+
URL: http://pear.horde.org
Source0: http://%{pear_channel}/get/%{pear_name}-%{version}.tgz
-# /usr/lib/rpm/find-lang.sh from fedora 16
-Source1: find-lang.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gettext
@@ -73,11 +71,11 @@ rm -rf %{buildroot}%{pear_metadir}/.??*
mkdir -p %{buildroot}%{pear_xmldir}
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
-%if 0%{?fedora} > 13 || 0%{?rhel} > 6
-%find_lang %{pear_name}
-%else
-sh %{SOURCE1} %{buildroot} %{pear_name}
-%endif
+for loc in locale/{??,??_??}
+do
+ lang=$(basename $loc)
+ test -d $loc && echo "%%lang(${lang%_*}) %{pear_datadir}/%{pear_name}/$loc"
+done | tee ../%{pear_name}.lang
%post
@@ -91,20 +89,21 @@ if [ $1 -eq 0 ] ; then
fi
-%files -f %{pear_name}-%{version}/%{pear_name}.lang
+%files -f %{pear_name}.lang
%defattr(-,root,root,-)
%doc %{pear_docdir}/%{pear_name}
%{pear_xmldir}/%{name}.xml
%{pear_phpdir}/Horde/Cli
%{pear_phpdir}/Horde/Cli.php
-# own locales (non standard) directories, .mo own by find_lang
%dir %{pear_datadir}/Horde_Cli
%dir %{pear_datadir}/Horde_Cli/locale
-%dir %{pear_datadir}/Horde_Cli/locale/*
-%dir %{pear_datadir}/Horde_Cli/locale/*/LC_MESSAGES
%changelog
+* Wed Jan 9 2013 Remi Collet <RPMS@FamilleCollet.com> - 2.0.2-1
+- Update to 2.0.2 for remi repo
+- use local script instead of find_lang
+
* Wed Nov 7 2012 Remi Collet <RPMS@FamilleCollet.com> - 2.0.1-1
- Update to 2.0.1 for remi repo