2013-06-01 10:36:06 +02:00
|
|
|
#
|
|
|
|
# spec file for package i18nspector
|
|
|
|
#
|
2024-04-05 07:40:16 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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.
|
|
|
|
|
2019-01-06 16:01:10 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-06-01 10:36:06 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: i18nspector
|
2024-04-05 07:40:16 +02:00
|
|
|
Version: 0.27.1
|
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
|
2020-08-19 11:21:24 +02:00
|
|
|
URL: https://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
|
2020-08-19 11:21:24 +02:00
|
|
|
BuildRequires: python3-devel >= 3.4
|
2013-06-01 10:36:06 +02:00
|
|
|
# Requires for tests.
|
|
|
|
BuildRequires: python3-curses
|
|
|
|
BuildRequires: python3-polib
|
2021-11-23 00:05:17 +01:00
|
|
|
BuildRequires: python3-pytest
|
2016-04-22 16:58:40 +02:00
|
|
|
BuildRequires: python3-rply
|
2018-05-23 09:03:26 +02:00
|
|
|
#
|
2013-06-01 10:36:06 +02:00
|
|
|
BuildArch: noarch
|
2020-08-19 11:21:24 +02:00
|
|
|
Requires: python3 >= 3.4
|
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
|
2021-11-23 00:05:17 +01:00
|
|
|
%autopatch -p1
|
2013-06-01 10:36:06 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install PREFIX=%{_prefix}
|
|
|
|
|
|
|
|
# Python byte compile.
|
|
|
|
cd %{buildroot}%{_datadir}/%{name}/
|
|
|
|
%py3_compile .
|
|
|
|
|
|
|
|
%check
|
2021-11-23 00:05:17 +01:00
|
|
|
pytest -v
|
2013-06-01 10:36:06 +02:00
|
|
|
|
|
|
|
%files
|
2018-05-23 09:03:26 +02:00
|
|
|
%license doc/LICENSE
|
2019-04-09 10:55:07 +02:00
|
|
|
%doc doc/changelog doc/README doc/tags.rst doc/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
|