|
|
36410ce |
%global pypi_name reno
|
|
|
36410ce |
|
|
|
36410ce |
%if 0%{?fedora}
|
|
|
36410ce |
%global with_python3 1
|
|
|
c5cf3ef |
%endif
|
|
|
a175fe5 |
|
|
|
a175fe5 |
# Only reason to choose 24 is that that's what was in development when we made
|
|
|
a175fe5 |
# the switch for this package. Fedora Policy was to have made this switch for
|
|
|
a175fe5 |
# Fedora 22.
|
|
|
a175fe5 |
%if 0%{?fedora} >= 24
|
|
|
a175fe5 |
%global default_python 3
|
|
|
a175fe5 |
%else
|
|
|
a175fe5 |
%global default_python 2
|
|
|
a175fe5 |
%endif
|
|
|
a175fe5 |
|
|
|
36410ce |
|
|
|
36410ce |
Name: python-%{pypi_name}
|
|
|
b8a4cb2 |
Version: 1.6.2
|
|
|
b923d81 |
Release: 2%{?dist}
|
|
|
36410ce |
Summary: Release NOtes manager
|
|
|
36410ce |
|
|
|
36410ce |
License: ASL 2.0
|
|
|
36410ce |
URL: http://www.openstack.org/
|
|
|
36410ce |
Source0: https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
cac6c7c |
|
|
|
36410ce |
BuildArch: noarch
|
|
|
36410ce |
|
|
|
36410ce |
%description
|
|
|
cac6c7c |
Reno is a release notes manager for storing release notes in a git repository
|
|
|
cac6c7c |
and then building documentation from them.
|
|
|
36410ce |
|
|
|
36410ce |
Managing release notes for a complex project over a long period
|
|
|
36410ce |
of time with many releases can be time consuming and error prone. Reno
|
|
|
36410ce |
helps automate the hard parts.
|
|
|
36410ce |
|
|
|
36410ce |
%package -n python2-%{pypi_name}
|
|
|
cac6c7c |
Summary: Release Notes Manager
|
|
|
36410ce |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
36410ce |
|
|
|
cac6c7c |
BuildRequires: git
|
|
|
36410ce |
BuildRequires: python2-devel
|
|
|
36410ce |
BuildRequires: python-setuptools
|
|
|
36410ce |
BuildRequires: python-pbr
|
|
|
36410ce |
BuildRequires: python-babel
|
|
|
36410ce |
BuildRequires: python-sphinx
|
|
|
36410ce |
BuildRequires: python-oslo-sphinx
|
|
|
cac6c7c |
BuildRequires: PyYAML
|
|
|
36410ce |
|
|
|
cac6c7c |
Requires: python-pbr
|
|
|
cac6c7c |
Requires: python-babel
|
|
|
cac6c7c |
Requires: PyYAML
|
|
|
36410ce |
|
|
|
36410ce |
%description -n python2-%{pypi_name}
|
|
|
cac6c7c |
Reno is a release notes manager for storing release notes in a git repository
|
|
|
cac6c7c |
and then building documentation from them.
|
|
|
36410ce |
|
|
|
36410ce |
Managing release notes for a complex project over a long period
|
|
|
36410ce |
of time with many releases can be time consuming and error prone. Reno
|
|
|
36410ce |
helps automate the hard parts.
|
|
|
36410ce |
|
|
|
c5cf3ef |
%if 0%{?with_python3}
|
|
|
36410ce |
%package -n python3-%{pypi_name}
|
|
|
4b24990 |
Summary: Release Notes manager
|
|
|
36410ce |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
36410ce |
|
|
|
36410ce |
BuildRequires: python3-devel
|
|
|
36410ce |
BuildRequires: python3-setuptools
|
|
|
36410ce |
BuildRequires: python3-pbr
|
|
|
36410ce |
BuildRequires: python3-babel
|
|
|
36410ce |
BuildRequires: python3-sphinx
|
|
|
36410ce |
BuildRequires: python3-oslo-sphinx
|
|
|
36410ce |
BuildRequires: python3-PyYAML
|
|
|
36410ce |
|
|
|
cac6c7c |
Requires: python3-pbr
|
|
|
cac6c7c |
Requires: python3-babel
|
|
|
cac6c7c |
Requires: python3-PyYAML
|
|
|
36410ce |
|
|
|
36410ce |
%description -n python3-%{pypi_name}
|
|
|
cac6c7c |
Reno is a release notes manager for storing release notes in a git repository
|
|
|
cac6c7c |
and then building documentation from them.
|
|
|
36410ce |
|
|
|
36410ce |
Managing release notes for a complex project over a long period
|
|
|
36410ce |
of time with many releases can be time consuming and error prone. Reno
|
|
|
36410ce |
helps automate the hard parts.
|
|
|
36410ce |
|
|
|
36410ce |
%endif
|
|
|
36410ce |
|
|
|
36410ce |
%package -n python-%{pypi_name}-doc
|
|
|
cac6c7c |
Summary: Reno documentation
|
|
|
36410ce |
%description -n python-%{pypi_name}-doc
|
|
|
cac6c7c |
Documentation for Reno
|
|
|
36410ce |
|
|
|
36410ce |
%prep
|
|
|
c5cf3ef |
# FIXME: workaround required to build reno
|
|
|
cac6c7c |
%autosetup -n %{pypi_name}-%{version} -S git
|
|
|
36410ce |
|
|
|
36410ce |
%build
|
|
|
36410ce |
%py2_build
|
|
|
c5cf3ef |
%if 0%{?with_python3}
|
|
|
36410ce |
%py3_build
|
|
|
36410ce |
%endif
|
|
|
36410ce |
|
|
|
36410ce |
%install
|
|
|
c5cf3ef |
%py2_install
|
|
|
c5cf3ef |
mv %{buildroot}%{_bindir}/%{pypi_name} %{buildroot}%{_bindir}/python2-%{pypi_name}
|
|
|
c5cf3ef |
|
|
|
c5cf3ef |
%if 0%{?with_python3}
|
|
|
36410ce |
%py3_install
|
|
|
c5cf3ef |
mv %{buildroot}%{_bindir}/%{pypi_name} %{buildroot}%{_bindir}/python3-%{pypi_name}
|
|
|
a175fe5 |
%endif
|
|
|
36410ce |
|
|
|
c5cf3ef |
%if 0%{?default_python} >= 3
|
|
|
c5cf3ef |
ln -s %{_bindir}/python3-%{pypi_name} %{buildroot}%{_bindir}/%{pypi_name}
|
|
|
c5cf3ef |
%else
|
|
|
c5cf3ef |
ln -s %{_bindir}/python2-%{pypi_name} %{buildroot}%{_bindir}/%{pypi_name}
|
|
|
a175fe5 |
%endif
|
|
|
a175fe5 |
|
|
|
cac6c7c |
# generate html docs
|
|
|
c5cf3ef |
%{__python2} setup.py build_sphinx
|
|
|
cac6c7c |
rm -rf doc/build/html/.{doctrees,buildinfo} doc/build/html/objects.inv
|
|
|
36410ce |
|
|
|
36410ce |
%files -n python2-%{pypi_name}
|
|
|
36410ce |
%doc doc/source/readme.rst README.rst
|
|
|
36410ce |
%license LICENSE
|
|
|
c5cf3ef |
%if 0%{?default_python} <= 2
|
|
|
36410ce |
%{_bindir}/%{pypi_name}
|
|
|
a175fe5 |
%endif
|
|
|
c5cf3ef |
%{_bindir}/python2-%{pypi_name}
|
|
|
36410ce |
%{python2_sitelib}/%{pypi_name}
|
|
|
36410ce |
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
36410ce |
|
|
|
c5cf3ef |
%if 0%{?with_python3}
|
|
|
36410ce |
%files -n python3-%{pypi_name}
|
|
|
36410ce |
%doc doc/source/readme.rst README.rst
|
|
|
36410ce |
%license LICENSE
|
|
|
c5cf3ef |
%if 0%{?default_python} >= 3
|
|
|
36410ce |
%{_bindir}/%{pypi_name}
|
|
|
a175fe5 |
%endif
|
|
|
c5cf3ef |
%{_bindir}/python3-%{pypi_name}
|
|
|
36410ce |
%{python3_sitelib}/%{pypi_name}
|
|
|
36410ce |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
36410ce |
%endif
|
|
|
36410ce |
|
|
|
36410ce |
%files -n python-%{pypi_name}-doc
|
|
|
cac6c7c |
%doc doc/build/html
|
|
|
36410ce |
%license LICENSE
|
|
|
36410ce |
|
|
|
36410ce |
%changelog
|
|
|
b923d81 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-2
|
|
|
b923d81 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
b923d81 |
|
|
|
b8a4cb2 |
* Thu Apr 07 2016 Haikel Guemar <hguemar@fedoraproject.org> 1.6.2-1
|
|
|
b8a4cb2 |
- Update to 1.6.2
|
|
|
b8a4cb2 |
|
|
|
e1037e8 |
* Tue Mar 15 2016 Paul Belanger <pabelanger@redhat.com> - 1.6.0-1
|
|
|
e1037e8 |
- New upstream 1.6.0 release
|
|
|
e1037e8 |
|
|
|
4b24990 |
* Thu Feb 18 2016 Paul Belanger <pabelanger@redhat.com> - 1.5.0-1
|
|
|
4b24990 |
- New upstream 1.5.0 release
|
|
|
4b24990 |
- Fix rpmlint spelling-error warnings
|
|
|
4b24990 |
|
|
|
43a05b3 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
|
|
|
43a05b3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
43a05b3 |
|
|
|
c5cf3ef |
* Sun Jan 24 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 1.3.1-2
|
|
|
c5cf3ef |
- Simplify macros and reno CLI generation
|
|
|
c5cf3ef |
- Fix build on EL7
|
|
|
c5cf3ef |
|
|
|
cac6c7c |
* Fri Jan 22 2016 Paul Belanger <pabelanger@redhat.com> 1.3.1-1
|
|
|
cac6c7c |
- New upstream 1.3.1 release
|
|
|
cac6c7c |
- Switch to setup.py build_sphinx to keep inline with upstream documentation
|
|
|
cac6c7c |
builds
|
|
|
cac6c7c |
- Various rpmlint fixes
|
|
|
cac6c7c |
|
|
|
2320606 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
|
|
|
2320606 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
2320606 |
|
|
|
a175fe5 |
* Thu Nov 5 2015 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1.0-3
|
|
|
a175fe5 |
- Ship the reno script against python3 to comply with the python guidelines and
|
|
|
a175fe5 |
solve the issue of the python3 package depending on /usr/bin/python2
|
|
|
a175fe5 |
|
|
|
36410ce |
* Wed Sep 30 2015 Chandan Kumar <chkumar246@gmail.com> -0.1.0-2
|
|
|
36410ce |
- Some cosmetic changes in spec file
|
|
|
36410ce |
|
|
|
36410ce |
* Wed Sep 30 2015 Chandan Kumar <chkumar246@gmail.com> - 0.1.0-1
|
|
|
36410ce |
- Initial Package
|