## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 16; 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 Name: oraculum # Don't forget to also change oraculum/__init__.py Version: 0.2.4 Release: %autorelease Summary: Backend and API for Fedora QA Dashboard License: GPLv2+ URL: https://pagure.io/fedora-qa/oraculum Source0: https://releases.pagure.org/fedora-qa/%{name}/%{name}-%{version}.tar.gz # Backport of: # Remove unnecessary mock dependency. # https://pagure.io/fedora-qa/oraculum/c/03bf4dc6f3d77f8d240ffe2d6772885e642181ab?branch=master Patch: remove-python-mock.patch BuildArch: noarch BuildRequires: systemd-rpm-macros BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel Requires: python3-gunicorn Requires: nginx Requires: redis %description Backend and API for Fedora QA Dashboard %generate_buildrequires %pyproject_buildrequires -r -t %prep %autosetup -p1 # https://bugzilla.redhat.com/show_bug.cgi?id=2019108 sed -i 's/python-igraph/igraph/g' requirements.txt sed -i 's/python-igraph/igraph/g' setup.py %build %pyproject_wheel %install %pyproject_install %pyproject_save_files oraculum # Install example configuration to /etc, fix client_secrets.json location install -d -m 755 %{buildroot}%{_sysconfdir}/oraculum install -p -m 644 conf/settings.py.example %{buildroot}%{_sysconfdir}/oraculum/settings.py install -p -m 644 conf/client_secrets.json.example %{buildroot}%{_sysconfdir}/oraculum/client_secrets.json sed -i 's,./conf/client_secrets.json.example,%{_sysconfdir}/oraculum/client_secrets.json,' %{buildroot}%{_sysconfdir}/oraculum/settings.py # Install nginx configuration to /etc install -d -m 755 %{buildroot}%{_sysconfdir}/nginx/conf.d/ install -p -m 644 conf/oraculum.conf.nginx %{buildroot}%{_sysconfdir}/nginx/conf.d/oraculum.conf %check %tox %post %systemd_post oraculum.service %systemd_post oraculum_worker.service %systemd_post oraculum_beat.service %preun %systemd_preun oraculum.service %systemd_preun oraculum_worker.service %systemd_preun oraculum_beat.service %postun %systemd_postun_with_restart oraculum.service %systemd_postun_with_restart oraculum_worker.service %systemd_postun_with_restart oraculum_beat.service %files -f %{pyproject_files} %license LICENSE %doc README.md %{_unitdir}/oraculum.service %{_unitdir}/oraculum_worker.service %{_unitdir}/oraculum_beat.service %{_bindir}/oraculum %dir %{_sysconfdir}/oraculum %dir %{_datadir}/oraculum %{_datadir}/oraculum/* %doc %{_datadir}/docs/oraculum/ %config(noreplace) %{_sysconfdir}/oraculum/settings.py %config(noreplace) %{_sysconfdir}/oraculum/client_secrets.json %config(noreplace) %{_sysconfdir}/nginx/conf.d/oraculum.conf %changelog ## START: Generated by rpmautospec * Thu Jan 25 2024 Fedora Release Engineering - 0.2.4-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.2.4-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 12 2024 Maxwell G - 0.2.4-14 - Remove dependency on python3-mock * Thu Jul 20 2023 Fedora Release Engineering - 0.2.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 10 2023 František Zatloukal - 0.2.4-12 - Rebuild (Fixes RHBZ#2220056) * Mon Jul 10 2023 Python Maint - 0.2.4-10 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 0.2.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.2.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0.2.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jan 07 2022 Frantisek Zatloukal - 0.2.4-6 - Backport fix for FTI ( https://bugzilla.redhat.com/show_bug.cgi?id=2019108 ) * Thu Jul 22 2021 Fedora Release Engineering - 0.2.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.2.4-4 - Rebuilt for Python 3.10 * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 0.2.4-3 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. * Tue Jan 26 2021 Fedora Release Engineering - 0.2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Nov 04 2020 Frantisek Zatloukal - 0.2.4-1 - Release 0.2.4 ## END: Generated by rpmautospec