Accepting request 986684 from home:bnavigator:branches:devel:languages:python:mailman
- Use python 3.9 as with the rest of mailman3 OBS-URL: https://build.opensuse.org/request/show/986684 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-mailman-web?expand=0&rev=12
This commit is contained in:
1
python-mailman-web-rpmlintrc
Normal file
1
python-mailman-web-rpmlintrc
Normal file
@@ -0,0 +1 @@
|
||||
addFilter("obsolete-not-provided python3-mailman-web")
|
||||
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 4 15:05:47 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Use python 3.9 as with the rest of mailman3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 26 08:23:04 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
|
||||
@@ -16,9 +16,21 @@
|
||||
#
|
||||
|
||||
|
||||
|
||||
%if 0%{?suse_version} >= 1550
|
||||
# Newest python supported by mailman is Python 3.9 -- https://gitlab.com/mailman/mailman/-/issues/936
|
||||
%define pythons python39
|
||||
%define mypython python39
|
||||
%define __mypython %{__python39}
|
||||
%define mypython_sitelib %{python39_sitelib}
|
||||
%else
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
# mailman is built only for primary python3 flavor
|
||||
%define pythons python3
|
||||
%define mypython python3
|
||||
%define __mypython %{__python3}
|
||||
%define mypython_sitelib %{python3_sitelib}
|
||||
%endif
|
||||
|
||||
Name: python-mailman-web
|
||||
Version: 0.0.5
|
||||
Release: 0
|
||||
@@ -26,38 +38,42 @@ Summary: Mailman 3 Web interface
|
||||
License: GPL-3.0-only
|
||||
URL: https://gitlab.com/mailman/mailman-web
|
||||
Source: https://files.pythonhosted.org/packages/source/m/mailman-web/mailman-web-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
Source99: python-mailman-web-rpmlintrc
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Django
|
||||
Requires: python-HyperKitty
|
||||
Requires: python-Whoosh
|
||||
Requires: python-django-settings-toml >= 0.0.3
|
||||
Requires: python-postorius
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun):update-alternatives
|
||||
%if 0%{?suse_version} >= 1550
|
||||
# use the real python3 primary for rpm pythondistdeps.py
|
||||
BuildRequires: python3-packaging
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Django}
|
||||
BuildRequires: %{python_module HyperKitty}
|
||||
BuildRequires: %{python_module Whoosh}
|
||||
BuildRequires: %{python_module django-settings-toml >= 0.0.3}
|
||||
BuildRequires: %{python_module postorius}
|
||||
BuildRequires: postorius
|
||||
BuildRequires: HyperKitty
|
||||
# /SECTION
|
||||
%if 0%{python3_version_nodots} == 38
|
||||
# help in replacing any previously installed multiflavor package back to the primary python3 package
|
||||
Provides: python38-mailman-web = %{version}-%{release}
|
||||
Obsoletes: python38-mailman-web < %{version}-%{release}
|
||||
%endif
|
||||
Requires: %{mypython}-Django
|
||||
Requires: %{mypython}-Whoosh
|
||||
Requires: %{mypython}-django-settings-toml >= 0.0.3
|
||||
Requires: postorius
|
||||
Requires: HyperKitty
|
||||
Obsoletes: python3-mailman-web < %{version}-%{release}
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Mailman 3 Web interface.
|
||||
This is a Django project that contains default settings and url settings for
|
||||
the Mailman 3 Web Interface. It consists of the following sub-projects:
|
||||
|
||||
Postorius
|
||||
Hyperkitty
|
||||
|
||||
%prep
|
||||
%setup -q -n mailman-web-%{version}
|
||||
# remove shebang. it is installad without +x bits and supposed to be called with /usr/bin/python3.x manage.py
|
||||
sed -i '1{/env python/d}' mailman_web/manage.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -65,21 +81,15 @@ Mailman 3 Web interface.
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/mailman-web
|
||||
|
||||
%check
|
||||
# no upstream testsuite
|
||||
|
||||
%post
|
||||
%python_install_alternative mailman-web
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative mailman-web
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst docs/*.rst docs/*.toml
|
||||
%license LICENSE.txt
|
||||
%{python_sitelib}/*
|
||||
%python_alternative %{_bindir}/mailman-web
|
||||
%{python_sitelib}/mailman_web
|
||||
%{python_sitelib}/mailman_web-%{version}*-info
|
||||
%{_bindir}/mailman-web
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user