## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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: python-mailman-web Version: 0.0.9 Release: %autorelease Summary: Mailman 3 Web interface License: GPL-3.0-or-later URL: https://gitlab.com/mailman/mailman-web Source: %{pypi_source mailman_web} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: This is a Django project that contains default settings and URL settings for Mailman 3 Web interface. It consists of the following sub-projects: - Postorius - Hyperkitty } %description %_description %package -n python3-mailman-web Summary: %{summary} %description -n python3-mailman-web %_description %prep %autosetup -p1 -n mailman_web-%{version} # Remove shebang from Python files for file in mailman_web/manage.py; do sed '1{\@^#!/usr/bin/env python@d}' $file > $file.new && touch -r $file $file.new && mv $file.new $file done %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files mailman_web mkdir -p %{buildroot}%{_sysconfdir}/mailman3 %check export DJANGO_SETTINGS_MODULE=mailman_web.settings %pyproject_check_import -e mailman_web.tests.test_basic -e mailman_web.urls %tox %files -n python3-mailman-web -f %{pyproject_files} %license LICENSE.txt %doc README.rst %dir %{_sysconfdir}/mailman3 %ghost %config(noreplace) %{_sysconfdir}/mailman3/settings.py %{_bindir}/mailman-web %changelog ## START: Generated by rpmautospec * Thu Sep 26 2024 Michel Lind - 0.0.9-1 - Update to version 0.0.9; Fixes: RHBZ#2268401 * Fri Jul 19 2024 Fedora Release Engineering - 0.0.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jun 20 2024 Python Maint - 0.0.6-2 - Rebuilt for Python 3.13 * Mon Feb 26 2024 Michel Lind - 0.0.6-1 - Initial package (rhbz#2266103) ## END: Generated by rpmautospec