2013-06-01 10:36:06 +02:00
|
|
|
#
|
|
|
|
# spec file for package i18nspector
|
|
|
|
#
|
2017-08-18 06:10:30 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-06-01 10:36:06 +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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: i18nspector
|
2017-11-03 08:29:15 +01:00
|
|
|
Version: 0.25.5
|
2013-06-01 10:36:06 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Tool for Checking gettext POT/PO/MO Files
|
2013-06-10 10:14:44 +02:00
|
|
|
License: MIT
|
2013-06-01 10:36:06 +02:00
|
|
|
Group: Development/Tools/Other
|
2013-06-10 10:14:44 +02:00
|
|
|
Url: http://jwilk.net/software/i18nspector
|
2016-06-01 11:45:38 +02:00
|
|
|
Source0: https://github.com/jwilk/i18nspector/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://github.com/jwilk/i18nspector/releases/download/%{version}/%{name}-%{version}.tar.gz.asc
|
2013-06-01 10:36:06 +02:00
|
|
|
Source2: %{name}.keyring
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
# Requires for tests.
|
|
|
|
BuildRequires: python3-curses
|
|
|
|
BuildRequires: python3-nose
|
|
|
|
BuildRequires: python3-polib
|
2016-04-22 16:58:40 +02:00
|
|
|
BuildRequires: python3-rply
|
2013-06-01 10:36:06 +02:00
|
|
|
Requires: python3-polib
|
2016-04-22 16:58:40 +02:00
|
|
|
Requires: python3-rply
|
2013-06-01 10:36:06 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2016-04-22 16:58:40 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1230
|
|
|
|
Requires: python3 >= 3.2
|
|
|
|
%endif
|
2013-06-01 10:36:06 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
i18nspector is a tool for checking translation templates (POT), message
|
|
|
|
catalogues (PO) and compiled message catalogues (MO) files for common
|
|
|
|
problems. These files are used by the GNU gettext translation functions
|
|
|
|
and tools in many different development environments.
|
|
|
|
|
|
|
|
Checks include: incorrect or inconsistent character encoding, missing
|
|
|
|
headers, incorrect language codes and improper plural forms.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install PREFIX=%{_prefix}
|
|
|
|
|
|
|
|
# Python byte compile.
|
|
|
|
cd %{buildroot}%{_datadir}/%{name}/
|
|
|
|
%py3_compile .
|
|
|
|
|
|
|
|
%check
|
2015-02-01 21:17:56 +01:00
|
|
|
make %{?_smp_mflags} test
|
2013-06-01 10:36:06 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2017-11-03 08:29:15 +01:00
|
|
|
%doc doc/{changelog,LICENSE,tags.txt,todo}
|
2013-06-01 10:36:06 +02:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/%{name}/
|
2016-04-22 16:58:40 +02:00
|
|
|
%{_mandir}/man?/*
|
2013-06-01 10:36:06 +02:00
|
|
|
|
|
|
|
%changelog
|