[php-horde-Horde-Exception] Use for loop instead of find-lang to make el6 work

Nick Bebout nb at fedoraproject.org
Fri Dec 28 23:41:11 UTC 2012


commit 03460bc4ae29a1a768e7c618ae7fd456a285ddcb
Author: Nick Bebout <nb at fedoraproject.org>
Date:   Fri Dec 28 17:40:56 2012 -0600

    Use for loop instead of find-lang to make el6 work

 php-horde-Horde-Exception.spec |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/php-horde-Horde-Exception.spec b/php-horde-Horde-Exception.spec
index 3e388e2..6aa2bbd 100644
--- a/php-horde-Horde-Exception.spec
+++ b/php-horde-Horde-Exception.spec
@@ -59,7 +59,13 @@ rm -rf $RPM_BUILD_ROOT%{pear_metadir}/.??*
 # Install XML package description
 mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
 install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
-%find_lang %{pear_name}
+
+# Locales
+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
 %{__pear} install --nodeps --soft --force --register-only \
@@ -72,7 +78,7 @@ if [ $1 -eq 0 ] ; then
 fi
 
 
-%files -f %{pear_name}-%{version}/%{pear_name}.lang
+%files -f %{pear_name}.lang
 %doc %{pear_docdir}/%{pear_name}
 %{pear_xmldir}/%{name}.xml
 %{pear_phpdir}/Horde/Exception


More information about the scm-commits mailing list