2011-05-26 22:42:51 +02:00
|
|
|
#
|
2011-08-03 10:44:14 +02:00
|
|
|
# spec file for package itstool
|
2011-05-26 22:42:51 +02:00
|
|
|
#
|
2011-08-03 10:44:14 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-05-26 22:42:51 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2011-08-03 10:44:14 +02:00
|
|
|
|
2011-05-26 22:42:51 +02:00
|
|
|
Name: itstool
|
2011-09-21 17:23:11 +02:00
|
|
|
Version: 1.1.1
|
2011-05-26 22:50:28 +02:00
|
|
|
Release: 1
|
|
|
|
License: GPLv3+
|
|
|
|
Summary: Tool to translate XML documents using PO files
|
2011-05-26 22:42:51 +02:00
|
|
|
Url: http://itstool.org
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
Source: http://files.itstool.org/itstool/%{name}-%{version}.tar.bz2
|
|
|
|
BuildRequires: python
|
|
|
|
BuildRequires: libxml2-python
|
2011-05-26 22:50:28 +02:00
|
|
|
Requires: libxml2-python
|
2011-05-26 22:42:51 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
%py_requires
|
|
|
|
|
|
|
|
%description
|
2011-05-26 22:50:28 +02:00
|
|
|
ITS Tool extracts messages from XML files and outputs PO template files, then
|
|
|
|
merges translations from MO files to create translated XML files. It determines
|
|
|
|
what to translate and how to chunk it into messages using the W3C
|
|
|
|
Internationalization Tag Set (ITS).
|
2011-05-26 22:42:51 +02:00
|
|
|
|
|
|
|
%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)
|
2011-05-26 22:50:28 +02:00
|
|
|
%doc ChangeLog COPYING COPYING.GPL3 NEWS
|
2011-05-26 22:42:51 +02:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/%{name}/
|
2011-07-01 10:36:52 +02:00
|
|
|
%{_mandir}/man1/itstool.1%{?ext_man}
|
2011-05-26 22:42:51 +02:00
|
|
|
|
|
|
|
%changelog
|