File python-reno.spec of Package python-reno
#
# spec file for package python-reno
#
# Copyright (c) 2023 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-reno
Version: 3.5.0
Release: 0
Summary: RElease NOtes manager
License: Apache-2.0
Group: Development/Languages/Python
URL: https://docs.openstack.org/reno
Source0: https://files.pythonhosted.org/packages/source/r/reno/reno-3.5.0.tar.gz
BuildRequires: openstack-macros
BuildRequires: python39-PyYAML
BuildRequires: python39-Sphinx
BuildRequires: python39-docutils
BuildRequires: python39-dulwich
BuildRequires: python39-openstackdocstheme
BuildRequires: python39-oslotest
BuildRequires: python39-pbr
BuildRequires: python39-stestr
BuildRequires: python39-testscenarios
BuildRequires: python39-testtools
BuildArch: noarch
%if 0%{?suse_version}
BuildRequires: git-core
BuildRequires: gpg2
%else
BuildRequires: git
BuildRequires: gnupg
%endif
%description
Reno is a release notes manager for storing release notes in a git
repository and then building documentation from them.
%package -n python39-reno
Summary: RElease NOtes manager
Requires: python39-PyYAML
Requires: python39-Sphinx
Requires: python39-docutils
Requires: python39-dulwich
Requires: python39-pbr
Requires: python39-six
%description -n python39-reno
Reno is a release notes manager for storing release notes in a git
repository and then building documentation from them.
%prep
%autosetup -p1 -n reno-3.5.0
# we don't need hacking
sed -i '/^hacking.*/d' test-requirements.txt
%py_req_cleanup
%build
%{py3_build}
%install
%{py3_install}
%check
rm -rf .git
git init .
%{openstack_stestr_run}
%files -n python39-reno
%license LICENSE
%{_bindir}/reno
%{python3_sitelib}/reno
%{python3_sitelib}/*.egg-info
%changelog