diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-01-09 18:14:19 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-01-09 18:14:19 +0100 |
commit | 7e24c5455379d4e92a90188411d8f6e3b21fa6e0 (patch) | |
tree | 262312e8d3936dae394efab6eb5be6166027d57e /php-horde-Horde-Mime-Viewer.spec | |
parent | b0e64c05f7cb95b7fd08d8b9f36b6b26732fb941 (diff) |
php-horde-Horde-Mime-Viewer: 2.0.2
Diffstat (limited to 'php-horde-Horde-Mime-Viewer.spec')
-rw-r--r-- | php-horde-Horde-Mime-Viewer.spec | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/php-horde-Horde-Mime-Viewer.spec b/php-horde-Horde-Mime-Viewer.spec index 8a47d8d..7bed7e0 100644 --- a/php-horde-Horde-Mime-Viewer.spec +++ b/php-horde-Horde-Mime-Viewer.spec @@ -4,7 +4,7 @@ %global pear_channel pear.horde.org Name: php-horde-Horde-Mime-Viewer -Version: 2.0.1 +Version: 2.0.2 Release: 1%{?dist} Summary: Horde MIME Viewer Library @@ -13,8 +13,6 @@ Group: Development/Libraries License: LGPLv2 and LGPLv3 or MIT 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-%(%{__id_u} -n) BuildArch: noarch @@ -92,11 +90,12 @@ rm -rf %{buildroot}%{pear_metadir}/.??* mkdir -p %{buildroot}%{pear_xmldir} install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir} -%if 0%{?fedora} > 13 -%find_lang %{pear_name} -%else -sh %{SOURCE1} %{buildroot} %{pear_name} -%endif +for loc in locale/{??,??_??} +do + lang=$(basename $loc) + test -d %{buildroot}%{pear_datadir}/%{pear_name}/$loc \ + && echo "%%lang(${lang%_*}) %{pear_datadir}/%{pear_name}/$loc" +done | tee ../%{pear_name}.lang %post @@ -110,24 +109,25 @@ 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/Mime/Viewer %{pear_phpdir}/Horde/Mime/Viewer.php %{pear_testdir}/%{pear_name} -# own locales (non standard) directories, .mo own by find_lang %dir %{pear_datadir}/%{pear_name} %dir %{pear_datadir}/%{pear_name}/locale -%dir %{pear_datadir}/%{pear_name}/locale/* -%dir %{pear_datadir}/%{pear_name}/locale/*/LC_MESSAGES # Web files %dir %{pear_hordedir}/js %{pear_hordedir}/js/syntaxhighlighter %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 |