translation-update-upstream/translation-update-upstream.spec
OBS User autobuild a725969b2a Accepting request 32330 from Base:System
Copy from Base:System/translation-update-upstream based on submit request 32330 from user coolo

OBS-URL: https://build.opensuse.org/request/show/32330
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/translation-update-upstream?expand=0&rev=6
2010-02-11 18:17:01 +00:00

106 lines
3.7 KiB
RPMSpec

#
# spec file for package translation-update-upstream (Version 20100202)
#
# Copyright (c) 2010 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: translation-update-upstream
License: GPLv2+
Group: System/Localization
Version: 20100202
Release: 1
Summary: Tool for Translation Update from Upstream
Source: %{name}-%{version}.tar.bz2
Source1: %{name}.in
Source2: %{name}-AUTHORS
Source3: %{name}-COPYING
Source4: %{name}-README
Source5: %{name}-HOWTO
Source6: msgheadermerge
Source7: msgheadermerge-compose
Source8: msgheadermerge-parse
Source9: msgheadermerge-empty.pot
Source10: %{name}-embedded-README
Patch: %{name}-embedded.patch
# Files below are package maintainer tools, not used for package build:
Source50: upstream-collect.sh
Source51: upstream-collect.conf
Source52: upstream-collect-template.hook
Source53: create-tlst-step1-list-all-po-projects.sh
Source54: create-tlst-step2-create-gnome_gtp.sh
Source55: create-tlst.conf
# Configuration files for package maintainer tools:
Source60: upstream-gnome_gtp.tlst
Source61: upstream-gnome_gtp.hook
Source62: upstream-gnome-generic.tlst
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: coreutils gettext-tools grep intltool sed
BuildArch: noarch
%description
This is a tool providing update of translations using available
upstream resources.
The tool tool is intended for use during package compilation as a first
command after unpacking of source code.
For more see README and HOWTO.
This package also includes translation update data files.
Authors:
--------
Stanislav Brabec <sbrabec@suse.cz>
%prep
%setup -q -a0 -c %{name}-%{version}
cp -a %{S:1} translation-update-upstream.in
cp -a %{S:2} AUTHORS
cp -a %{S:3} COPYING
cp -a %{S:4} README
cp -a %{S:5} HOWTO
cp -a %{S:6} %{S:7} %{S:8} %{S:9} .
cp -a %{S:10} translation-update-upstream-embedded.README
sed 's:@DATADIR@:%{_datadir}:g;s:@LIBEXECDIR@:%{_prefix}/lib:g' <translation-update-upstream.in >translation-update-upstream
sed 's/@LIBEXECDIR@/\$BASE_DIR/g;s:@DATADIR@/translation-update-upstream:\$BASE_DIR/translation-update-upstream/po:g;s/translation-update-upstream\./translation-update-upstream-embedded./g' <translation-update-upstream.in >translation-update-upstream-embedded.sh
%patch
chmod +x translation-update-upstream-embedded.sh
%build
%install
mkdir -p $RPM_BUILD_ROOT%{_datadir} $RPM_BUILD_ROOT%{_prefix}/lib/translation-update-upstream
cp -a po $RPM_BUILD_ROOT%{_datadir}/%{name}
install -d $RPM_BUILD_ROOT%{_bindir}
install translation-update-upstream $RPM_BUILD_ROOT%{_bindir}/
install -m0755 msgheadermerge msgheadermerge-compose msgheadermerge-parse $RPM_BUILD_ROOT%{_prefix}/lib/translation-update-upstream/
install -m0644 msgheadermerge-empty.pot $RPM_BUILD_ROOT%{_prefix}/lib/translation-update-upstream/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-,root,root)
%doc AUTHORS COPYING README HOWTO
%{_bindir}/*
%{_datadir}/%{name}
%{_prefix}/lib/translation-update-upstream
%changelog