Blame SPECS/python-hyperlink.spec

0121ce
# Created by pyp2rpm-3.3.2
0121ce
%global pypi_name hyperlink
0121ce
0121ce
%global common_description %{expand:
0121ce
The humble, but powerful, URL runs everything around us. Chances are you've
0121ce
used several just to read this text. Hyperlink is a featureful, pure-Python
0121ce
implementation of the URL, with an emphasis on correctness.}
0121ce
0121ce
%bcond_without docs
0121ce
0121ce
Name:           python-%{pypi_name}
0121ce
Version:        21.0.0
0121ce
Release:        2%{?dist}
0121ce
Summary:        A featureful, immutable, and correct URL for Python
0121ce
0121ce
# MIT: main library
0121ce
# BSD: searchtools.js, websupport.js and modernizr.min.js
0121ce
# OFL: Inconsolata-Regular.ttf and Inconsolata-Bold.ttf
0121ce
License:        MIT and BSD and OFL
0121ce
URL:            https://github.com/python-hyper/hyperlink
0121ce
Source0:        %{pypi_source}
0121ce
BuildArch:      noarch
0121ce
0121ce
BuildRequires:  python3-devel
0121ce
BuildRequires:  python3dist(idna) >= 2.9
0121ce
BuildRequires:  python3dist(setuptools)
0121ce
BuildRequires:  python3dist(sphinx)
0121ce
BuildRequires:  python3dist(sphinx-rtd-theme)
0121ce
0121ce
%description
0121ce
%{common_description}
0121ce
0121ce
%package -n     python3-%{pypi_name}
0121ce
Summary:        %{summary}
0121ce
%{?python_provide:%python_provide python3-%{pypi_name}}
0121ce
0121ce
%description -n python3-%{pypi_name}
0121ce
%{common_description}
0121ce
0121ce
%if %{with docs}
0121ce
%package doc
0121ce
Summary:        Documentation for %{name}
0121ce
0121ce
%description doc
0121ce
%{common_description}
0121ce
0121ce
This is the documentation package for hyperlink.
0121ce
%endif
0121ce
# with docs
0121ce
0121ce
%prep
0121ce
%autosetup -n %{pypi_name}-%{version}
0121ce
# Remove bundled egg-info
0121ce
rm -rf %{pypi_name}.egg-info
0121ce
0121ce
%build
0121ce
%py3_build
0121ce
0121ce
%if %{with docs}
0121ce
# generate html docs
0121ce
PYTHONPATH=${PWD} sphinx-build-3 docs html
0121ce
# remove the sphinx-build leftovers
0121ce
rm -rf html/.{doctrees,buildinfo}
0121ce
%endif
0121ce
# with docs
0121ce
0121ce
%install
0121ce
%py3_install
0121ce
0121ce
%check
0121ce
%{__python3} -m unittest
0121ce
0121ce
%files -n python3-%{pypi_name}
0121ce
%license LICENSE
0121ce
%doc README.md
0121ce
%{python3_sitelib}/%{pypi_name}
0121ce
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
0121ce
0121ce
%if %{with docs}
0121ce
%files doc
0121ce
%doc html
0121ce
%license LICENSE
0121ce
%endif
0121ce
# with docs
0121ce
0121ce
%changelog
0121ce
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 21.0.0-2
0121ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0121ce
0121ce
* Fri Jan  8 14:00:33 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 21.0.0-1
0121ce
- Update to 21.0.0
0121ce
- Close: rhbz#1914100
0121ce
0121ce
* Sat Dec 26 14:37:18 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 20.0.1-2
0121ce
- Fix FTBFS
0121ce
0121ce
* Sat Nov 14 20:13:27 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 20.0.1-1
0121ce
- Update to 20.0.1
0121ce
- Close: rhbz#1865772
0121ce
0121ce
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19.0.0-8
0121ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0121ce
0121ce
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 19.0.0-7
0121ce
- Rebuilt for Python 3.9
0121ce
0121ce
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19.0.0-6
0121ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0121ce
0121ce
* Sun Oct 13 23:21:28 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 19.0.0-5
0121ce
- Drop Python 2 support (#1761205)
0121ce
0121ce
* Fri Sep 27 2019 Petr Viktorin <pviktori@redhat.com> - 19.0.0-4
0121ce
- Run tests under Python 2
0121ce
- Remove unused build dependencies on unittest2
0121ce
0121ce
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 19.0.0-3
0121ce
- Rebuilt for Python 3.8
0121ce
0121ce
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 19.0.0-2
0121ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0121ce
0121ce
* Mon Apr 08 15:06:03 CET 2019 Robert-André Mauchin <zebob.m@gmail.com> - 19.0.0-1
0121ce
- Release 19.0.0
0121ce
0121ce
* Fri Mar 08 2019 Jeroen van Meeuwen <vanmeeuwen+fedora@kolabsys.com> - 18.0.0-6
0121ce
- Add bcond_without docs
0121ce
0121ce
* Thu Mar 07 2019 Robert-André Mauchin <zebob.m@gmail.com> - 18.0.0-5
0121ce
- Run tests
0121ce
0121ce
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 18.0.0-4
0121ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0121ce
0121ce
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 18.0.0-3
0121ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0121ce
0121ce
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 18.0.0-2
0121ce
- Rebuilt for Python 3.7
0121ce
0121ce
* Mon May 14 2018 Robert-André Mauchin <zebob.m@gmail.com> - 18.0.0-1
0121ce
- Initial package.