1 |
# $Id: smeserver-mailman.spec,v 1.8 2022/04/10 21:14:10 jpp Exp $ |
# $Id: smeserver-mailman.spec,v 1.17 2022/07/24 02:33:54 jpp Exp $ |
2 |
# Authority: gordonr |
# Authority: gordonr |
3 |
# Name: Gordon Rowell |
# Name: Gordon Rowell |
4 |
|
|
5 |
# avoid brp bytecompile |
# avoid brp bytecompile |
6 |
%define __os_install_post %{nil} |
%define __os_install_post %{nil} |
7 |
|
%define debug_package %{nil} |
8 |
|
|
9 |
Summary: Mailman configuration for SME server. |
Summary: Mailman configuration for SME server. |
10 |
%define name smeserver-mailman |
%define name smeserver-mailman |
11 |
Name: %{name} |
Name: %{name} |
12 |
%define version 1.5.0 |
%define version 1.5.0 |
13 |
%define release 13 |
%define release 17 |
14 |
Version: %{version} |
Version: %{version} |
15 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
16 |
License: GPL |
License: GPL |
19 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
21 |
Requires: e-smith-base |
Requires: e-smith-base |
22 |
Requires: e-smith-release >= 9.0 |
Requires: e-smith-release >= 10.0 |
23 |
|
Requires: e-smith-apache >= 2.6.0-19 |
24 |
Requires: mailman >= 2.1.9-20.el5.sme |
Requires: mailman >= 2.1.9-20.el5.sme |
25 |
Requires: e-smith-formmagick >= 1.4.0-12 |
Requires: e-smith-formmagick >= 1.4.0-12 |
26 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
27 |
Obsoletes: e-smith-mailman |
Obsoletes: e-smith-mailman |
28 |
Provides: e-smith-mailman |
Provides: e-smith-mailman |
29 |
AutoReqProv: no |
AutoReqProv: no |
30 |
Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch |
#Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch |
31 |
Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch |
Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch |
32 |
Patch2: smeserver-mailman-1.5.0-locale-2021-08-22.patch |
Patch2: smeserver-mailman-1.5.0-locale-2021-08-22.patch |
33 |
Patch3: smeserver-mailman-1.5.0-bz11278-systemd.patch |
Patch3: smeserver-mailman-1.5.0-bz11278-systemd.patch |
34 |
Patch4: smeserver-mailman-1.5.0-bz11278-wrapper.patch |
Patch4: smeserver-mailman-1.5.0-bz11278-wrapper.patch |
35 |
|
Patch5: smeserver-mailman-1.5.0-bz11937.patch |
36 |
|
Patch6: smeserver-mailman-1.5.0-bz11941-checkperms.patch |
37 |
|
Patch7: smeserver-mailman-1.5.0-bz2248-bz2247-enabled-localonly.patch |
38 |
|
Patch8: smeserver-mailman-1.5.0-locale-2022-07-24.patch |
39 |
|
Patch9: smeserver-mailman-1.5.0-bz12015-backup.patch |
40 |
|
Patch10: smeserver-mailman-1.5.0-bz12050-24syntax.patch |
41 |
|
|
42 |
%description |
%description |
43 |
Add Mailman integration to the SME server. |
Add Mailman integration to the SME server. |
44 |
|
|
45 |
%changelog |
%changelog |
46 |
|
* Sat Jul 30 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-17.sme |
47 |
|
- update to httpd 2.4 access syntax [SME: 12050] |
48 |
|
- rebuild for core backup [SME: 12015] |
49 |
|
|
50 |
|
* Sat Jul 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-16.sme |
51 |
|
- apply locale 2022-07-24.patch |
52 |
|
- add to core backup [SME: 12015] |
53 |
|
remove patch only adding to dar in SME 2411 |
54 |
|
- already compatible with httpd 2.4 syntax [SME: 12050] |
55 |
|
|
56 |
|
* Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-15.sme |
57 |
|
- fix permissions as expected by mailman [SME: 11941] |
58 |
|
- make mailman enabled on install [SME: 2248] |
59 |
|
- by default listinfo is public [SME: 2247] |
60 |
|
- by default admin and archives are private [SME: 2247] |
61 |
|
- make access modifiable [SME: 2247] |
62 |
|
|
63 |
|
* Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-14.sme |
64 |
|
- increase master password size to 18 [SME: 11937] |
65 |
|
|
66 |
* Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-13.sme |
* Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-13.sme |
67 |
- add c wrapper with setuid [SME: 11278] |
- add c wrapper with setuid [SME: 11278] |
68 |
|
|
344 |
|
|
345 |
%prep |
%prep |
346 |
%setup |
%setup |
347 |
%patch0 -p1 |
#%patch0 -p1 |
348 |
%patch1 -p1 |
%patch1 -p1 |
349 |
%patch2 -p1 |
%patch2 -p1 |
350 |
%patch3 -p1 |
%patch3 -p1 |
351 |
%patch4 -p1 |
%patch4 -p1 |
352 |
|
%patch5 -p1 |
353 |
|
%patch6 -p1 |
354 |
|
%patch7 -p1 |
355 |
|
%patch8 -p1 |
356 |
|
%patch9 -p1 |
357 |
|
%patch10 -p1 |
358 |
|
|
359 |
#/bin/rm -r root/opt/mailman |
#/bin/rm -r root/opt/mailman |
360 |
|
|
361 |
%build |
%build |
362 |
perl createlinks |
perl createlinks |
363 |
gcc -o root/usr/lib/mailman/bin/smelist smelist.c |
gcc -o root/usr/lib/mailman/bin/smelist smelist.c |
|
rm -rf root/usr/lib/debug/ |
|
|
rm -rf root/usr/lib/debug/usr/lib/mailman/bin/smelist.debug |
|
364 |
|
|
365 |
|
|
366 |
mkdir -p root/usr/lib/mailman/aliases |
mkdir -p root/usr/lib/mailman/aliases |
382 |
--dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \ |
--dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \ |
383 |
--file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \ |
--file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \ |
384 |
--file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \ |
--file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \ |
385 |
--file '/usr/lib/mailman/bin/smelist.pl' 'attr(02755,root,root)' \ |
--file '/usr/lib/mailman/bin/smelist.pl' 'attr(02755,root,mailman)' \ |
386 |
--file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \ |
--file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,mailman,mailman)' \ |
387 |
--dir '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \ |
--dir '/var/spool/mailman/qfiles' 'attr(02775,mailman,mailman)' \ |
388 |
--dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \ |
--dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \ |
389 |
--dir '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \ |
--dir '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \ |
390 |
--dir '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \ |
--dir '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \ |