forked from pool/python-HyperKitty
Accepting request 1123579 from openSUSE:infrastructure:mailman3
- forgot to use 2 defined variables:
%{django_haystack_min_version}
%{django_extensions_min_version}
- make it easy to run a build without testsuite
osc build --without=testsuite
- refresh gl-mr300-add-opengraph-metadata.patch for version update
- Add upstream patch gl-mr300-add-opengraph-metadata.patch:
* Add OpenGraph Metadata (https://gitlab.com/mailman/hyperkitty/-/merge_requests/300)
- Add upstream patch gl-mr470-introduce-feed-filtering.patch:
* Introduce feed filtering (https://gitlab.com/mailman/hyperkitty/-/merge_requests/470)
OBS-URL: https://build.opensuse.org/request/show/1123579
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-HyperKitty?expand=0&rev=73
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%bcond_without testsuite
|
||||
|
||||
# keep in sync with setup.py
|
||||
%global django_min_version 3.2
|
||||
%global django_max_version 4.3
|
||||
@@ -34,7 +36,6 @@
|
||||
%global flufl_lock_min_version 4.0
|
||||
%global django_q_min_version 1.0.0
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
%global webapps_dir /srv/www/webapps
|
||||
|
||||
@@ -51,6 +52,7 @@
|
||||
|
||||
%global hyperkitty_services hyperkitty-qcluster.service hyperkitty-runjob-daily.service hyperkitty-runjob-daily.timer hyperkitty-runjob-hourly.service hyperkitty-runjob-hourly.timer hyperkitty-runjob-minutely.service hyperkitty-runjob-minutely.timer hyperkitty-runjob-monthly.service hyperkitty-runjob-monthly.timer hyperkitty-runjob-quarter-hourly.service hyperkitty-runjob-quarter-hourly.timer hyperkitty-runjob-weekly.service hyperkitty-runjob-weekly.timer hyperkitty-runjob-yearly.service hyperkitty-runjob-yearly.timer
|
||||
|
||||
# keep in sync with python-mailman-web/python-postorious
|
||||
%if 0%{?suse_version} >= 1550
|
||||
# Newest python supported by mailman is Python 3.11
|
||||
%define pythons python311
|
||||
@@ -90,11 +92,16 @@ Patch0: hyperkitty-settings.patch
|
||||
# PATCH-FIX-UPSTREAM mistune3.patch gl#mailman/hyperkitty#541
|
||||
Patch2: mistune3.patch
|
||||
#
|
||||
BuildRequires: %{python_module Django >= %{django_min_version}}
|
||||
# PATCH-FIX-UPSTREAM gl-mr300-add-opengraph-metadata.patch gl#mailman/hyperkitty#300
|
||||
Patch98: gl-mr300-add-opengraph-metadata.patch
|
||||
# PATCH-FIX-UPSTREAM gl-mr470-introduce-feed-filtering.patch gl#mailman/hyperkitty#470
|
||||
Patch99: gl-mr470-introduce-feed-filtering.patch
|
||||
#
|
||||
BuildRequires: %{python_module Django >= %{django_min_version} with %python-Django < %{django_max_version}}
|
||||
BuildRequires: %{python_module django-compressor >= %{django_compressor_min_version}}
|
||||
BuildRequires: %{python_module Whoosh}
|
||||
BuildRequires: %{python_module django-debug-toolbar >= 2.2}
|
||||
BuildRequires: %{python_module django-extensions >= 1.3.7}
|
||||
BuildRequires: %{python_module django-extensions >= %{django_extensions_min_version}}
|
||||
BuildRequires: %{python_module django-gravatar2 >= %{django_gravatar2_min_version}}
|
||||
BuildRequires: %{python_module isort}
|
||||
BuildRequires: %{python_module mailmanclient >= %{mailmanclient_min_version}}
|
||||
@@ -116,7 +123,7 @@ BuildRequires: python3-packaging
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Whoosh >= 2.5.7}
|
||||
BuildRequires: %{python_module beautifulsoup4 >= 4.3.2}
|
||||
BuildRequires: %{python_module django-haystack >= 2.8.0}
|
||||
BuildRequires: %{python_module django-haystack >= %{django_haystack_min_version}}
|
||||
BuildRequires: %{python_module django-mailman3 >= %{django_mailman3_min_version}}
|
||||
BuildRequires: %{python_module django-q >= %{django_q_min_version}}
|
||||
BuildRequires: %{python_module djangorestframework >= %{djangorestframework_min_version}}
|
||||
@@ -141,7 +148,7 @@ Summary: A web interface to access GNU Mailman v3 archives
|
||||
Requires: (%{mypython}-Django >= %{django_min_version} with %{mypython}-Django < %{django_max_version})
|
||||
Requires: %{mypython}-django-compressor >= %{django_compressor_min_version}
|
||||
Requires: %{mypython}-django-debug-toolbar >= 2.2
|
||||
Requires: %{mypython}-django-extensions >= 1.3.7
|
||||
Requires: %{mypython}-django-extensions >= %{django_extensions_min_version}
|
||||
Requires: %{mypython}-django-gravatar2 >= %{django_gravatar2_min_version}
|
||||
Requires: %{mypython}-django-haystack >= 2.8.0
|
||||
Requires: %{mypython}-django-mailman3 >= %{django_mailman3_min_version}
|
||||
@@ -154,7 +161,7 @@ Requires: %{mypython}-networkx >= %{networkx_min_version}
|
||||
Requires: %{mypython}-python-dateutil >= %{python_dateutil_min_version}
|
||||
Requires: %{mypython}-pytz >= %{pytz_min_version}
|
||||
Requires: %{mypython}-robot-detection >= %{robot_detection_min_version}
|
||||
Requires: %{mypython}-xapian-haystack >= 2.1.0
|
||||
Requires: %{mypython}-xapian-haystack >= %{django_haystack_min_version}
|
||||
%if "%{expand:%%%{mypython}_provides}" == "python3"
|
||||
Provides: python3-%{hyperkitty_pkgname} = %{version}-%{release}
|
||||
%endif
|
||||
@@ -308,10 +315,12 @@ for job in \
|
||||
sed -i "s#@HYPERKITTY_RUNJOB@#${hyperkitty_runjob_name}#g" %{buildroot}%{_unitdir}/hyperkitty-runjob-${job}.timer
|
||||
done
|
||||
|
||||
%if %{with testuite}
|
||||
%check
|
||||
export PYTHONPATH="$(pwd)"
|
||||
export LANG=C.UTF-8
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%pre -n %{hyperkitty_pkgname}-web
|
||||
/usr/sbin/groupadd -r hyperkitty || :
|
||||
|
||||
Reference in New Issue
Block a user