forked from pool/package-translations
fix
OBS-URL: https://build.opensuse.org/package/show/system:install:head/package-translations?expand=0&rev=279
This commit is contained in:
parent
c2f7e492c7
commit
46aa1b5fad
@ -25,7 +25,6 @@ Group: System/GUI/Other
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
BuildArch: noarch
|
||||
Requires: perl-gettext
|
||||
Url: https://github.com/openSUSE/packages-i18n/
|
||||
|
||||
%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
|
||||
msgcat --use-first $lang/po/*.po | msgfmt -o $target_dir/package-translations-$lang.mo -
|
||||
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
|
||||
%defattr(-,root,root)
|
||||
%lang(en) /usr/share/locale/en_US/LC_MESSAGES/*
|
||||
/usr/bin/translate_packages.pl
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user