diff --git a/PREPARE_PACKAGE b/PREPARE_PACKAGE deleted file mode 100644 index 510e586..0000000 --- a/PREPARE_PACKAGE +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash - -test -f package-translations.spec || { "cwd must contain package-translations.spec"; exit 1; } -PWD=$(pwd) -if test -d "$MY_PKG_I18N_CHECKOUT"; then - echo "Updating $MY_PKG_I18N_CHECKOUT" - cd $MY_PKG_I18N_CHECKOUT && git pull && cd $PWD -else - echo "No \$MY_PKG_I18N_CHECKOUT set, will checkout temporarly" - git clone https://github.com/opensuse/packages-i18n.git - export MY_PKG_I18N_CHECKOUT=$PWD/packages-i18n -fi - -rm -rf mo -tar xf package-translations.tar.bz2 -mv mo mo.old -mkdir mo -for file in $MY_PKG_I18N_CHECKOUT/*/po; do - lang=`echo $file | sed -e "s,/po,,; s,.*/,,"` - echo $file $lang - msgcat --use-first $file/*.po | msgfmt -o mo/package-translations-$lang.mo - -done -if diff -ru mo.old mo; then - echo "no changes" - rm -rf mo mo.old - exit 1 -else - rm -f package-translations.tar.bz2 - tar cfj package-translations.tar.bz2 mo - rm -rf mo mo.old -fi - -NAME=package-translations -{ -echo "-------------------------------------------------------------------" -timestamp=$(LC_ALL=POSIX TZ=UTC date) -timestamp2=$(LC_ALL=POSIX TZ=UTC date +"%Y-%m-%d") -user=$(osc whois | cut -d\" -f3) -user=$(echo $user) -echo "$timestamp - $user" -echo -echo "- automated update on $timestamp2" -echo -cat $NAME.changes -} > $NAME.changes.new -mv $NAME.changes.new $NAME.changes - -exit 0 diff --git a/_service b/_service new file mode 100644 index 0000000..a3c51d1 --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + package-translations + %cd.%h + + 84.87 + git://github.com/openSUSE/packages-i18n.git + git + enable + + + *.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..c61cabb --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + git://github.com/openSUSE/packages-i18n.git + 7ea0b2cd09d6916a0b5e25c508b445ba28fcb65d \ No newline at end of file diff --git a/package-translations-84.87.20170709.7ea0b2c.tar.xz b/package-translations-84.87.20170709.7ea0b2c.tar.xz new file mode 100644 index 0000000..3eba549 --- /dev/null +++ b/package-translations-84.87.20170709.7ea0b2c.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f90a63b2522f4f93037863159ec9559eaa109b53f08a021cd12a290f2aee438 +size 38472124 diff --git a/package-translations.changes b/package-translations.changes index 8351fe1..0e1c296 100644 --- a/package-translations.changes +++ b/package-translations.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jul 10 14:38:56 UTC 2017 - lnussel@suse.de + +- switch to using a _service file +- Update to version 84.87.20170709.7ea0b2c: + * Translated using Weblate (German) + ------------------------------------------------------------------- Thu Apr 20 19:47:52 UTC 2017 - alex239@gmail.com diff --git a/package-translations.spec b/package-translations.spec index cee9c55..f5f4271 100644 --- a/package-translations.spec +++ b/package-translations.spec @@ -17,15 +17,14 @@ Name: package-translations -Version: 1.0 +Version: 84.87.20170709.7ea0b2c Release: 0 Summary: Summary and Descriptions Translations License: BSD-3-Clause Group: System/GUI/Other BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: %{name}.tar.bz2 +Source0: %{name}-%{version}.tar.xz Source1: translate_packages.pl -Source99: PREPARE_PACKAGE BuildArch: noarch Requires: perl-gettext Url: https://github.com/openSUSE/packages-i18n/ @@ -37,7 +36,7 @@ This package provides translations for our packages. You don't want to install t package on your system, it's only useful when you create openSUSE media. %prep -%setup -q -c %name +%setup -q %build @@ -45,7 +44,7 @@ package on your system, it's only useful when you create openSUSE media. 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 - + 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 diff --git a/package-translations.tar.bz2 b/package-translations.tar.bz2 deleted file mode 100644 index b947be6..0000000 --- a/package-translations.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:959396a93e8600d8c65c8354748c471ceab8891b12330fc866a2284d665e18d6 -size 45719473