## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 8; 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 # "can't find tests module" %bcond_with tests %global srcname django-q %global modname django_q %global forgeurl https://github.com/koed00/django-q Name: python-%{srcname} Version: 1.3.9 Release: %autorelease Summary: A multiprocessing distributed task queue for Django License: MIT URL: https://django-q.readthedocs.org/ # pyproject.toml from GH doesn't seem to work Source0: %{pypi_source %{srcname}} # Source0: %%{forgeurl}/archive/v%%{version}/%%{srcname}-%%{version}.tar.gz BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel %if %{with tests} # Test dependencies: # BuildRequires: python3dist(django-redis) %endif %global _description %{expand: A multiprocessing distributed task queue for Django Features: - Multiprocessing worker pool - Asynchronous tasks - Scheduled, cron and repeated tasks - Signed and compressed packages - Failure and success database or cache - Result hooks, groups and chains - Django Admin integration - PaaS compatible with multiple instances - Multi cluster monitor - Redis, Disque, IronMQ, SQS, MongoDB or ORM - Rollbar and Sentry support} %description %{_description} %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} %description -n python%{python3_pkgversion}-%{srcname} %{_description} %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires # project's pyproject.toml caused our script to choke # seems fine when using PyPI %pyproject_buildrequires %build %pyproject_wheel %install # these installs UNKNOWN-0.0.0.dist-info # when using GH tarball %pyproject_install %pyproject_save_files %{modname} %if %{with tests} %check %python3 -m django test -v2 --settings=django_q.tests.settings %endif %files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} %license LICENSE %doc CHANGELOG.md README.rst %changelog * Fri Jul 21 2023 Fedora Release Engineering - 1.3.9-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 1.3.9-7 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.3.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.3.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 20 2022 Python Maint - 1.3.9-4 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.3.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Dec 14 2021 Michel Alexandre Salim - 1.3.9-2 - Drop setuptools BR * Tue Dec 14 2021 Michel Alexandre Salim - 1.3.9-1 - Initial Fedora package