Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > bdcbe20052ce3e0b10648af10b05d5ce > files > 1

python-reno-3.5.0-2.mga9.src.rpm

%global pypi_name reno

# Currently, we cannot generate reno docs from a tarball due to
# https://bugs.launchpad.net/reno/+bug/1520096
%global with_docs 0

%global common_desc \
Reno is a release notes manager for storing \
release notes in a git repository and then building documentation from them. \
\
Managing release notes for a complex project over a long period \
of time with many releases can be time consuming and error prone. Reno \
helps automate the hard parts.

Name:           python-%{pypi_name}
Version:        3.5.0
Release:        %mkrel 2
Summary:        RElease NOtes manager
Group:          Development/Python
License:        ASL 2.0
URL:            https://pypi.org/project/reno
Source0:        %{pypi_source}
BuildArch:      noarch

%description
%{common_desc}

%package -n     python3-%{pypi_name}
Summary:        RElease NOtes manager
Group:          Development/Python
%{?python_provide:%python_provide python3-%{pypi_name}}
Obsoletes:      python2-reno < 2.11.2-2

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(dulwich)
BuildRequires:  python3dist(certifi)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(pbr)
BuildRequires:  python3dist(pyyaml)
BuildRequires:  python3dist(babel)
%if 0%{?with_docs}
BuildRequires:  python3dist(sphinx)
%endif
BuildRequires:  git

Requires:       python3dist(pbr)
Requires:       python3dist(babel)
Requires:       python3dist(dulwich)
Requires:       python3dist(six)
Requires:       git

%description -n python3-%{pypi_name}
%{common_desc}

%package -n python-%{pypi_name}-doc
Summary:        Reno documentation
Group:          Documentation

%description -n python-%{pypi_name}-doc
Documentation for Reno.

%prep
%autosetup -n %{pypi_name}-%{version}

# drop bundled egg-info
rm -rf reno.egg-info/

%build
%py3_build

%install
%py3_install

%if 0%{?with_docs}
# generate html docs
PYTHONPATH=$(pwd) sphinx-build doc/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%endif

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{_bindir}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-*.egg-info

%files -n python-%{pypi_name}-doc
%if 0%{?with_docs}
%doc html
%endif
%license LICENSE



%changelog
* Tue Apr 05 2022 umeabot <umeabot> 3.5.0-2.mga9
+ Revision: 1844822
- Mageia 9 Mass Rebuild

* Sat Feb 19 2022 mrambo3501 <mrambo3501> 3.5.0-1.mga9
+ Revision: 1781522
- version 3.5.0
- rebuild for python-3.10

* Sun Mar 21 2021 daviddavid <daviddavid> 3.3.0-1.mga9
+ Revision: 1706509
- new version: 3.3.0

* Sun Mar 21 2021 daviddavid <daviddavid> 3.2.0-3.mga9
+ Revision: 1706474
- rebuild for python 3.9

* Tue Jan 12 2021 daviddavid <daviddavid> 3.2.0-2.mga8
+ Revision: 1671244
- obsolete old python2-reno

* Sat Nov 28 2020 guillomovitch <guillomovitch> 3.2.0-1.mga8
+ Revision: 1649991
- new version 3.2.0

* Fri Jun 12 2020 kekepower <kekepower> 3.0.1-1.mga8
+ Revision: 1592975
- Update to version 3.0.1

* Sun Feb 16 2020 umeabot <umeabot> 2.11.3-3.mga8
+ Revision: 1533080
- Mageia 8 Mass Rebuild

* Wed Sep 18 2019 tv <tv> 2.11.3-2.mga8
+ Revision: 1443318
- rebuild for python-3.8
- drop python2 subpkg

* Sun Aug 25 2019 wally <wally> 2.11.3-1.mga8
+ Revision: 1431814
- new version 2.11.3

* Tue Jan 08 2019 kekepower <kekepower> 2.11.2-1.mga7
+ Revision: 1352564
- imported package python-reno