1
0
Alex Minton 2016-11-08 20:58:58 +00:00 committed by Git OBS Bridge
parent b9a6b797b5
commit 84c7628b7a
3 changed files with 18 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 08 20:55:52 UTC 2016 - alex239@gmail.com
- automated update on 2016-11-08
- added source service for OBS
-------------------------------------------------------------------
Sun Oct 2 12:21:02 UTC 2016 - alex239@gmail.com

View File

@ -23,11 +23,14 @@ Summary: Summary and Descriptions Translations
License: BSD-3-Clause
Group: System/GUI/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: package-translations.tar.bz2
Source0: %{name}.tar.bz2
Source1: translate_packages.pl
Source99: PREPARE_PACKAGE
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
%description
This package provides translations for our packages. You don't want to install this
@ -39,8 +42,12 @@ package on your system, it's only useful when you create openSUSE media.
%build
%install
mkdir -p $RPM_BUILD_ROOT/usr/share/locale/en_US/LC_MESSAGES
cp -a mo/* $RPM_BUILD_ROOT/usr/share/locale/en_US/LC_MESSAGES
target_dir=$RPM_BUILD_ROOT/usr/share/locale/en_US/LC_MESSAGES
mkdir -p $target_dir
for lang in %build_languages; do
msgcat --use-first package-translations/$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

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:69e1c831e54daec5e75b986aaedd866959e757135231d0061116e9c1c8b18d6c
size 4991954
oid sha256:eca20e23c091c85685a82bbda65881252a8b6e960b0138845e3257ea27b031f0
size 43206214