2016-02-16 13:09:25 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-reno
|
|
|
|
#
|
2021-10-16 19:21:46 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2016-02-16 13:09:25 +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-06-13 04:33:05 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-06-06 11:20:46 +00:00
|
|
|
#
|
2016-02-16 13:09:25 +00:00
|
|
|
|
|
|
|
|
2020-03-27 20:20:29 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-12-14 21:33:41 +00:00
|
|
|
# uses openstack packages: build and depend on default python3 provider only
|
|
|
|
%define pythons python3
|
2016-02-16 13:09:25 +00:00
|
|
|
Name: python-reno
|
2021-10-16 19:21:46 +00:00
|
|
|
Version: 3.5.0
|
2016-02-16 13:09:25 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: RElease NOtes manager
|
2016-06-06 11:20:46 +00:00
|
|
|
License: Apache-2.0
|
2016-02-16 13:09:25 +00:00
|
|
|
Group: Development/Languages/Python
|
2020-03-27 20:20:29 +00:00
|
|
|
URL: https://www.openstack.org/
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/r/reno/reno-%{version}.tar.gz
|
2021-10-16 19:21:46 +00:00
|
|
|
BuildRequires: %{python_module PyYAML >= 5.3.1}
|
2020-03-27 20:20:29 +00:00
|
|
|
BuildRequires: %{python_module Sphinx}
|
|
|
|
BuildRequires: %{python_module docutils}
|
2020-04-15 18:24:47 +00:00
|
|
|
BuildRequires: %{python_module dulwich >= 0.15.0}
|
2021-10-16 19:21:46 +00:00
|
|
|
BuildRequires: %{python_module openstackdocstheme >= 2.2.1}
|
2020-03-27 20:20:29 +00:00
|
|
|
BuildRequires: %{python_module oslotest}
|
|
|
|
BuildRequires: %{python_module pbr}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module stestr}
|
|
|
|
BuildRequires: %{python_module testscenarios}
|
|
|
|
BuildRequires: %{python_module testtools}
|
2020-04-15 18:24:47 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: git-core
|
|
|
|
BuildRequires: gpg2
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-03-27 20:20:29 +00:00
|
|
|
Requires: python-PyYAML >= 3.10
|
2018-02-26 07:05:26 +00:00
|
|
|
Requires: python-Sphinx
|
2019-06-13 04:33:05 +00:00
|
|
|
Requires: python-docutils
|
2020-03-27 20:20:29 +00:00
|
|
|
Requires: python-dulwich >= 0.15.0
|
2019-06-13 04:33:05 +00:00
|
|
|
Requires: python-pbr
|
|
|
|
Requires: python-six
|
2017-12-04 22:35:48 +00:00
|
|
|
Requires(post): update-alternatives
|
2021-10-16 19:21:46 +00:00
|
|
|
Requires(postun):update-alternatives
|
2020-04-15 18:24:47 +00:00
|
|
|
BuildArch: noarch
|
2017-12-04 22:35:48 +00:00
|
|
|
%python_subpackages
|
2016-02-16 13:09:25 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Reno is a release notes manager for storing release notes in a git
|
|
|
|
repository and then building documentation from them.
|
|
|
|
|
|
|
|
%prep
|
2020-03-27 20:20:29 +00:00
|
|
|
%autosetup -n reno-%{version}
|
2016-02-16 13:09:25 +00:00
|
|
|
|
|
|
|
%build
|
2020-03-27 20:20:29 +00:00
|
|
|
%python_build
|
2016-02-16 13:09:25 +00:00
|
|
|
|
|
|
|
%install
|
2020-03-27 20:20:29 +00:00
|
|
|
%python_install
|
2020-04-15 18:24:47 +00:00
|
|
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/reno/tests
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-12-04 22:35:48 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/reno
|
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative reno
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative reno
|
2016-02-16 13:09:25 +00:00
|
|
|
|
|
|
|
%check
|
2017-12-04 22:35:48 +00:00
|
|
|
rm -rf .git
|
2017-08-05 07:06:52 +00:00
|
|
|
git init .
|
2019-06-13 04:33:05 +00:00
|
|
|
%python_exec -m stestr.cli run
|
2016-02-16 13:09:25 +00:00
|
|
|
|
2017-12-04 22:35:48 +00:00
|
|
|
%files %{python_files}
|
2017-08-05 07:06:52 +00:00
|
|
|
%license LICENSE
|
2017-12-04 22:35:48 +00:00
|
|
|
%python_alternative %{_bindir}/reno
|
|
|
|
%{python_sitelib}/reno
|
|
|
|
%{python_sitelib}/*.egg-info
|
2016-02-16 13:09:25 +00:00
|
|
|
|
|
|
|
%changelog
|