!56 Fix install error due to flufl.i18n,flufl.lock upgrade

From: @wk333 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-12-25 03:40:45 +00:00 committed by Gitee
commit 5a3fe6f291
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -7,7 +7,7 @@
Name: mailman
Version: 3.3.8
Release: 1
Release: 2
Epoch: 3
Summary: The GNU mailing list manager
License: GPLv3
@ -81,6 +81,7 @@ BuildRequires: checkpolicy, selinux-policy-devel util-linux
%{?systemd_requires}
BuildRequires: systemd
Requires(pre): shadow-utils
Requires: postfix
%description
This is GNU Mailman, a mailing list management system distributed under the
@ -90,6 +91,8 @@ case second `m'. Any other spelling is incorrect.
%prep
%autosetup -n %{pypi_name}-%{version} -p1
sed -i 's/flufl.i18n/flufl-i18n/g' setup.py
sed -i 's/flufl.lock/flufl-lock/g' setup.py
mkdir SELinux
echo '%{_localstatedir}/lib/mailman3/data(/.*)? gen_context(system_u:object_r:etc_mail_t,s0)' \
> SELinux/mailman3.fc
@ -202,6 +205,9 @@ done
%{_datadir}/selinux/*/mailman3.pp
%changelog
* Mon Dec 25 2023 wangkai <13474090681@163.com> - 3:3.3.8-2
- Fix install error due to flufl.i18n,flufl.lock upgrade
* Wed Sep 13 2023 liyanan <thistleslyn@163.com> - 3:3.3.8-1
- update to 3.3.8