/[smecontribs]/rpms/smeserver-mailman/contribs10/smeserver-mailman.spec
ViewVC logotype

Diff of /rpms/smeserver-mailman/contribs10/smeserver-mailman.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by brianr, Fri Jan 1 10:30:06 2021 UTC Revision 1.19 by brianr, Sat Jul 30 17:48:40 2022 UTC
# Line 1  Line 1 
1  # $Id: smeserver-mailman.spec,v 1.8 2016/03/09 08:39:06 unnilennium Exp $  # $Id: smeserver-mailman.spec,v 1.18 2022/07/30 04:23:49 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 7  %define release 18
14  Version: %{version}  Version: %{version}
15  Release: %{release}%{?dist}  Release: %{release}%{?dist}
16  License: GPL  License: GPL
# Line 18  Source: %{name}-%{version}.tar.gz Line 19  Source: %{name}-%{version}.tar.gz
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
33    Patch3: smeserver-mailman-1.5.0-bz11278-systemd.patch
34    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 Brian Read <brianr@bjsystems.co.uk> 1.5.0-18.sme
47    - Re-build and link to latest devtools [SME: 11997]
48    
49    * Sat Jul 30 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-17.sme
50    - update to httpd 2.4 access syntax [SME: 12050]
51    - rebuild for core backup [SME: 12015]
52    
53    * Sat Jul 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-16.sme
54    - apply locale 2022-07-24.patch
55    - add to core backup [SME: 12015]
56      remove patch only adding to dar in SME 2411
57    - already compatible with httpd 2.4 syntax [SME: 12050]
58    
59    * Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-15.sme
60    - Re-build and link to latest devtools permissions as expected by mailman [SME: 11941]
61    - make mailman enabled on install [SME: 2248]
62    - by default listinfo is public [SME: 2247]
63    - by default admin and archives are private [SME: 2247]
64    - make access modifiable [SME: 2247]
65    
66    * Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-14.sme
67    - increase master password size to 18 [SME: 11937]
68    
69    * Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-13.sme
70    - add c wrapper with setuid [SME: 11278]
71    
72    * Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-12.sme
73    - Re-build and link to latest devtools missing service start [SME: 11278]
74      add update event
75    
76    * Tue Mar 15 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-11.sme
77    - Re-build and link to latest devtools www line  should be after apache line in /etc/group [SME: 8056]
78    
79    * Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 1.5.0-10.sme
80    - apply locale 2021-08-22 patch
81    
82    * Thu Jun 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-9.sme
83    - Re-build and link to latest devtools conflicting folders [SME: 11278]
84    
85    * Mon Feb 22 2021 JP Pialasse <tests@pialasse.com> 1.5.0-8.sme
86    - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
87      by assuming the date is correct and changing the weekday.
88      Thu May 21 2008 --> Thu May 15 2008 or Wed May 21 2008 or Thu May 22 2008 or ....
89    - allow build on SME10
90    
91  * Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.5.0-7.sme  * Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.5.0-7.sme
92  - apply locale 2016-03-09 patch  - apply locale 2016-03-09 patch
93    
# Line 50  Add Mailman integration to the SME serve Line 106  Add Mailman integration to the SME serve
106  - Initial release to sme9  - Initial release to sme9
107    
108  * Fri Sep 20 2013 JP Pialasse <tests@pialasse.com> 1.3.0-45.sme  * Fri Sep 20 2013 JP Pialasse <tests@pialasse.com> 1.3.0-45.sme
109  - fix bug [SME: 7787]  - Re-build and link to latest devtools bug [SME: 7787]
110    
111  * Thu Sep 19 2013 JP Pialasse <tests@pialasse.com> 1.3.0-44.sme  * Thu Sep 19 2013 JP Pialasse <tests@pialasse.com> 1.3.0-44.sme
112  - fix case sensitive TRUE to true in smeserver-mailman-1.3.0-restarthang.patch  - Re-build and link to latest devtools case sensitive TRUE to true in smeserver-mailman-1.3.0-restarthang.patch
113  - wrong path to actions folder fixed  - wrong path to actions folder fixed
114  - see [SME: 7845]  - see [SME: 7845]
115    
# Line 61  Add Mailman integration to the SME serve Line 117  Add Mailman integration to the SME serve
117  - apply locale 2013-07-14 patch  - apply locale 2013-07-14 patch
118    
119  * Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.3.0-41.sme  * Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.3.0-41.sme
120  - fix signal-event hang on mailman restart [SME ]  - Re-build and link to latest devtools signal-event hang on mailman restart [SME ]
121  * Mon Jul 01 2013 JP Pialasse <tests@pialasse.com> 1.3.0-40.sme  * Mon Jul 01 2013 JP Pialasse <tests@pialasse.com> 1.3.0-40.sme
122  - fix expanding pyc pyo [SME: 7730]  - Re-build and link to latest devtools expanding pyc pyo [SME: 7730]
123    
124  * Mon Jul 01 2013 JP Pialasse <tests@pialasse.com> 1.3.0-38.sme  * Mon Jul 01 2013 JP Pialasse <tests@pialasse.com> 1.3.0-38.sme
125  - import to sme8 buildsys  - import to sme8 buildsys
126  - fix bootstrap hang [SME: 6693]  - Re-build and link to latest devtools bootstrap hang [SME: 6693]
127    
128  * Tue Mar 20 2012 SME Translation Server <translations@contribs.org> 1.3.0-37.el6  * Tue Mar 20 2012 SME Translation Server <translations@contribs.org> 1.3.0-37.el6
129  - apply locale 2012-03-20 patch  - apply locale 2012-03-20 patch
# Line 114  Add Mailman integration to the SME serve Line 170  Add Mailman integration to the SME serve
170  * Fri Jun 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-23  * Fri Jun 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-23
171  - Apply 27 Jun 2008 locale patch  - Apply 27 Jun 2008 locale patch
172    
173  * Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-22  * Wed May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-22
174      Thu May 21 2008 --> Thu May 15 2008 or Wed May 21 2008 or Thu May 22 2008 or ....
175  - Apply 21 May 2008 locale patch  - Apply 21 May 2008 locale patch
176  - Fixed version number in previous changelog entry  - Fixed version number in previous changelog entry
177    
# Line 290  Add Mailman integration to the SME serve Line 347  Add Mailman integration to the SME serve
347    
348  %prep  %prep
349  %setup  %setup
350  %patch0 -p1  #%patch0 -p1
351  %patch1 -p1  %patch1 -p1
352    %patch2 -p1
353    %patch3 -p1
354    %patch4 -p1
355    %patch5 -p1
356    %patch6 -p1
357    %patch7 -p1
358    %patch8 -p1
359    %patch9 -p1
360    %patch10 -p1
361    
362  #/bin/rm -r root/opt/mailman  #/bin/rm -r root/opt/mailman
363    
364  %build  %build
365  perl createlinks  perl createlinks
366    gcc -o root/usr/lib/mailman/bin/smelist smelist.c
367    
368    
369  mkdir -p root/usr/lib/mailman/aliases  mkdir -p root/usr/lib/mailman/aliases
370    
371  mkdir -p root/opt  mkdir -p root/opt
# Line 308  do Line 376  do
376      mkdir -p root/var/spool/mailman/qfiles/$dir      mkdir -p root/var/spool/mailman/qfiles/$dir
377  done  done
378    
   
