forked from pool/python-weblate-schemas
* Add 'category' field to Messaging schema * Sync with WeblateOrg/meta OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-weblate-schemas?expand=0&rev=19
71 lines
2.2 KiB
RPMSpec
71 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-weblate-schemas
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: python-weblate-schemas
|
|
Version: 2025.2
|
|
Release: 0
|
|
Summary: A collection of schemas used by Weblate
|
|
License: MIT
|
|
URL: https://weblate.org/
|
|
Source: https://files.pythonhosted.org/packages/source/w/weblate_schemas/weblate_schemas-%{version}.tar.gz
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
BuildRequires: %{python_module fedora-messaging}
|
|
BuildRequires: %{python_module fqdn >= 1.5.1}
|
|
BuildRequires: %{python_module jsonschema-format}
|
|
BuildRequires: %{python_module jsonschema}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module rfc3987 >= 1.3.8}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module strict-rfc3339 >= 0.7}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-fqdn >= 1.5.1
|
|
Requires: python-jsonschema
|
|
Requires: python-rfc3987 >= 1.3.8
|
|
Requires: python-strict-rfc3339 >= 0.7
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
This module contains schemas used in Weblate exports.
|
|
|
|
%prep
|
|
%setup -q -n weblate_schemas-%{version}
|
|
%autopatch -p1
|
|
sed -i -e '/pytest-runner/d' setup.py
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst
|
|
%{python_sitelib}/weblate_schemas
|
|
%{python_sitelib}/weblate_schemas-%{version}.dist-info
|
|
|
|
%changelog
|