File python-reno.spec of Package python-reno
#
# spec file for package python-reno
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: python-reno
Version: 2.7.0
Release: 0
Summary: RElease NOtes manager
License: Apache-2.0
Group: Development/Languages/Python
Url: http://www.openstack.org/
Source0: https://files.pythonhosted.org/packages/source/r/reno/reno-2.7.0.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-devel
BuildRequires: python2-PyYAML >= 3.10
BuildRequires: python2-Sphinx
BuildRequires: python2-docutils >= 0.11
BuildRequires: python2-dulwich >= 0.15.0
BuildRequires: python2-oslotest >= 3.2.0
BuildRequires: python2-pbr >= 2.0.0
BuildRequires: python2-setuptools >= 16.0
BuildRequires: python2-testrepository >= 0.0.18
BuildRequires: python2-testscenarios >= 0.4
BuildRequires: python2-testtools >= 2.2.0
BuildRequires: python3-PyYAML >= 3.10
BuildRequires: python3-Sphinx
BuildRequires: python3-devel
BuildRequires: python3-docutils >= 0.11
BuildRequires: python3-dulwich >= 0.15.0
BuildRequires: python3-oslotest >= 3.2.0
BuildRequires: python3-pbr >= 2.0.0
BuildRequires: python3-setuptools >= 16.0
BuildRequires: python3-testrepository >= 0.0.18
BuildRequires: python3-testscenarios >= 0.4
BuildRequires: python3-testtools >= 2.2.0
Requires: python-PyYAML >= 3.10
Requires: python-Sphinx
Requires: python-docutils >= 0.11
Requires: python-dulwich >= 0.15.0
BuildArch: noarch
%if 0%{?suse_version}
BuildRequires: git-core
BuildRequires: gpg2
Requires(post): update-alternatives
Requires(postun): update-alternatives
%else
BuildRequires: git
BuildRequires: gnupg
# on RDO, update-alternatives is in chkconfig
Requires(post): chkconfig
Requires(postun): chkconfig
%endif
%python_subpackages
%description
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-2.7.0
%py_req_cleanup
%build
%{python_build}
%install
%{python_install}
%python_clone -a %{buildroot}%{_bindir}/reno
%post
%python_install_alternative reno
%postun
%python_uninstall_alternative reno
%check
%{python_expand rm -rf .testrepository
rm -rf .git
git init .
$python setup.py test
}
%files %{python_files}
%license LICENSE
%python_alternative %{_bindir}/reno
%{python_sitelib}/reno
%{python_sitelib}/*.egg-info
%changelog