2016-02-16 13:09:25 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-reno
|
|
|
|
#
|
2017-08-05 07:06:52 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2016-06-06 11:20:46 +00:00
|
|
|
#
|
2016-02-16 13:09:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
Name: python-reno
|
2017-12-04 22:35:48 +00:00
|
|
|
Version: 2.6.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
|
2016-06-06 11:20:46 +00:00
|
|
|
Url: http://www.openstack.org/
|
2017-12-04 22:35:48 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/r/reno/reno-2.6.0.tar.gz
|
2017-08-05 07:06:52 +00:00
|
|
|
BuildRequires: openstack-macros
|
2016-02-16 13:09:25 +00:00
|
|
|
BuildRequires: python-devel
|
2017-12-04 22:35:48 +00:00
|
|
|
BuildRequires: python2-Babel >= 2.3.4
|
|
|
|
BuildRequires: python2-PyYAML >= 3.10
|
|
|
|
BuildRequires: python2-dulwich >= 0.15.0
|
|
|
|
BuildRequires: python2-oslotest >= 1.10.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-Babel >= 2.3.4
|
|
|
|
BuildRequires: python3-PyYAML >= 3.10
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-dulwich >= 0.15.0
|
|
|
|
BuildRequires: python3-oslotest >= 1.10.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
|
2017-08-05 07:06:52 +00:00
|
|
|
Requires: python-Babel >= 2.3.4
|
2017-12-04 22:35:48 +00:00
|
|
|
Requires: python-PyYAML >= 3.10
|
2017-08-05 07:06:52 +00:00
|
|
|
Requires: python-dulwich >= 0.15.0
|
2016-02-16 13:09:25 +00:00
|
|
|
BuildArch: noarch
|
2017-08-05 07:06:52 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: git-core
|
|
|
|
BuildRequires: gpg2
|
2017-12-04 22:35:48 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2017-08-05 07:06:52 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: gnupg
|
2017-12-04 22:35:48 +00:00
|
|
|
# on RDO, update-alternatives is in chkconfig
|
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(postun): chkconfig
|
2016-02-16 13:09:25 +00:00
|
|
|
%endif
|
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
|
2017-12-04 22:35:48 +00:00
|
|
|
%autosetup -p1 -n reno-2.6.0
|
2017-08-05 07:06:52 +00:00
|
|
|
%py_req_cleanup
|
2016-02-16 13:09:25 +00:00
|
|
|
|
|
|
|
%build
|
2017-12-04 22:35:48 +00:00
|
|
|
%{python_build}
|
2016-02-16 13:09:25 +00:00
|
|
|
|
|
|
|
%install
|
2017-12-04 22:35:48 +00:00
|
|
|
%{python_install}
|
|
|
|
%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
|
|
|
%{python_expand rm -rf .testrepository
|
|
|
|
rm -rf .git
|
2017-08-05 07:06:52 +00:00
|
|
|
git init .
|
2017-12-04 22:35:48 +00:00
|
|
|
$python setup.py test
|
|
|
|
}
|
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
|