2020-04-17 07:14:19 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-weblate-schemas
|
|
|
|
|
#
|
2024-06-13 14:56:57 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-04-17 07:14:19 +00: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 https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define skip_python2 1
|
|
|
|
|
Name: python-weblate-schemas
|
2024-06-13 14:56:57 +00:00
|
|
|
Version: 2024.1
|
2020-04-17 07:14:19 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: A collection of schemas used by Weblate
|
2021-03-15 11:42:23 +00:00
|
|
|
License: MIT
|
2020-04-17 07:14:19 +00:00
|
|
|
URL: https://weblate.org/
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/w/weblate_schemas/weblate_schemas-%{version}.tar.gz
|
2024-06-13 14:56:57 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2020-04-17 07:14:19 +00:00
|
|
|
BuildRequires: %{python_module jsonschema}
|
2024-06-13 14:56:57 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-04-17 07:14:19 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-06-13 14:56:57 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-04-17 07:14:19 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-jsonschema
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This module contains schemas used in Weblate exports.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n weblate_schemas-%{version}
|
2022-11-04 13:54:44 +00:00
|
|
|
%autopatch -p1
|
2020-04-17 07:14:19 +00:00
|
|
|
sed -i -e '/pytest-runner/d' setup.py
|
|
|
|
|
|
|
|
|
|
%build
|
2024-06-13 14:56:57 +00:00
|
|
|
%pyproject_wheel
|
2020-04-17 07:14:19 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-06-13 14:56:57 +00:00
|
|
|
%pyproject_install
|
2020-04-17 07:14:19 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
2022-11-04 14:22:58 +00:00
|
|
|
%{python_sitelib}/weblate_schemas
|
2024-06-13 14:56:57 +00:00
|
|
|
%{python_sitelib}/weblate_schemas-%{version}.dist-info
|
2020-04-17 07:14:19 +00:00
|
|
|
|
|
|
|
|
%changelog
|