|
|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
|
#
|
|
|
|
|
# spec file for package python-reno
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2024 SUSE LLC
|
|
|
|
|
# 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
|
|
|
|
|
@@ -16,9 +16,9 @@
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
# uses openstack packages: build and depend on default python3 provider only
|
|
|
|
|
%define pythons python3
|
|
|
|
|
%bcond_without libalternatives
|
|
|
|
|
Name: python-reno
|
|
|
|
|
Version: 4.1.0
|
|
|
|
|
Release: 0
|
|
|
|
|
@@ -34,22 +34,24 @@ BuildRequires: %{python_module dulwich >= 0.15.0}
|
|
|
|
|
BuildRequires: %{python_module openstackdocstheme >= 2.2.1}
|
|
|
|
|
BuildRequires: %{python_module oslotest}
|
|
|
|
|
BuildRequires: %{python_module pbr}
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: %{python_module stestr}
|
|
|
|
|
BuildRequires: %{python_module testscenarios}
|
|
|
|
|
BuildRequires: %{python_module testtools}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
|
BuildRequires: alts
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
BuildRequires: gpg2
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: alts
|
|
|
|
|
Requires: python-PyYAML >= 3.10
|
|
|
|
|
Requires: python-Sphinx
|
|
|
|
|
Requires: python-docutils
|
|
|
|
|
Requires: python-dulwich >= 0.15.0
|
|
|
|
|
Requires: python-pbr
|
|
|
|
|
Requires: python-six
|
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
@@ -61,19 +63,16 @@ repository and then building documentation from them.
|
|
|
|
|
%autosetup -n reno-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/reno/tests
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/reno
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%python_install_alternative reno
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative reno
|
|
|
|
|
%pre
|
|
|
|
|
%python_libalternatives_reset_alternative reno
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
rm -rf .git
|
|
|
|
|
@@ -84,6 +83,6 @@ git init .
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%python_alternative %{_bindir}/reno
|
|
|
|
|
%{python_sitelib}/reno
|
|
|
|
|
%{python_sitelib}/*.egg-info
|
|
|
|
|
%{python_sitelib}/reno-%{version}*-info
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
|