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