2016-08-07 12:01:13 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-rst.linker
|
|
|
|
#
|
2020-03-17 11:08:50 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2016-08-07 12:01:13 +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.
|
|
|
|
|
2019-02-27 08:28:18 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-08-07 12:01:13 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define _name rst.linker
|
2020-03-27 12:50:29 +00:00
|
|
|
%define skip_python2 1
|
2017-07-05 11:46:10 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2016-08-07 12:01:13 +00:00
|
|
|
Name: python-rst.linker
|
2020-03-27 12:50:29 +00:00
|
|
|
Version: 2.0.0
|
2016-08-07 12:01:13 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Changelog link and timestamp adding Sphinx plugin
|
|
|
|
License: MIT
|
2019-06-07 11:56:52 +00:00
|
|
|
URL: https://github.com/jaraco/rst.linker
|
2016-08-07 12:01:13 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/r/%{_name}/%{_name}-%{version}.tar.gz
|
2020-03-17 11:08:50 +00:00
|
|
|
BuildRequires: %{python_module importlib-metadata}
|
2019-02-27 08:28:18 +00:00
|
|
|
BuildRequires: %{python_module jaraco.packaging >= 3.2}
|
2017-07-05 11:46:10 +00:00
|
|
|
BuildRequires: %{python_module path.py}
|
2019-02-27 08:28:18 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 3.5}
|
2017-07-05 11:46:10 +00:00
|
|
|
BuildRequires: %{python_module python-dateutil}
|
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-06-07 11:56:52 +00:00
|
|
|
BuildRequires: python3-Sphinx
|
2020-03-17 11:08:50 +00:00
|
|
|
Requires: python-importlib-metadata
|
2017-07-10 07:07:44 +00:00
|
|
|
Requires: python-python-dateutil
|
2016-08-07 12:01:13 +00:00
|
|
|
Requires: python-six
|
|
|
|
BuildArch: noarch
|
2017-07-05 11:46:10 +00:00
|
|
|
%python_subpackages
|
2016-08-07 12:01:13 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
rst.linker is a Sphinx plugin to add links and timestamps to the
|
|
|
|
changelog.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{_name}-%{version}
|
2020-03-27 12:50:29 +00:00
|
|
|
sed -i -e 's/--flake8//' -e 's/--black//' -e 's/--cov//' pytest.ini
|
2016-08-07 12:01:13 +00:00
|
|
|
|
|
|
|
%build
|
2017-07-05 11:46:10 +00:00
|
|
|
%python_build
|
2019-06-07 11:56:52 +00:00
|
|
|
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
2016-08-07 12:01:13 +00:00
|
|
|
|
|
|
|
%install
|
2017-07-05 11:46:10 +00:00
|
|
|
%python_install
|
2019-06-07 11:56:52 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-08-07 12:01:13 +00:00
|
|
|
|
|
|
|
%check
|
2019-06-07 11:56:52 +00:00
|
|
|
%pytest test_all.py
|
2016-08-07 12:01:13 +00:00
|
|
|
|
2017-07-05 11:46:10 +00:00
|
|
|
%files %{python_files}
|
2019-02-27 08:28:18 +00:00
|
|
|
%license LICENSE
|
2016-08-07 12:01:13 +00:00
|
|
|
%doc CHANGES.rst README.rst
|
2017-07-05 11:46:10 +00:00
|
|
|
%doc build/sphinx/html
|
|
|
|
%{python_sitelib}/*
|
2016-08-07 12:01:13 +00:00
|
|
|
|
|
|
|
%changelog
|