/[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.5 by terryfage, Mon Aug 23 00:10:40 2021 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.4 2021/06/03 07:49:13 jpp Exp $
2  # Authority: gordonr  # Authority: gordonr
3  # Name: Gordon Rowell  # Name: Gordon Rowell
4    
# Line 9  Summary: Mailman configuration for SME s Line 9  Summary: Mailman configuration for SME s
9  %define name smeserver-mailman  %define name smeserver-mailman
10  Name: %{name}  Name: %{name}
11  %define version 1.5.0  %define version 1.5.0
12  %define release 7  %define release 10
13  Version: %{version}  Version: %{version}
14  Release: %{release}%{?dist}  Release: %{release}%{?dist}
15  License: GPL  License: GPL
# Line 27  Provides: e-smith-mailman Line 27  Provides: e-smith-mailman
27  AutoReqProv: no  AutoReqProv: no
28  Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch  Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch
29  Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch  Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch
30    Patch2: smeserver-mailman-1.5.0-locale-2021-08-22.patch
31    
32  %description  %description
33  Add Mailman integration to the SME server.  Add Mailman integration to the SME server.
34    
35  %changelog  %changelog
36    * Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 1.5.0-10.sme
37    - apply locale 2021-08-22 patch
38    
39    * Thu Jun 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-9.sme
40    - fix conflicting folders [SME: 11278]
41    
42    * Mon Feb 22 2021 JP Pialasse <tests@pialasse.com> 1.5.0-8.sme
43    - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
44      by assuming the date is correct and changing the weekday.
45      Thu May 21 2008 --> Thu May 15 2008 or Wed May 21 2008 or Thu May 22 2008 or ....
46    - allow build on SME10
47    
48  * 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
49  - apply locale 2016-03-09 patch  - apply locale 2016-03-09 patch
50    
# Line 114  Add Mailman integration to the SME serve Line 127  Add Mailman integration to the SME serve
127  * 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
128  - Apply 27 Jun 2008 locale patch  - Apply 27 Jun 2008 locale patch
129    
130  * 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
131      Thu May 21 2008 --> Thu May 15 2008 or Wed May 21 2008 or Thu May 22 2008 or ....
132  - Apply 21 May 2008 locale patch  - Apply 21 May 2008 locale patch
133  - Fixed version number in previous changelog entry  - Fixed version number in previous changelog entry
134    
# Line 292  Add Mailman integration to the SME serve Line 306  Add Mailman integration to the SME serve
306  %setup  %setup
307  %patch0 -p1  %patch0 -p1
308  %patch1 -p1  %patch1 -p1
309    %patch2 -p1
310    
311  #/bin/rm -r root/opt/mailman  #/bin/rm -r root/opt/mailman
312    
# Line 308  do Line 322  do
322      mkdir -p root/var/spool/mailman/qfiles/$dir      mkdir -p root/var/spool/mailman/qfiles/$dir
323  done  done
324    
   
325  %install  %install
326  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
327  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
328  rm -f e-smith-%{version}-filelist  rm -f e-smith-%{version}-filelist
329  /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)' \  
330      --dir '/var/spool/mailman' 'attr(02775,root,mailman)' \      --dir '/var/spool/mailman' 'attr(02775,root,mailman)' \
331      --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \      --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \
332      --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \      --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \
333      --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \      --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \
     --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \  
     --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \  
334      --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \      --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \
335      --dir  '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \
336      --dir  '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \
# Line 335  rm -f e-smith-%{version}-filelist Line 344  rm -f e-smith-%{version}-filelist
344      --dir  '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \
345      $RPM_BUILD_ROOT > %{name}-%{version}-filelist      $RPM_BUILD_ROOT > %{name}-%{version}-filelist
346    
347  # 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
348  #/usr/lib/rpm/brp-python-bytecompile  #those will conflict with mailman rpm on sme10
349  #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)' \
350  #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)' \
351  #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)' \
352  #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  
353    
354  # fixe for unwanted listed compiled python files  # SME10 to avoid error
355  cat %{name}-%{version}-filelist |sed '/py[oc]$/d'>%{name}-%{version}-filelist.tmp  #/usr/lib/rpm/brp-python-bytecompile
356    # fix for unwanted listed compiled python files
357    # those pyc and pyo gets added by default by genfilelist, so need to filtering them out when we disable byte compile.
358    #"/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc"
359    #"/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo"
360    #/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
361    cat %{name}-%{version}-filelist |sed -r '/py[oc]"?$/d'>%{name}-%{version}-filelist.tmp
362  cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist  cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist
 #rm -rf %{name}-%{version}-filelist.tmp  
363    
364  %clean  %clean
365  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT


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