fix
OBS-URL: https://build.opensuse.org/package/show/system:install:head/package-translations?expand=0&rev=279
This commit is contained in:
@@ -25,7 +25,6 @@ Group: System/GUI/Other
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Source0: %{name}-%{version}.tar.xz
|
Source0: %{name}-%{version}.tar.xz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires: perl-gettext
|
|
||||||
Url: https://github.com/openSUSE/packages-i18n/
|
Url: https://github.com/openSUSE/packages-i18n/
|
||||||
|
|
||||||
%define build_languages cs de es fr hu it ja lt nl nn ru uk zh_CN
|
%define build_languages cs de es fr hu it ja lt nl nn ru uk zh_CN
|
||||||
@@ -45,12 +44,9 @@ mkdir -p $target_dir
|
|||||||
for lang in %build_languages; do
|
for lang in %build_languages; do
|
||||||
msgcat --use-first $lang/po/*.po | msgfmt -o $target_dir/package-translations-$lang.mo -
|
msgcat --use-first $lang/po/*.po | msgfmt -o $target_dir/package-translations-$lang.mo -
|
||||||
done
|
done
|
||||||
#cp -a mo/* $RPM_BUILD_ROOT/usr/share/locale/en_US/LC_MESSAGES
|
|
||||||
install -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT/usr/bin/translate_packages.pl
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%lang(en) /usr/share/locale/en_US/LC_MESSAGES/*
|
%lang(en) /usr/share/locale/en_US/LC_MESSAGES/*
|
||||||
/usr/bin/translate_packages.pl
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user