%global pypi_name nikola Name: python-%{pypi_name} Version: 8.3.1 Release: 1%{?dist} Summary: A modular, fast, simple, static website and blog generator # Automatically converted from old format: MIT and CC0 and BSD - review is highly recommended. License: LicenseRef-Callaway-MIT AND CC0-1.0 AND LicenseRef-Callaway-BSD URL: https://getnikola.com/ Source0: https://github.com/getnikola/nikola/archive/v%{version}/nikola-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # Sphinx required for documentation BuildRequires: python3dist(sphinx) %global _description %{expand: Nikola is a static site and blog generator using Python. It generates sites with tags, feeds, archives, comments, and more from plain text files. Source can be unformatted, or formatted with reStructuredText or Markdown. It also automatically builds image galleries.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} # nikola carries these python modules bundled ## a modified version to use dateutil instead of pytz Provides: bundled(python3-pytzlocal) ## this is a small module made by Chris Warrick (a Nikola major contributor) Provides: bundled(python3-datecond) = 0.1.6 ## this is a small module made by Chris Warrick Provides: bundled(python3-pygments_better_html) %description -n python3-%{pypi_name} Nikola is a static site and blog generator using Python. It generates sites with tags, feeds, archives, comments, and more from plain text files. Source can be unformatted, or formatted with reStructuredText or Markdown. This package contains the Python implementation of nikola. %package -n python-%{pypi_name}-doc Summary: python-nikola documentation %description -n python-%{pypi_name}-doc Documentation for python-nikola %package -n %{pypi_name} Summary: %{summary} Requires: python3-%{pypi_name} = %{version}-%{release} %description -n %{pypi_name} %_description %{pyproject_extras_subpkg -n python3-%{pypi_name} extras} %prep %autosetup -p1 -n nikola-%{version} sed -i 's|hsluv.*||' requirements-extras.txt # No coverage tests sed -i -e '/coverage/d' -e '/pytest-cov/d' requirements-tests.txt sed -i -e '/--cov/d' setup.cfg %generate_buildrequires %pyproject_buildrequires requirements.txt requirements-extras.txt requirements-tests.txt -r %build %pyproject_wheel # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs/sphinx html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %pyproject_install %pyproject_save_files %{pypi_name} %check %pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE.txt %doc README.rst %files -n python-%{pypi_name}-doc %license LICENSE.txt %doc html %files -n %{pypi_name} %license LICENSE.txt %{_bindir}/nikola %dir %{_datadir}/doc/%{pypi_name} %{_datadir}/doc/%{pypi_name}/*.rst %{_mandir}/man1/nikola.1.gz %changelog * Sat Oct 26 2024 Orion Poplawski - 8.3.1-1 - Update to 8.3.1 (rhbz#2277754) - Do not run coverage tests * Wed Sep 4 2024 Miroslav Suchý - 8.3.0-5 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 8.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jun 17 2024 Python Maint - 8.3.0-3 - Rebuilt for Python 3.13 * Fri Feb 2 2024 José Matos - 8.3.0-2 - Update the spec file to more modern Python guidelines * Fri Feb 2 2024 José Matos - 8.3.0-1 - Update to 8.3.0 * Fri Jan 26 2024 Fedora Release Engineering - 8.2.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 8.2.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 8.2.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jul 14 2023 Adam Williamson - 8.2.4-3 - Improve the plugin template loading patch * Fri Jul 14 2023 Python Maint - 8.2.4-2 - Rebuilt for Python 3.12 * Mon May 01 2023 Sandro Mani - 8.2.4-1 - Update to 8.2.4 * Fri Jan 20 2023 Fedora Release Engineering - 8.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Nov 18 2022 Adam Williamson - 8.2.3-1 - Update to 8.2.3 (#2113070) * Fri Jul 22 2022 Fedora Release Engineering - 8.2.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 21 2022 Adam Williamson - 8.2.2-3 - Backport PR #3631 to fix gist processor for Python 3.11 * Mon Jun 20 2022 Python Maint - 8.2.2-2 - Rebuilt for Python 3.11 * Wed May 11 2022 Charalampos Stratakis - 8.2.2-1 - Update to 8.2.2 Resolves: rhbz#2035816, rhbz#2081902 * Fri Jan 21 2022 Fedora Release Engineering - 8.1.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Sep 28 2021 Sandro Mani - 8.1.3-5 - Use switch to the original ghp-import rather than ghp-import2 * Fri Jul 23 2021 Fedora Release Engineering - 8.1.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jul 6 2021 José Matos - 8.1.3-3 - off by one type (larger than 34 and not larger or equal to 34) * Tue Jul 6 2021 José Matos - 8.1.3-2 - make pygments-2.8 patch conditional on the Fedora versions where it is needed * Tue Jun 29 2021 José Matos - 8.1.3-1 - update to 8.1.3 * Fri Jun 04 2021 Python Maint - 8.1.2-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 8.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Dec 13 2020 José Matos - 8.1.2-1 - update to 8.2.1 * Wed Jul 29 2020 Fedora Release Engineering - 8.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 8 2020 José Matos - 8.1.1-1 - update to 8.1.1 * Fri Jul 3 2020 José Matos - 8.1.0-1 - update to 8.1.0 * Tue May 26 2020 Miro Hrončok - 8.0.4-10 - Rebuilt for Python 3.9 * Sat Mar 21 2020 José Matos - 8.0.4-9 - Claim ownership of nikola documentation directory * Sat Mar 21 2020 José Matos - 8.0.4-8 - change Source0 to a more canonical form regarding github archives * Fri Mar 20 2020 José Matos - 8.0.4-7 - pass all the Requires: and Provides: fields to the python3 subpackage (where they belong) * Fri Mar 20 2020 José Matos - 8.0.4-6 - document the two python modules bundled with nikola * Mon Mar 16 2020 José Matos - 8.0.4-5 - add Obsoletes to nikola for versions < 8 to ensure a clean upgrade path - simplify the testing now that Fedora 31 has the new python-markdown * Fri Mar 6 2020 José Matos - 8.0.4-4 - Require git-core instead of git to support "%%autosetup -S git" * Thu Mar 5 2020 José Matos - 8.0.4-3 - use directly pytest for tests instead of using setup.py - add upstream patch to fix a test * Tue Feb 25 2020 José Matos - 8.0.4-2 - Reenable tests to see if they now work - Add extra requirements to enable plugins * Tue Feb 25 2020 José Matos - 8.0.4-1 - update to 8.0.4 * Sun Jun 9 2019 José Matos - 8.0.2-1 - package resubmitted to Fedora. * Sat Sep 8 2018 José Matos - 7.8.15-2 - make Requires dependencies greater or equal rather than just equal. * Sat Sep 1 2018 José Matos - 7.8.15-1 - initial package. - disable for now the dependency on ws4py because it does not build with python3.7