## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 10; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname hyperlink %global common_description %{expand: The humble, but powerful, URL runs everything around us. Chances are you've used several just to read this text. Hyperlink is a featureful, pure-Python implementation of the URL, with an emphasis on correctness.} Name: python-%{srcname} Version: 21.0.0 Release: %autorelease Summary: A featureful, immutable, and correct URL for Python # MIT: main library # BSD: searchtools.js, websupport.js and modernizr.min.js # OFL: Inconsolata-Regular.ttf and Inconsolata-Bold.ttf License: MIT and BSD and OFL URL: https://github.com/python-hyper/hyperlink Source0: %url/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sphinx-rtd-theme) %description %{common_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{common_description} %package doc Summary: Documentation for %{name} %description doc %{common_description} This is the documentation package for %{name}. %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel # generate html docs PYTHONPATH=%{pyproject_build_lib} sphinx-build docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %pyproject_install %pyproject_save_files %{srcname} %check %pytest %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %files doc %doc html %license LICENSE %changelog * Fri Jan 20 2023 Fedora Release Engineering 21.0.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering 21.0.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 23 2022 Robert-André Mauchin 21.0.0-8 - Convert to new Python guidelines * Mon Jun 13 2022 Python Maint - 21.0.0-6 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 21.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 21.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 21.0.0-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 21.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 8 14:00:33 CET 2021 Robert-André Mauchin - 21.0.0-1 - Update to 21.0.0 - Close: rhbz#1914100 * Sat Dec 26 14:37:18 CET 2020 Robert-André Mauchin - 20.0.1-2 - Fix FTBFS * Sat Nov 14 20:13:27 CET 2020 Robert-André Mauchin - 20.0.1-1 - Update to 20.0.1 - Close: rhbz#1865772 * Wed Jul 29 2020 Fedora Release Engineering - 19.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun May 24 2020 Miro Hrončok - 19.0.0-7 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 19.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Oct 13 23:21:28 CEST 2019 Robert-André Mauchin - 19.0.0-5 - Drop Python 2 support (#1761205) * Fri Sep 27 2019 Petr Viktorin - 19.0.0-4 - Run tests under Python 2 - Remove unused build dependencies on unittest2 * Sat Aug 17 2019 Miro Hrončok - 19.0.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 19.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Apr 08 15:06:03 CET 2019 Robert-André Mauchin - 19.0.0-1 - Release 19.0.0 * Fri Mar 08 2019 Jeroen van Meeuwen - 18.0.0-6 - Add bcond_without docs * Thu Mar 07 2019 Robert-André Mauchin - 18.0.0-5 - Run tests * Sat Feb 02 2019 Fedora Release Engineering - 18.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 18.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 18.0.0-2 - Rebuilt for Python 3.7 * Mon May 14 2018 Robert-André Mauchin - 18.0.0-1 - Initial package.