File gnome-patch-translation.spec of Package gnome-patch-translation

#
# spec file for package gnome-patch-translation
#
# 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:           gnome-patch-translation
Version:        13.1.2
Release:        0
Summary:        Collect and Merge Translations From RPM Patches
License:        GPL-2.0+
Group:          System/GUI/GNOME
Source:         gnome-patch-translation-files.tar.bz2
Source1:        gnome-patch-translation.tar.bz2
Source2:        README
Source3:        gnome-patch-translation-prepare
Source4:        gnome-patch-translation-update
Source5:        gnome-patch-translation-merge
Source6:        HEADER.pot
Source7:        HOWTO
# Supplementary script: Fetch translations from LCN
Source8:        update-step1-update-translations-from-lcn
# Supplementary script: Collect strings from LCN
Source9:        update-step2-update-strings-from-packages
# Supplementary script: Upload results to LCN
Source10:       update-step3-upload-strings-to-lcn
# Supplementary script: Merge changes from LCN in case of SVN commit conflict
Source11:       update-solve-upload-conflict
# The master configuration file:
Source12:       gnome-patch-translation.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       intltool
BuildArch:      noarch

%description
This package provides scripts for collecting strings changed in RPM
patches and merging them to one translation compendium.

%prep
%setup -T -a0 -a1 -c %{name}-%{version}
cp -a %{S:2} %{S:3} %{S:4} %{S:5} %{S:6} .

%build
sh gnome-patch-translation-merge

%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install gnome-patch-translation-prepare gnome-patch-translation-update $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome-patch-translation
cp gnome-patch-translation/*.po gnome-patch-translation-merged/*.pot $RPM_BUILD_ROOT%{_datadir}/gnome-patch-translation

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%{_bindir}/*
%{_datadir}/gnome-patch-translation

%changelog
openSUSE Build Service is sponsored by