1
0
package-translations/package-translations.spec
Ludwig Nussel ba00f4aad8 Accepting request 424294 from home:Minton:branches:system:install:head
SVN repository URL in PREPARE_PACKAGE was outdated, as well as translations in .tar.bz2 pack. Both are up to date now, so delivery path of package translations to users can be tested before migrating those translations to Github/Weblate.

OBS-URL: https://build.opensuse.org/request/show/424294
OBS-URL: https://build.opensuse.org/package/show/system:install:head/package-translations?expand=0&rev=261
2016-09-02 13:59:43 +00:00

52 lines
1.6 KiB
RPMSpec

#
# spec file for package package-translations
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: package-translations
Version: 1.0
Release: 0
Summary: Summary and Descriptions Translations
License: BSD-3-Clause
Group: System/GUI/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: package-translations.tar.bz2
Source1: translate_packages.pl
Source99: PREPARE_PACKAGE
BuildArch: noarch
Requires: perl-gettext
%description
This package provides translations for our packages. You don't want to install this
package on your system, it's only useful when you create openSUSE media.
%prep
%setup -q -c %name
%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
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