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

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

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

Revision 1.2 by vip-ire, Wed Nov 13 12:59:13 2013 UTC Revision 1.8 by unnilennium, Wed Mar 9 08:39:06 2016 UTC
# Line 1  Line 1 
1  # $Id: smeserver-mailman.spec,v 1.1 2013/11/13 12:55:27 vip-ire Exp $  # $Id: smeserver-mailman.spec,v 1.7 2015/09/11 15:05:17 stephdl Exp $
2  # Authority: gordonr  # Authority: gordonr
3  # Name: Gordon Rowell  # Name: Gordon Rowell
4    
# Line 8  Line 8 
8  Summary: Mailman configuration for SME server.  Summary: Mailman configuration for SME server.
9  %define name smeserver-mailman  %define name smeserver-mailman
10  Name: %{name}  Name: %{name}
11  %define version 1.4.0  %define version 1.5.0
12  %define release 1  %define release 7
13  Version: %{version}  Version: %{version}
14  Release: %{release}%{?dist}  Release: %{release}%{?dist}
15  License: GPL  License: GPL
16  Group: Applications/Internet  Group: Applications/Internet
17  Source: %{name}-%{version}.tar.xz  Source: %{name}-%{version}.tar.gz
18  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
19  BuildArchitectures: noarch  BuildArchitectures: noarch
20  Requires: e-smith-base  Requires: e-smith-base
21  Requires: e-smith-release >= 8.0  Requires: e-smith-release >= 9.0
22  Requires: mailman >= 2.1.9-20.el5.sme  Requires: mailman >= 2.1.9-20.el5.sme
23  Requires: e-smith-formmagick >= 1.4.0-12  Requires: e-smith-formmagick >= 1.4.0-12
24  BuildRequires: e-smith-devtools >= 1.13.1-03  BuildRequires: e-smith-devtools >= 1.13.1-03
25  Obsoletes: e-smith-mailman  Obsoletes: e-smith-mailman
26  Provides: e-smith-mailman  Provides: e-smith-mailman
27  AutoReqProv: no  AutoReqProv: no
28    Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch
29    Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch
30    
31  %description  %description
32  Add Mailman integration to the SME server.  Add Mailman integration to the SME server.
33    
34  %changelog  %changelog
35  * Wed Nov 13 2013 Daniel Berteaud <daniel@firewall-services.com> 1.4.0-1.sme  * Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.5.0-7.sme
36  - Rebuild for SME9  - apply locale 2016-03-09 patch
37    
38    * Fri Sep 11 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-6.sme
39    - Mailman is now added to the backup/restore process [SME: 2411]
40    - Added smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch
41    
42    * Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-5.sme
43    - mailman wants that the group apache appears before the www group in /etc/group
44    - script added in %pre to change that order. [SME: 8056]
45    
46    * Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-3.sme
47    - Initial release to contribs9 [SME: 8453]
48    
49    * Fri Jun 20 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-1.sme
50    - Initial release to sme9
51    
52  * 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
53  - fix bug [SME: 7787]  - fix bug [SME: 7787]
# Line 274  Add Mailman integration to the SME serve Line 290  Add Mailman integration to the SME serve
290    
291  %prep  %prep
292  %setup  %setup
293    %patch0 -p1
294    %patch1 -p1
295    
296    
297    #/bin/rm -r root/opt/mailman
298    
299  %build  %build
300  perl createlinks  perl createlinks
# Line 314  rm -f e-smith-%{version}-filelist Line 335  rm -f e-smith-%{version}-filelist
335      --dir  '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \
336      $RPM_BUILD_ROOT > %{name}-%{version}-filelist      $RPM_BUILD_ROOT > %{name}-%{version}-filelist
337    
338    # SME8 build to avoid error
339    #/usr/lib/rpm/brp-python-bytecompile
340    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
341    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo
342    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-delete/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
343    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-delete/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo
344    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/bootstrap-console-save/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
345    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/bootstrap-console-save/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo
346    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/mailman-update/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
347    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/mailman-update/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo
348    #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/mm_cfg.pyc
349    #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/mm_cfg.pyo
350    #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/MTA/SME.pyc
351    #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/MTA/SME.pyo
352    
353  # fixe for unwanted listed compiled python files  # fixe for unwanted listed compiled python files
354  cat %{name}-%{version}-filelist |sed '/py[oc]$/d'>%{name}-%{version}-filelist.tmp  cat %{name}-%{version}-filelist |sed '/py[oc]$/d'>%{name}-%{version}-filelist.tmp
355  cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist  cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist
# Line 330  rm -rf $RPM_BUILD_ROOT Line 366  rm -rf $RPM_BUILD_ROOT
366  /sbin/e-smith/create-system-user mailman 41 \  /sbin/e-smith/create-system-user mailman 41 \
367      "Mailman user" /usr/lib/mailman /bin/false      "Mailman user" /usr/lib/mailman /bin/false
368    
369    #mailman wants that the apache group appears  before the www group in /etc/group [SME: 8056]
370    TEST=$(grep -P '^www|apache' /etc/group)
371    TEST2='www:x:102:admin
372    apache:x:102:'
373    
374    if [[ $TEST == $TEST2 ]]; then
375        WWW=$(sed -n '/^www/p' /etc/group)
376        sed -i '/^www/d' /etc/group
377        echo $WWW >> /etc/group
378    fi
379    
380  %post  %post
381    
382  %preun  %preun


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