SHA256
1
0
forked from pool/itstool
itstool/itstool.spec

60 lines
1.7 KiB
RPMSpec

#
# spec file for package
#
# 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/
#
Name: itstool
Version: 1.0.1
Release: 1.1
License: GPLv3
Summary: Translate your XML documents using PO files
Url: http://itstool.org
Group: Development/Tools/Other
Source: http://files.itstool.org/itstool/%{name}-%{version}.tar.bz2
BuildRequires: python
BuildRequires: libxml2-python
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: libxml2-python
%py_requires
%description
TS Tool allows you to translate your XML documents with PO files, using rules from the
W3C Internationalization Tag Set (ITS) to determine what to translate and how to separate it
into PO file messages.
%prep
%setup -q
sed -i "s:#!/usr/bin/env python:#!/usr/bin/python:" itstool itstool.in
%build
%configure
make %{?_smp_mflags}
%install
%make_install
%clean
%{?buildroot:%__rm -rf %{buildroot}}
%files
%defattr(-,root,root)
%doc ChangeLog COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}/
%changelog