%global pypi_name bodhi-server %global src_name bodhi_server %global pypi_version 8.2.0 Name: %{pypi_name} Version: %{pypi_version} Release: 1%{?dist} Summary: Bodhi server License: GPL-2.0-or-later URL: https://github.com/fedora-infra/bodhi Source: %{pypi_source bodhi_server} BuildArch: noarch BuildRequires: make BuildRequires: pyproject-rpm-macros BuildRequires: systemd-rpm-macros BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-pytest-cov BuildRequires: python3-pytest-mock BuildRequires: python3-sphinx BuildRequires: python3-responses BuildRequires: python3-webtest BuildRequires: python3-librepo BuildRequires: python3-createrepo_c BuildRequires: createrepo_c BuildRequires: skopeo BuildRequires: dnf Requires: bodhi-client >= 8.1.0 Requires: python3-bodhi-messages >= 8.1.0 Requires: fedora-messaging Requires: git Requires: httpd Requires: intltool Requires: python3-librepo Requires: python3-mod_wsgi %{?sysusers_requires_compat} Provides: bundled(chrissimpkins-hack-fonts) Provides: bundled(fedora-bootstrap) = 5.3.3-0 Provides: bundled(fontawesome-fonts-web) = 4.6.3 Provides: bundled(js-chart) = 3.8.0 Provides: bundled(js-jquery) = 3.6.0 Provides: bundled(js-messenger) = 1.4.1 Provides: bundled(js-moment) = 2.8.3 Provides: bundled(js-selectize) = 0.15.2 Provides: bundled(js-typeahead.js) = 1.1.1 Provides: bundled(open-sans-fonts) %py_provides python3-bodhi-server %description Bodhi is a modular framework that facilitates the process of publishing updates for a software distribution. %package -n bodhi-composer Summary: Bodhi composer backend Requires: %{py3_dist jinja2} Requires: bodhi-server == %{version}-%{release} Requires: pungi >= 4.1.20 Requires: python3-createrepo_c >= 1.0.0 Requires: skopeo %description -n bodhi-composer The Bodhi composer is the component that publishes Bodhi artifacts to repositories. %prep %autosetup -p1 -n %{src_name}-%{pypi_version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %generate_buildrequires %pyproject_buildrequires # https://docs.fedoraproject.org/en-US/packaging-guidelines/UsersAndGroups/#_dynamic_allocation cat > %{name}.sysusers << EOF #Type Name ID GECOS Home directory Shell u bodhi - "Bodhi Server" %{_datadir}/%{name} /sbin/nologin EOF %build %pyproject_wheel make %{?_smp_mflags} -C docs man %install %pyproject_install %{__mkdir_p} %{buildroot}/var/lib/bodhi %{__mkdir_p} %{buildroot}/var/cache/bodhi %{__mkdir_p} %{buildroot}%{_sysconfdir}/httpd/conf.d %{__mkdir_p} %{buildroot}%{_sysconfdir}/bodhi %{__mkdir_p} %{buildroot}%{_datadir}/bodhi %{__mkdir_p} -m 0755 %{buildroot}/%{_localstatedir}/log/bodhi install -m 644 apache/bodhi.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/bodhi.conf sed -i -s 's/BODHI_VERSION/%{version}/g' %{buildroot}%{_sysconfdir}/httpd/conf.d/bodhi.conf sed -i -s 's/python3.7/python%{python3_version}/g' %{buildroot}%{_sysconfdir}/httpd/conf.d/bodhi.conf install -m 640 production.ini %{buildroot}%{_sysconfdir}/bodhi/production.ini install -m 640 alembic.ini %{buildroot}%{_sysconfdir}/bodhi/alembic.ini install apache/bodhi.wsgi %{buildroot}%{_datadir}/bodhi/bodhi.wsgi install -d %{buildroot}%{_mandir}/man1 install -pm0644 docs/_build/*.1 %{buildroot}%{_mandir}/man1/ install -p -D -m 0644 %{name}.sysusers %{buildroot}%{_sysusersdir}/%{name}.sysusers %check # For some reason the pytest fixture responsible to set the testing # config file url doesn't work in Koji export BODHI_CONFIG=$(pwd)/tests/testing.ini # sanity_checks tests rely on dnf command, but system's dnf cache is not accessible # within koji %{pytest} -v -k 'not sanity_check and not TestSanityCheckRepodata' %pre -n %{pypi_name} %sysusers_create_compat %{name}.sysusers %files -n %{pypi_name} %doc README.rst bodhi/server/migrations/README.rst bodhi/server/static/vendor/fedora-bootstrap/README.rst %{_bindir}/bodhi-approve-testing %{_bindir}/bodhi-check-policies %{_bindir}/bodhi-clean-old-composes %{_bindir}/bodhi-expire-overrides %{_bindir}/bodhi-push %{_bindir}/bodhi-sar %{_bindir}/bodhi-shell %{_bindir}/bodhi-untag-branched %{_bindir}/initialize_bodhi_db %config(noreplace) %{_sysconfdir}/bodhi/alembic.ini %config(noreplace) %{_sysconfdir}/httpd/conf.d/bodhi.conf %dir %{_sysconfdir}/bodhi/ %{python3_sitelib}/bodhi %{python3_sitelib}/bodhi_server-%{pypi_version}.dist-info %{_mandir}/man1/bodhi-*.1* %{_mandir}/man1/initialize_bodhi_db.1* %{_sysusersdir}/%{name}.sysusers %attr(-,bodhi,root) %{_datadir}/bodhi %attr(-,bodhi,bodhi) %config(noreplace) %{_sysconfdir}/bodhi/* %attr(0775,bodhi,bodhi) %{_localstatedir}/cache/bodhi # These excluded files are in the bodhi-composer package so don't include them here. %exclude %{python3_sitelib}/bodhi/server/tasks/composer.py %exclude %{python3_sitelib}/bodhi/server/tasks/__pycache__/composer.* %exclude %{python3_sitelib}/bodhi/server/metadata.py %exclude %{python3_sitelib}/bodhi/server/__pycache__/metadata.* %files -n bodhi-composer %license COPYING %doc README.rst %pycached %{python3_sitelib}/bodhi/server/tasks/composer.py %pycached %{python3_sitelib}/bodhi/server/metadata.py %changelog * Mon Oct 28 2024 Mattia Verga - 8.2.0-1 - Update to 8.2.0 * Fri Oct 04 2024 Dominik Mierzejewski - 8.1.1-3 - Backport upstream patch to build with latest zstandard (0.23.0) * Wed Jul 17 2024 Fedora Release Engineering - 8.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 23 2024 Mattia Verga - 8.1.1-1 - Fix python version hardcoded in apache config - Upstream fix for Python 3.13 (Fedora#2291493) * Tue Jun 18 2024 Python Maint - 8.1.0-2 - Rebuilt for Python 3.13 * Tue Apr 09 2024 Mattia Verga - 8.1.0-1 - Update to 8.1.0 * Tue Jan 23 2024 Fedora Release Engineering - 8.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 8.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 11 2024 Mattia Verga - 8.0.2-1 - Update to 8.0.2 * Sun Dec 24 2023 Mattia Verga - 8.0.1-1 - Update to 8.0.1 * Sat Dec 09 2023 Mattia Verga - 8.0.0-1 - Update to 8.0.0 * Tue Oct 03 2023 Mattia Verga - 7.2.2-1 - Update to 7.2.2 * Sun Jul 30 2023 Mattia Verga - 7.2.1-1 - Update to 7.2.1 * Wed Jul 19 2023 Fedora Release Engineering - 7.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jul 14 2023 Python Maint - 7.2.0-2 - Rebuilt for Python 3.12 * Sun Apr 30 2023 Mattia Verga - 7.2.0-1 - Update to 7.2.0 * Sat Mar 18 2023 Mattia Verga - 7.1.1-1 - Update to 7.1.1 * Sun Mar 12 2023 Mattia Verga - 7.1.0-2 - Do not use i686 koji builders * Sat Mar 11 2023 Mattia Verga - 7.1.0-1 - Update to 7.1.0 * Wed Jan 18 2023 Fedora Release Engineering - 7.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jan 14 2023 Mattia Verga - 7.0.1-1 - Update to 7.0.1 - Use SPDX identifier in license tag * Sat Jan 14 2023 Mattia Verga - 6.0.1-6 - Exclude broken tests in Koji * Thu Jan 12 2023 Mattia Verga - 6.0.1-5 - Rebuilt for Pyramid 2.0 - Relax some dependencies * Mon Aug 22 2022 Debarshi Ray - 6.0.1-4 - Use %%sysusers_requires_compat to match %%sysusers_create_compat * Wed Jul 20 2022 Fedora Release Engineering - 6.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 27 2022 Aurelien Bompard - 6.0.1-2 - Relax the dependency on bodhi-client and bodhi-messages: we only need compatible versions. * Thu Jun 23 2022 Aurelien Bompard - 6.0.1-1 - Update to 6.0.1 * Fri Jun 10 2022 Miro Hrončok - 6.0.0-4 - Relax the release of bodhi-messages and bodhi-client requirement - Fixes: rhbz#2095487 * Fri Jun 10 2022 Aurelien Bompard - 6.0.0-3 - rebuilt * Thu Jun 09 2022 Aurelien Bompard - 6.0.0-2 - Create the bodhi user and group in the RPM * Thu Jun 09 2022 Aurelien Bompard - 6.0.0-1 - Update to 6.0.0. * Wed Feb 23 2022 Ryan Lerch - 5.7.5-0 - Prepare the Bodhi client to be compatible with an OIDC-enabled server. PR#4391. * Mon Jan 24 2022 Lenka Segura - 5.7.4-2 - rebuilt * Sat Apr 24 2021 Kevin Fenzi - 5.7.0-1 - Update to 5.7.0. Fixes rhbz#1949260 * Tue Jan 26 2021 Fedora Release Engineering - 5.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Dec 29 2020 Mattia Verga - 5.6.1-3 - Re-enable docs build - Re-enable tests - Increase required test coverage to 98. * Mon Nov 30 2020 Clément Verna - 5.6.1-1 - Update to 5.6.1 https://github.com/fedora-infra/bodhi/releases/tag/5.6.1 - Remove Graphql from the server. * Sun Sep 27 2020 Kevin Fenzi - 5.5.0-1 - Update to 5.5.0. Fixes bug #1815307 * Sat Aug 01 2020 Fedora Release Engineering - 5.2.2-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 5.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon May 25 2020 Miro Hrončok - 5.2.2-2 - Rebuilt for Python 3.9 * Wed Mar 25 2020 Clément Verna - 5.2.2-1 - Update to 5.2.2 https://github.com/fedora-infra/bodhi/releases/tag/5.2.2 * Mon Mar 23 2020 Clément Verna - 5.2.1-1 - Update to 5.2.1 https://github.com/fedora-infra/bodhi/releases/tag/5.2.1 * Thu Mar 19 2020 Clément Verna - 5.2.0-1 - Update to 5.2.0 https://github.com/fedora-infra/bodhi/releases/tag/5.2.0 * Thu Jan 30 2020 Nils Philippsen - 5.1.1-1 - Update to 5.1.1. https://github.com/fedora-infra/bodhi/releases/tag/5.1.1 * Tue Jan 28 2020 Nils Philippsen - 5.1.0-3 - remove obsolete patch which caused the build to fail - relax test coverage requirements * Tue Jan 28 2020 Fedora Release Engineering - 5.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild