%global srcname epub %global commit d6db4535273d3ad2193dcb6fe090f90a1d3a3b78 %global shortcommit %(c=%{commit}; echo ${c:0:12}) Name: python-%{srcname} Version: 0.5.2 Release: 36%{?dist} Summary: Python library for reading EPUB files License: LGPL-3.0-or-later URL: http://epub.exirel.me Source0: https://bitbucket.org/exirel/%{srcname}/get/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz # This patch adds a test suite to the setup() call Patch0: %{name}-test-suite.patch # Skip python 3.8 incompatible tests Patch1: python-38-test-suite.patch BuildArch: noarch BuildRequires: make # Temporary fix to handle the python2 issue and still support epel7 %if 0%{?fedora} BuildRequires: python3-sphinx %else BuildRequires: python3-sphinx %endif BuildRequires: python3-devel BuildRequires: python3-setuptools %description Epub is a Python library for reading e-book files in the EPUB (version 2) format. %package -n python3-%{srcname} Summary: Python library for reading EPUB files %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} Epub is a Python library for reading e-book files in the EPUB (version 2) format. %package doc Summary: Documentation for %{name} %description doc This package contains the documentation for %{name}. %prep %autosetup -p1 -n exirel-%{srcname}-%{shortcommit} touch test/__init__.py %build %py3_build %make_build -C docs html rm -f docs/_build/html/.buildinfo %install %py3_install %check %{__python3} setup.py test %files -n python3-%{srcname} %license LICENSE.txt %doc README.txt %{python3_sitelib}/* %files doc %license LICENSE.txt %doc docs/_build/html/* %changelog * Fri Jul 19 2024 Fedora Release Engineering - 0.5.2-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 17 2024 Miroslav Suchý - 0.5.2-35 - convert license to SPDX * Fri Jun 07 2024 Python Maint - 0.5.2-34 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.5.2-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.5.2-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.5.2-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 0.5.2-30 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.5.2-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.5.2-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.5.2-27 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.5.2-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 0.5.2-25 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.5.2-24 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.5.2-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.5.2-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.5.2-21 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.5.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Sep 06 2019 Athos Ribeiro - 0.5.2-19 - Skip python 3.8 incompatible tests * Mon Aug 19 2019 Miro Hrončok - 0.5.2-18 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.5.2-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.5.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek - 0.5.2-15 - Subpackage python2-epub has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 0.5.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.5.2-13 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.5.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.5.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jul 06 2017 Athos Ribeiro - 0.5.2-10 - Add conditionals for python2-* BRs to support epel7 * Thu Jul 06 2017 Athos Ribeiro - 0.5.2-9 - Use python2-* Requires and BR instead of python-* * Sat Feb 11 2017 Fedora Release Engineering - 0.5.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Jan 09 2017 Filip Szymański - 0.5.2-7 - Remove %%{hgtag} macro - Add missing license file to -doc subpackage * Mon Dec 19 2016 Miro Hrončok - 0.5.2-6 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.5.2-5 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Sat Feb 27 2016 Filip Szymański - 0.5.2-4 - Add EPEL7 compatibility - Rename macros * Tue Feb 23 2016 Filip Szymański - 0.5.2-3 - Change source code URL - Add setup.py patch - Add %%check section - Move HTML documentation to -doc subpackage * Mon Feb 22 2016 Filip Szymański - 0.5.2-2 - Create python2- subpackage - Add HTML documentation * Sat Jan 16 2016 Filip Szymański - 0.5.2-1 - Initial RPM release