- switch to using a _service file
- Update to version 84.87.20170709.7ea0b2c: * Translated using Weblate (German) OBS-URL: https://build.opensuse.org/package/show/system:install:head/package-translations?expand=0&rev=272
This commit is contained in:
parent
48759bf62b
commit
48ff318f40
@ -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
|
16
_service
Normal file
16
_service
Normal file
@ -0,0 +1,16 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="filename">package-translations</param>
|
||||
<param name="versionformat">%cd.%h</param>
|
||||
<!-- it's tumbleweed -->
|
||||
<param name="versionprefix">84.87</param>
|
||||
<param name="url">git://github.com/openSUSE/packages-i18n.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled"/>
|
||||
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">git://github.com/openSUSE/packages-i18n.git</param>
|
||||
<param name="changesrevision">7ea0b2cd09d6916a0b5e25c508b445ba28fcb65d</param></service></servicedata>
|
3
package-translations-84.87.20170709.7ea0b2c.tar.xz
Normal file
3
package-translations-84.87.20170709.7ea0b2c.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4f90a63b2522f4f93037863159ec9559eaa109b53f08a021cd12a290f2aee438
|
||||
size 38472124
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:959396a93e8600d8c65c8354748c471ceab8891b12330fc866a2284d665e18d6
|
||||
size 45719473
|
Loading…
x
Reference in New Issue
Block a user