2018-05-18 16:58:41 +02:00
|
|
|
#
|
2021-09-13 08:20:20 +02:00
|
|
|
# spec file
|
2018-05-18 16:58:41 +02:00
|
|
|
#
|
2022-04-12 04:33:18 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-05-18 16:58:41 +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-09-12 19:33:17 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-08-11 11:51:15 +02:00
|
|
|
#
|
2018-05-18 16:58:41 +02:00
|
|
|
|
|
|
|
|
2018-08-11 16:43:55 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
2018-05-18 16:58:41 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-08-11 16:43:55 +02:00
|
|
|
%if "%{flavor}" == "test"
|
2019-09-12 19:33:17 +02:00
|
|
|
%define psuffix -%{flavor}
|
2018-08-11 16:43:55 +02:00
|
|
|
%bcond_without test
|
|
|
|
%else
|
2019-09-12 19:33:17 +02:00
|
|
|
%define psuffix %{nil}
|
2018-08-11 16:43:55 +02:00
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2019-09-12 19:33:17 +02:00
|
|
|
Name: python-releases%{psuffix}
|
2020-03-18 10:11:16 +01:00
|
|
|
Version: 1.6.3
|
2018-05-18 16:58:41 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A Sphinx extension for changelog manipulation
|
2018-08-11 11:51:15 +02:00
|
|
|
License: BSD-2-Clause
|
|
|
|
URL: https://github.com/bitprophet/releases
|
2018-05-18 16:58:41 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/r/releases/releases-%{version}.tar.gz
|
2020-05-26 09:37:36 +02:00
|
|
|
Patch0: semanticversioning.patch
|
2021-09-13 08:20:20 +02:00
|
|
|
Patch1: migrate-to-pytest.patch
|
2022-04-12 04:33:18 +02:00
|
|
|
Patch2: remove-mock.patch
|
2018-05-18 16:58:41 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
2018-08-11 11:51:15 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-05-18 16:58:41 +02:00
|
|
|
Requires: python-Sphinx >= 1.3
|
2018-08-11 16:43:55 +02:00
|
|
|
Requires: python-semantic_version
|
|
|
|
Requires: python-six >= 1.4.1
|
2018-05-18 16:58:41 +02:00
|
|
|
BuildArch: noarch
|
2018-08-11 16:43:55 +02:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module Sphinx >= 1.3}
|
|
|
|
BuildRequires: %{python_module invocations}
|
|
|
|
BuildRequires: %{python_module invoke}
|
2021-12-14 20:09:00 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-08-11 16:43:55 +02:00
|
|
|
BuildRequires: %{python_module semantic_version}
|
|
|
|
BuildRequires: %{python_module six >= 1.4.1}
|
|
|
|
%endif
|
2018-05-18 16:58:41 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Releases is a Python 2+3 compatible `Sphinx <http://sphinx-doc.org>`_ extension
|
|
|
|
designed to help you keep a source control friendly, merge friendly changelog
|
|
|
|
file & turn it into useful, human readable HTML output.
|
|
|
|
|
|
|
|
Specifically:
|
|
|
|
|
|
|
|
* The source format (kept in your Sphinx tree as ``changelog.rst``) is a
|
|
|
|
stream-like timeline that plays well with source control & only requires one
|
|
|
|
entry per change (even for changes that exist in multiple release lines).
|
|
|
|
* The output (when you have the extension installed and run your Sphinx build
|
|
|
|
command) is a traditional looking changelog page with a section for every
|
|
|
|
release; multi-release issues are copied automatically into each release.
|
|
|
|
* By default, feature and support issues are only displayed under feature
|
|
|
|
releases, and bugs are only displayed under bugfix releases. This can be
|
|
|
|
overridden on a per-issue basis.
|
|
|
|
|
|
|
|
%prep
|
2022-04-12 04:33:18 +02:00
|
|
|
%autosetup -p1 -n releases-%{version}
|
2018-05-18 16:58:41 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
2018-08-11 16:43:55 +02:00
|
|
|
%if !%{with test}
|
2018-05-18 16:58:41 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-08-11 16:43:55 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
2021-12-14 20:09:00 +01:00
|
|
|
%pytest
|
2018-08-11 16:43:55 +02:00
|
|
|
%endif
|
2018-05-18 16:58:41 +02:00
|
|
|
|
2019-09-17 12:11:40 +02:00
|
|
|
%if !%{with test}
|
2018-05-18 16:58:41 +02:00
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/*
|
2018-08-11 16:43:55 +02:00
|
|
|
%endif
|
2018-05-18 16:58:41 +02:00
|
|
|
|
|
|
|
%changelog
|