## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %bcond_without tests # Sphinx-generated HTML documentation is not suitable for packaging; see # https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion. # # We can generate PDF documentation as a lesser substitute. %bcond_without doc_pdf %global forgeurl https://github.com/miguelgrinberg/Flask-Migrate/ Name: python-flask-migrate Version: 3.1.0 %forgemeta Release: %autorelease Summary: SQLAlchemy database migrations for Flask applications using Alembic License: MIT URL: %{forgeurl} Source0: %{forgesource} BuildArch: noarch BuildRequires: python3-devel # Documentation %if %{with doc_pdf} BuildRequires: python3dist(sphinx) BuildRequires: make BuildRequires: python3-sphinx-latex BuildRequires: latexmk %endif %global common_description %{expand: SQLAlchemy database migrations for Flask applications using Alembic.} %description %{common_description} %package -n python3-flask-migrate Summary: %{summary} %description -n python3-flask-migrate %{common_description} %package doc Summary: Documentation for Flask-Migrate %description doc Documentation for Flask-Migrate. %prep %forgeautosetup # Fix shebangs that use /bin/env and unversioned Python %py3_shebang_fix tests/app*.py %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %if %{with doc_pdf} %make_build -C docs latex SPHINXOPTS='%{?_smp_mflags}' %make_build -C docs/_build/latex %endif %install %pyproject_install %pyproject_save_files flask_migrate %check %if %{with tests} env PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitelib}}" \ PYTHONDONTWRITEBYTECODE=1 \ %{python3} -m unittest discover -v %else echo 'Tests are disabled' %endif %files -n python3-flask-migrate -f %{pyproject_files} %files doc %license LICENSE %doc README.md %if %{with doc_pdf} %doc docs/_build/latex/Flask-Migrate.pdf %endif %changelog * Fri Oct 01 2021 Benjamin A. Beasley 3.1.0-5 - Generate PDF instead of HTML Sphinx documentation. * Mon Sep 13 2021 Benjamin A. Beasley 3.1.0-4 - Let pyproject-rpm-macros handle the license file * Sun Sep 12 2021 Benjamin A. Beasley 3.1.0-3 - Drop BR on pyproject-rpm-macros, now implied by python3-devel * Sun Sep 12 2021 Benjamin A. Beasley 3.1.0-2 - Reduce macro indirection in the spec file * Sun Aug 01 2021 Benjamin A. Beasley 3.1.0-1 - Update to 3.1.0 (closes RHBZ#1988814) * Tue Jul 27 2021 Benjamin A. Beasley 3.0.1-4 - Move %generate_buildrequires after %prep to make the spec file easier to follow * Wed Jul 21 2021 Benjamin A. Beasley 3.0.1-3 - Do not package .buildinfo file in HTML docs * Tue Jun 08 2021 Benjamin A. Beasley - 3.0.1-1 - Update to 3.0.1 (fix RHBZ#1590806) - No longer need to chmod files inside package * Fri Jun 04 2021 Python Maint - 2.7.0-3 - Rebuilt for Python 3.10 * Tue May 25 2021 Benjamin A. Beasley - 2.7.0-2 - Use macros for common summary and description - Use pyproject-rpm-macros, including generated BR’s * Mon May 24 2021 Benjamin A. Beasley - 2.7.0-1 - Update to 2.7.0 * Mon May 24 2021 Benjamin A. Beasley - 2.5.3-4 - Re-enable tests on F35/Rawhide since python-flask-sqlalchemy is now updated to 2.5.x. * Sun May 23 2021 Benjamin A. Beasley - 2.5.3-3 - Replace %%modname with a group of name macros and use them in more places - Change URL from PyPI to GitHub, and HTTP to HTTPS - Use %%pypi_source macro - Adjust whitespace to personal preference - Drop manual Requires; EPEL8 and all Fedoras have automatic dependency generation - Drop %%python3_pkgversion and %%python_provide macros, only needed in EPEL - Stop chmod’ing template files in %%prep, as there is no longer anything to fix - Remove executable bits from files in the Python package (currently __init__.py) - Express BR’s as python3dist(…)/%%{py3_dist …} and version them - Allow running the tests; disable them on Fedora 35 until python-flask-sqlalchemy is updated - Build documentation and install it in a new -doc subpackage * Wed Jan 27 2021 Fedora Release Engineering - 2.5.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Sep 29 2020 José Lemos Neto - 2.5.3-1 - Update to version 2.5.3 * Wed Jul 29 2020 Fedora Release Engineering - 2.1.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 2.1.1-9 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 2.1.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Sep 09 2019 Miro Hrončok - 2.1.1-7 - Subpackage python2-flask-migrate has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Mon Aug 19 2019 Miro Hrončok - 2.1.1-6 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 2.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 2.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.1.1-2 - Rebuilt for Python 3.7 * Sun Apr 15 2018 Itamar Reis Peixoto - 2.1.1-1 - new version * Wed Feb 21 2018 Iryna Shcherbina - 2.0.0-8 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 16 2018 Itamar Reis Peixoto - 2.0.0-7 - make spec file compatible with epel7 * Fri Feb 09 2018 Fedora Release Engineering - 2.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Jan 18 2017 Ralph Bean - 2.0.0-3 - Conditionalize deps for EL7. * Mon Dec 19 2016 Miro Hrončok - 2.0.0-2 - Rebuild for Python 3.6 * Wed Aug 10 2016 Ralph Bean - 2.0.0-1 - Initial package for Fedora! \ó/