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

Annotation of /rpms/smeserver-mailman/contribs8/smeserver-mailman.spec

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


Revision 1.7 - (hide annotations) (download)
Sun Jul 14 22:55:16 2013 UTC (11 years, 3 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-mailman-1_3_0-42_el5_sme
Changes since 1.6: +7 -2 lines
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.3.0-42.sme
- apply locale 2013-07-14 patch

1 unnilennium 1.7 # $Id: smeserver-mailman.spec,v 1.6 2013/07/14 14:19:49 unnilennium Exp $
2 unnilennium 1.1 # Authority: gordonr
3     # Name: Gordon Rowell
4    
5 unnilennium 1.5 # avoid brp bytecompile
6     %define __os_install_post %{nil}
7    
8 unnilennium 1.1 Summary: Mailman configuration for SME server.
9     %define name smeserver-mailman
10     Name: %{name}
11     %define version 1.3.0
12 unnilennium 1.7 %define release 42
13 unnilennium 1.1 Version: %{version}
14     Release: %{release}%{?dist}
15     License: GPL
16     Group: Applications/Internet
17     Source: %{name}-%{version}.tar.gz
18     Patch0: smeserver-mailman-1.3.0-relocate.patch
19     Patch1: smeserver-mailman-1.3.0-relocate.patch2
20     Patch2: smeserver-mailman-1.3.0-mailmanmail.patch
21     Patch3: smeserver-mailman-1.3.0-smelist.patch
22     Patch4: smeserver-mailman-1.3.0-createlinks.patch2
23     Patch5: smeserver-mailman-1.3.0-postinstall.patch
24     Patch6: smeserver-mailman-1.3.0-postinstall.patch2
25     Patch7: smeserver-mailman-1.3.0-firsttime.patch
26     Patch8: smeserver-mailman-1.3.0-actionorder.patch
27     Patch9: smeserver-mailman-1.3.0-alias2mailman.patch
28     Patch10: smeserver-mailman-1.3.0-smelist.patch2
29     Patch11: smeserver-mailman-1.3.0-locale-2008-04-22.patch
30     Patch12: smeserver-mailman-1.3.0-archives.patch
31     Patch13: smeserver-mailman-1.3.0-locale-2008-04-23.patch
32     Patch14: smeserver-mailman-1.3.0-locale-2008-04-26.patch
33     Patch15: smeserver-mailman-1.3.0-add2general.patch
34     Patch16: smeserver-mailman-1.3.0-locale-2008-05-05.patch
35     Patch17: smeserver-mailman-1.3.0-locale-2008-05-21.patch
36     Patch18: smeserver-mailman-1.3.0-locale-2008-06-27.patch
37     Patch19: smeserver-mailman-1.3.0-locale-2008-07-01.patch
38     Patch20: smeserver-mailman-1.3.0-locale-2008-10-14.patch
39     Patch21: smeserver-mailman-1.3.0-locale-2008-11-05.patch
40     Patch22: smeserver-mailman-1.3.0-locale-2009-01-31.patch
41     Patch23: smeserver-mailman-1.3.0-locale-2009-03-01.patch
42     Patch24: smeserver-mailman-1.3.0-locale-2009-03-03.patch
43     Patch25: smeserver-mailman-1.3.0-locale-2009-04-27.patch
44     Patch26: smeserver-mailman-1.3.0-locale-2009-05-20.patch
45     Patch27: smeserver-mailman-1.3.0-locale-2009-08-24.patch
46     Patch28: smeserver-mailman-1.3.0-locale-2009-10-27.patch
47     Patch29: smeserver-mailman-1.3.0-locale-2010-03-02.patch
48     Patch30: smeserver-mailman-1.3.0-locale-2011-03-06.patch
49     Patch31: smeserver-mailman-1.3.0-locale-2011-04-27.patch
50     Patch32: smeserver-mailman-1.3.0-locale-2012-03-20.patch
51 unnilennium 1.3 Patch33: smeserver-mailman-1.3.0-BootStrap.patch
52 unnilennium 1.6 Patch34: smeserver-mailman-1.3.0-restarthang.patch
53 unnilennium 1.7 Patch35: smeserver-mailman-1.3.0-locale-2013-07-14.patch
54 unnilennium 1.1 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
55     BuildArchitectures: noarch
56     Requires: e-smith-base
57     Requires: e-smith-release >= 7.0
58     Requires: mailman >= 2.1.5.1-34.rhel4.3sme01
59     Requires: e-smith-formmagick >= 1.4.0-12
60     BuildRequires: e-smith-devtools >= 1.13.1-03
61     Obsoletes: e-smith-mailman
62     Provides: e-smith-mailman
63     AutoReqProv: no
64    
65     %description
66     Add Mailman integration to the SME server.
67    
68     %changelog
69 unnilennium 1.7 * Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.3.0-42.sme
70     - apply locale 2013-07-14 patch
71    
72 unnilennium 1.6 * Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.3.0-41.sme
73     - fix signal-event hang on mailman restart [SME ]
74 unnilennium 1.5 * Mon Jul 01 2013 JP Pialasse <tests@pialasse.com> 1.3.0-40.sme
75 unnilennium 1.4 - fix expanding pyc pyo [SME: 7730]
76    
77     * Mon Jul 01 2013 JP Pialasse <tests@pialasse.com> 1.3.0-38.sme
78 unnilennium 1.2 - import to sme8 buildsys
79 unnilennium 1.3 - fix bootstrap hang [SME: 6693]
80 unnilennium 1.2
81 unnilennium 1.1 * Tue Mar 20 2012 SME Translation Server <translations@contribs.org> 1.3.0-37.el6
82     - apply locale 2012-03-20 patch
83    
84     * Wed Apr 27 2011 SME Translation Server <translations@contribs.org> 1.3.0-36.sme
85     - apply locale 2011-04-27 patch
86    
87     * Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 1.3.0-35.sme
88     - apply locale 2011-03-06 patch
89    
90     * Tue Mar 02 2010 SME Translation Server <translations@contribs.org> 1.3.0-34.sme
91     - apply locale 2010-03-02 patch
92    
93     * Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 1.3.0-33.sme
94     - apply locale 2009-10-27 patch
95    
96     * Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 1.3.0-32.sme
97     - apply locale 2009-08-24 patch
98    
99     * Wed May 20 2009 SME Translation Server <translations@contribs.org> 1.3.0-31.sme
100     - apply locale 2009-05-20 patch
101    
102     * Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 1.3.0-30.sme
103     - apply locale 2009-04-27 patch
104    
105     * Tue Mar 03 2009 SME Translation Server
106     - apply locale 2009-03-03 patch
107    
108     * Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-28
109     - Apply 1 Mar 2009 locale patch [SME: 5018]
110    
111     * Sat Jan 31 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-27
112     - Apply 31 Jan 2009 locale patch [SME: 4951]
113    
114     * Wed Nov 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-26
115     - Apply 5 Nov 2008 locale patch
116    
117     * Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-25
118     - Apply 14 Oct 2008 locale patch
119    
120     * Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-24
121     - Apply 1 July 2008 locale patch
122    
123     * Fri Jun 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-23
124     - Apply 27 Jun 2008 locale patch
125    
126     * Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-22
127     - Apply 21 May 2008 locale patch
128     - Fixed version number in previous changelog entry
129    
130     * Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-21
131     - Apply 5 May 2008 locale patch
132    
133     * Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-20
134     - Add common <base> tags to e-smith-formmagick's general
135    
136     * Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-19
137     - Added 26 April 2008 locale patch
138    
139     * Wed Apr 23 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-18
140     - Added 23 April 2008 locale patch
141     - Fixed changelog
142    
143     * Wed Apr 23 2008 Daniel B. <daniel@firewall-services.com> 1.3.0-17
144     - Fix path for the archives [SME: 4252]
145    
146     * Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-16
147     - Added 22 April 2008 locale patch
148    
149     * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
150     - Clean up spec so package can be built by koji/plague
151    
152     * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
153     - Update to new release naming. No functional changes.
154     - Make Packager generic
155    
156     * Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-15
157     - Allow hyphen in list names in smelist command [SME: 1307]
158    
159     * Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-14
160     - Add /sbin/e-smith/alias2mailman to convert hand-built alias files
161     to mailman lists. Converst ~alias/.qmail-<listname> to the mailman
162     list <listname>
163     - List owner is mailman{DefaultOwner} defaulting to admin
164    
165     * Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-13
166     - Fix various permissions to satisfy /usr/lib/mailman/check_perms
167     - Update mailman dependency to latest from CentOS
168    
169     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-12
170     - Run the addlist/rmlist actions before generic_template_expand [SME: 665]
171    
172     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-11
173     - Ensure that mailman record exists prior to trying to set the status
174    
175     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-10
176     - Adjust path in post-install script to match CentOS structure
177    
178     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-09
179     - Make further use of services2adjust and templates2expand
180    
181     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-08
182     - Make use of services2adjust and templates2expand
183     - Update dependency as this is for 7.0
184    
185     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-07
186     - Create qfiles heirarchy
187     - Fix up taint issue in smelist script
188    
189     * Thu Jan 5 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-06
190     - TODO: Check permissions on /var/spool/mailman/qfiles. The
191     'in' directory needs to be writable by the mailman CGI script,
192     which is running as www.
193    
194     * Thu Jan 5 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-05
195     - Remove postun section which depended on action scripts which
196     no longer exist
197    
198     * Fri Dec 23 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-04
199     - Allow mail for mailman user
200     - TODO: We should have configurable allow/deny for system accounts
201    
202     * Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-03
203     - No change
204     - TODO: Rewrite templates to new API and move to templates2expand
205     - TODO: Add pre script to relocate /opt/mailman parts for upgrades
206    
207     * Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-02
208     - Require patched mailman - SME Server runs httpd as www, not apache
209     - Relocate paths from /opt/mailman to /usr/lib/mailman to match mailman pkg
210     - Changed references to accounts db to new location
211    
212     * Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-01
213     - Package renamed to smeserver-mailman, including patches to 1.1.10-05
214     - TODO: Relocate to /usr/lib/mailman
215     - TODO: Change DB references, and rewrite to new API
216    
217     * Fri Oct 14 2005 Michael Soulier <msoulier@e-smith.com>
218     - [1.1.10-05]
219     - Fixed error with creation of alias file with dot in the name.
220    
221     * Wed Mar 16 2005 Michael Soulier <msoulier@e-smith.com>
222     - [1.1.10-04]
223     - Added FQDN of box as a potential virtual host.
224    
225     * Mon Mar 14 2005 Michael Soulier <msoulier@e-smith.com>
226     - [1.1.10-03]
227     - Removed circular event call.
228    
229     * Wed Feb 23 2005 Michael Soulier <msoulier@e-smith.com>
230     - [1.1.10-02]
231     - Forgot to set mode on smelist.
232    
233     * Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com>
234     - [1.1.10-01]
235     - Added hooks into domain creation and deletion.
236    
237     * Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com>
238     - [1.1.9-01]
239     - Rolling again to get past build error on sme61build.
240    
241     * Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com>
242     - [1.1.8-01]
243     - Added create-system-user call to make the mailman user.
244     - Added a link to the mailman UI.
245    
246     * Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com>
247     - [1.1.7-01]
248     - Updated mailman-conf to call a post-install script when first run. If this
249     is ever included in a blade, post-install should move to the blade handler.
250    
251     * Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com>
252     - [1.1.6-01]
253     - Fixed badly placed lib.
254     - Added post-install script to move it out of scriptlets.
255    
256     * Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com>
257     - [1.1.5-01]
258     - Added conf and restart actions.
259     - Added a simple panel.
260    
261     * Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com>
262     - [1.1.4-01]
263     - Fixed perms on /opt/mailman, and bad symlink.
264    
265     * Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com>
266     - [1.1.3-01]
267     - Fixed error in createlinks.
268    
269     * Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com>
270     - [1.1.2-01]
271     - Rolling initial build of imported package. [msoulier]
272    
273     * Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com>
274     - [1.1.1-01]
275     - Reimplementation after lost packages. Implementing for mailman 2.1.5.
276     [msoulier]
277    
278     * Sun Sep 08 2002 Shad L. Lords <slords@mail.com>
279     - 1.0-5
280     - updated addlist and rmlist to better handle conflicts
281    
282     * Sun Sep 01 2002 Shad L. Lords <slords@mail.com>
283     - 1.0-4
284     - updated accounts so that ezmlm can coexist with mailman
285    
286     * Tue Aug 27 2002 Shad L. Lords <slords@mail.com>
287     - 1.0-3
288     - make site have a random password on install
289     - make mailman list have random password on install
290    
291     * Sat Aug 24 2002 Shad L. Lords <slords@mail.com>
292     - 1.0-2
293     - changed mailman-addlist to set perms and ownership correctly.
294     - changed permissions from root,mailman to mailman,mailman
295    
296     * Fri Aug 23 2002 Shad L. Lords <slords@mail.com>
297     - 1.0-1
298     - Initial release
299    
300     %prep
301     %setup
302     %patch0 -p1
303     %patch1 -p1
304     %patch2 -p1
305     %patch3 -p1
306     %patch4 -p1
307     %patch5 -p1
308     %patch6 -p1
309     %patch7 -p1
310     %patch8 -p1
311     %patch9 -p1
312     %patch10 -p1
313     %patch11 -p1
314     %patch12 -p1
315     %patch13 -p1
316     %patch14 -p1
317     %patch15 -p1
318     %patch16 -p1
319     %patch17 -p1
320     %patch18 -p1
321     %patch19 -p1
322     %patch20 -p1
323     %patch21 -p1
324     %patch22 -p1
325     %patch23 -p1
326     %patch24 -p1
327     %patch25 -p1
328     %patch26 -p1
329     %patch27 -p1
330     %patch28 -p1
331     %patch29 -p1
332     %patch30 -p1
333     %patch31 -p1
334     %patch32 -p1
335 unnilennium 1.3 %patch33 -p1
336 unnilennium 1.6 %patch34 -p1
337 unnilennium 1.7 %patch35 -p1
338 unnilennium 1.1
339     /bin/rm -r root/opt/mailman
340    
341     %build
342     perl createlinks
343     mkdir -p root/usr/lib/mailman/aliases
344    
345     mkdir -p root/opt
346     ln -s /usr/lib/mailman root/opt/mailman
347     mkdir -p root/var/spool/mailman/qfiles
348     for dir in archive bounces commands in news out retry shunt virgin
349     do
350     mkdir -p root/var/spool/mailman/qfiles/$dir
351     done
352    
353    
354     %install
355     rm -rf $RPM_BUILD_ROOT
356     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
357     rm -f e-smith-%{version}-filelist
358     /sbin/e-smith/genfilelist \
359     --dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \
360     --dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \
361     --dir '/var/spool/mailman' 'attr(02775,root,mailman)' \
362     --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \
363     --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \
364     --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \
365     --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \
366     --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \
367     --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \
368     --dir '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \
369     --dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \
370     --dir '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \
371     --dir '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \
372     --dir '/var/spool/mailman/qfiles/in' 'attr(02770,mailman,mailman)' \
373     --dir '/var/spool/mailman/qfiles/news' 'attr(02770,mailman,mailman)' \
374     --dir '/var/spool/mailman/qfiles/out' 'attr(02770,mailman,mailman)' \
375     --dir '/var/spool/mailman/qfiles/retry' 'attr(02770,mailman,mailman)' \
376     --dir '/var/spool/mailman/qfiles/shunt' 'attr(02770,mailman,mailman)' \
377     --dir '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \
378     $RPM_BUILD_ROOT > %{name}-%{version}-filelist
379    
380 unnilennium 1.2 # SME8 build to avoid error
381 unnilennium 1.4 #/usr/lib/rpm/brp-python-bytecompile
382 unnilennium 1.5 #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
383     #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo
384     #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-delete/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
385     #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-delete/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo
386     #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/bootstrap-console-save/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
387     #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/bootstrap-console-save/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo
388 unnilennium 1.4 #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/mailman-update/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
389     #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/mailman-update/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo
390 unnilennium 1.5 #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/mm_cfg.pyc
391     #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/mm_cfg.pyo
392     #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/MTA/SME.pyc
393     #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/MTA/SME.pyo
394    
395     # fixe for unwanted listed compiled python files
396 unnilennium 1.4 cat %{name}-%{version}-filelist |sed '/py[oc]$/d'>%{name}-%{version}-filelist.tmp
397     cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist
398     #rm -rf %{name}-%{version}-filelist.tmp
399 unnilennium 1.2
400 unnilennium 1.1 %clean
401     rm -rf $RPM_BUILD_ROOT
402    
403     %files -f %{name}-%{version}-filelist
404    
405     %defattr(-,root,root)
406    
407     %pre
408     /sbin/e-smith/create-system-user mailman 41 \
409     "Mailman user" /usr/lib/mailman /bin/false
410    
411     %post
412    
413     %preun
414    
415     %postun

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