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/
#
%global sname reno
Name: python-reno
Version: 2.5.0
Release: 0
Summary: RElease NOtes manager
License: Apache-2.0
Group: Development/Languages/Python
Url: http://www.openstack.org/
Source0: https://pypi.io/packages/source/r/reno/reno-%{version}.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-Babel >= 2.3.4
BuildRequires: python-PyYAML >= 3.10.0
BuildRequires: python-devel
BuildRequires: python-dulwich >= 0.15.0
BuildRequires: python-oslotest >= 1.10.0
BuildRequires: python-pbr >= 2.0.0
BuildRequires: python-setuptools >= 16.0
BuildRequires: python-testrepository >= 0.0.18
BuildRequires: python-testscenarios >= 0.4
BuildRequires: python-testtools >= 1.4.0
Requires: python-Babel >= 2.3.4
Requires: python-PyYAML >= 3.10.0
Requires: python-dulwich >= 0.15.0
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.
%prep
%autosetup -p 1 -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}
%install
%{py2_install}
%check
git init .
python setup.py test
%files
%license LICENSE
%doc ChangeLog README.rst
%{_bindir}/reno
%{python2_sitelib}/reno
%{python2_sitelib}/*.egg-info
%changelog