gnome-patch-translation/gnome-patch-translation.spec

78 lines
2.4 KiB
RPMSpec

#
# spec file for package gnome-patch-translation (Version 11.2)
#
# Copyright (c) 2009 SUSE LINUX Products 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/
#
# norootforbuild
Name: gnome-patch-translation
License: GPL v2 or later
Group: System/GUI/GNOME
AutoReqProv: on
Version: 11.2
Release: 3
Summary: Collect and Merge Translations From RPM Patches
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
Source8: update-step1-update-translations-from-lcn
Source9: update-step2-update-strings-from-packages
Source10: update-step3-upload-strings-to-lcn
Source11: update-solve-upload-conflict
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.
Authors:
--------
Stanislav Brabec <sbrabec@suse.cz>
%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