379  %install  %install
380  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
381  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
382  rm -f e-smith-%{version}-filelist  rm -f e-smith-%{version}-filelist
383  /sbin/e-smith/genfilelist \  /sbin/e-smith/genfilelist \
     --dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \  
     --dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \  
384      --dir '/var/spool/mailman' 'attr(02775,root,mailman)' \      --dir '/var/spool/mailman' 'attr(02775,root,mailman)' \
385      --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \      --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \
386      --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \      --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \
387      --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \      --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \
388      --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \      --file '/usr/lib/mailman/bin/smelist.pl' 'attr(02755,root,mailman)' \
389      --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \      --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,mailman,mailman)' \
390      --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \      --dir  '/var/spool/mailman/qfiles' 'attr(02775,mailman,mailman)' \
     --dir  '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \  
391      --dir  '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \
392      --dir  '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \
393      --dir  '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \
# Line 335  rm -f e-smith-%{version}-filelist Line 399  rm -f e-smith-%{version}-filelist
399      --dir  '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \
400      $RPM_BUILD_ROOT > %{name}-%{version}-filelist      $RPM_BUILD_ROOT > %{name}-%{version}-filelist
401    
402  # SME8 build to avoid error  sed -i -e '/\/usr\/lib\/mailman$/d ; /\/usr\/lib\/mailman\/bin$/d ; /\/usr\/lib\/mailman\/Mailman$/d ; /\/usr\/lib\/mailman\/Mailman\/MTA$/d ' %{name}-%{version}-filelist
403  #/usr/lib/rpm/brp-python-bytecompile  #those will conflict with mailman rpm on sme10
404  #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc  #    --dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \
405  #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo  #    --dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \
406  #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-delete/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc  #   --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \
407  #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-delete/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo  #  --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \
 #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/bootstrap-console-save/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc  
 #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/bootstrap-console-save/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo  
 #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/mailman-update/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc  
 #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/mailman-update/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo  
 #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/mm_cfg.pyc  
 #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/mm_cfg.pyo  
 #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/MTA/SME.pyc  
 #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/MTA/SME.pyo  
408    
409  # fixe for unwanted listed compiled python files  # SME10 to avoid error
410  cat %{name}-%{version}-filelist |sed '/py[oc]$/d'>%{name}-%{version}-filelist.tmp  #/usr/lib/rpm/brp-python-bytecompile
411    # fix for unwanted listed compiled python files
412    # those pyc and pyo gets added by default by genfilelist, so need to filtering them out when we disable byte compile.
413    #"/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc"
414    #"/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo"
415    #/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
416    cat %{name}-%{version}-filelist |sed -r '/py[oc]"?$/d'>%{name}-%{version}-filelist.tmp
417  cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist  cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist
 #rm -rf %{name}-%{version}-filelist.tmp  
418    
419  %clean  %clean
420  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
# Line 367  rm -rf $RPM_BUILD_ROOT Line 428  rm -rf $RPM_BUILD_ROOT
428      "Mailman user" /usr/lib/mailman /bin/false      "Mailman user" /usr/lib/mailman /bin/false
429    
430  #mailman wants that the apache group appears  before the www group in /etc/group [SME: 8056]  #mailman wants that the apache group appears  before the www group in /etc/group [SME: 8056]
431  TEST=$(grep -P '^www|apache' /etc/group)  TEST=`egrep "^apache:" /etc/group -n| cut -f1 -d:`
432  TEST2='www:x:102:admin  TEST2=`egrep "^www:" /etc/group -n| cut -f1 -d:`
433  apache:x:102:'  if [[ $TEST > $TEST2 ]]; then
   
 if [[ $TEST == $TEST2 ]]; then  
434      WWW=$(sed -n '/^www/p' /etc/group)      WWW=$(sed -n '/^www/p' /etc/group)
435      sed -i '/^www/d' /etc/group      sed -i '/^www/d' /etc/group
436      echo $WWW >> /etc/group      echo $WWW >> /etc/group


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed