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

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

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


Revision 1.22 - (hide annotations) (download)
Fri Sep 6 00:35:37 2024 UTC (2 months, 2 weeks ago) by terryfage
Branch: MAIN
CVS Tags: smeserver-mailman-1_5_0-21_el7_sme, HEAD
Changes since 1.21: +7 -2 lines
* Fri Sep 06 2024 terry Fage <terry@fage.id.au> 1.5.0-21.sme
- apply locale 2024-09-05.patch

1 terryfage 1.22 # $Id: smeserver-mailman.spec,v 1.21 2022/11/11 16:04:52 jpp Exp $
2 brianr 1.1 # Authority: gordonr
3     # Name: Gordon Rowell
4    
5     # avoid brp bytecompile
6     %define __os_install_post %{nil}
7 jpp 1.10 %define debug_package %{nil}
8 brianr 1.1
9     Summary: Mailman configuration for SME server.
10     %define name smeserver-mailman
11     Name: %{name}
12     %define version 1.5.0
13 terryfage 1.22 %define release 21
14 brianr 1.1 Version: %{version}
15     Release: %{release}%{?dist}
16     License: GPL
17     Group: Applications/Internet
18     Source: %{name}-%{version}.tar.gz
19     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
20     BuildArchitectures: noarch
21     Requires: e-smith-base
22 jpp 1.18 Requires: e-smith-release >= 10.0
23     Requires: e-smith-apache >= 2.6.0-19
24 brianr 1.1 Requires: mailman >= 2.1.9-20.el5.sme
25     Requires: e-smith-formmagick >= 1.4.0-12
26     BuildRequires: e-smith-devtools >= 1.13.1-03
27     Obsoletes: e-smith-mailman
28     Provides: e-smith-mailman
29     AutoReqProv: no
30 jpp 1.16 #Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch
31 brianr 1.1 Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch
32 terryfage 1.5 Patch2: smeserver-mailman-1.5.0-locale-2021-08-22.patch
33 jpp 1.7 Patch3: smeserver-mailman-1.5.0-bz11278-systemd.patch
34 jpp 1.8 Patch4: smeserver-mailman-1.5.0-bz11278-wrapper.patch
35 jpp 1.11 Patch5: smeserver-mailman-1.5.0-bz11937.patch
36 jpp 1.12 Patch6: smeserver-mailman-1.5.0-bz11941-checkperms.patch
37 jpp 1.13 Patch7: smeserver-mailman-1.5.0-bz2248-bz2247-enabled-localonly.patch
38 jpp 1.14 Patch8: smeserver-mailman-1.5.0-locale-2022-07-24.patch
39 jpp 1.15 Patch9: smeserver-mailman-1.5.0-bz12015-backup.patch
40 jpp 1.18 Patch10: smeserver-mailman-1.5.0-bz12050-24syntax.patch
41 jpp 1.20 Patch11: smeserver-mailman-1.5.0-locale-2022-11-11.patch
42 terryfage 1.22 Patch12: smeserver-mailman-1.5.0-locale-2024-09-05.patch
43 brianr 1.1
44     %description
45     Add Mailman integration to the SME server.
46    
47     %changelog
48 terryfage 1.22 * Fri Sep 06 2024 terry Fage <terry@fage.id.au> 1.5.0-21.sme
49     - apply locale 2024-09-05.patch
50    
51 jpp 1.21 * Fri Nov 11 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-20.sme
52 jpp 1.20 - apply locale 2022-11-11 patch
53    
54 brianr 1.19 * Sat Jul 30 2022 Brian Read <brianr@bjsystems.co.uk> 1.5.0-18.sme
55     - Re-build and link to latest devtools [SME: 11997]
56    
57 jpp 1.18 * Sat Jul 30 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-17.sme
58     - update to httpd 2.4 access syntax [SME: 12050]
59     - rebuild for core backup [SME: 12015]
60    
61 jpp 1.14 * Sat Jul 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-16.sme
62     - apply locale 2022-07-24.patch
63 jpp 1.15 - add to core backup [SME: 12015]
64 jpp 1.16 remove patch only adding to dar in SME 2411
65 jpp 1.17 - already compatible with httpd 2.4 syntax [SME: 12050]
66 jpp 1.14
67 jpp 1.12 * Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-15.sme
68 brianr 1.19 - Re-build and link to latest devtools permissions as expected by mailman [SME: 11941]
69 jpp 1.13 - make mailman enabled on install [SME: 2248]
70     - by default listinfo is public [SME: 2247]
71     - by default admin and archives are private [SME: 2247]
72     - make access modifiable [SME: 2247]
73 jpp 1.12
74 jpp 1.11 * Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-14.sme
75     - increase master password size to 18 [SME: 11937]
76    
77 jpp 1.8 * Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-13.sme
78     - add c wrapper with setuid [SME: 11278]
79    
80 jpp 1.7 * Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-12.sme
81 brianr 1.19 - Re-build and link to latest devtools missing service start [SME: 11278]
82 jpp 1.7 add update event
83    
84 jpp 1.6 * Tue Mar 15 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-11.sme
85 brianr 1.19 - Re-build and link to latest devtools www line should be after apache line in /etc/group [SME: 8056]
86 jpp 1.6
87 terryfage 1.5 * Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 1.5.0-10.sme
88     - apply locale 2021-08-22 patch
89    
90 jpp 1.4 * Thu Jun 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-9.sme
91 brianr 1.19 - Re-build and link to latest devtools conflicting folders [SME: 11278]
92 jpp 1.4
93 jpp 1.2 * Mon Feb 22 2021 JP Pialasse <tests@pialasse.com> 1.5.0-8.sme
94     - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
95     by assuming the date is correct and changing the weekday.
96     Thu May 21 2008 --> Thu May 15 2008 or Wed May 21 2008 or Thu May 22 2008 or ....
97     - allow build on SME10
98    
99 brianr 1.1 * Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.5.0-7.sme
100     - apply locale 2016-03-09 patch
101    
102     * Fri Sep 11 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-6.sme
103     - Mailman is now added to the backup/restore process [SME: 2411]
104     - Added smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch
105    
106     * Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-5.sme
107     - mailman wants that the group apache appears before the www group in /etc/group
108     - script added in %pre to change that order. [SME: 8056]
109    
110     * Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-3.sme
111     - Initial release to contribs9 [SME: 8453]
112    
113     * Fri Jun 20 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-1.sme
114     - Initial release to sme9
115    
116     * Fri Sep 20 2013 JP Pialasse <tests@pialasse.com> 1.3.0-45.sme
117 brianr 1.19 - Re-build and link to latest devtools bug [SME: 7787]
118 brianr 1.1
119     * Thu Sep 19 2013 JP Pialasse <tests@pialasse.com> 1.3.0-44.sme
120 brianr 1.19 - Re-build and link to latest devtools case sensitive TRUE to true in smeserver-mailman-1.3.0-restarthang.patch
121 brianr 1.1 - wrong path to actions folder fixed
122     - see [SME: 7845]
123    
124     * Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.3.0-42.sme
125     - apply locale 2013-07-14 patch
126    
127     * Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.3.0-41.sme
128 brianr 1.19 - Re-build and link to latest devtools signal-event hang on mailman restart [SME ]
129 brianr 1.1 * Mon Jul 01 2013 JP Pialasse <tests@pialasse.com> 1.3.0-40.sme
130 brianr 1.19 - Re-build and link to latest devtools expanding pyc pyo [SME: 7730]
131 brianr 1.1
132     * Mon Jul 01 2013 JP Pialasse <tests@pialasse.com> 1.3.0-38.sme
133     - import to sme8 buildsys
134 brianr 1.19 - Re-build and link to latest devtools bootstrap hang [SME: 6693]
135 brianr 1.1
136     * Tue Mar 20 2012 SME Translation Server <translations@contribs.org> 1.3.0-37.el6
137     - apply locale 2012-03-20 patch
138    
139     * Wed Apr 27 2011 SME Translation Server <translations@contribs.org> 1.3.0-36.sme
140     - apply locale 2011-04-27 patch
141    
142     * Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 1.3.0-35.sme
143     - apply locale 2011-03-06 patch
144    
145     * Tue Mar 02 2010 SME Translation Server <translations@contribs.org> 1.3.0-34.sme
146     - apply locale 2010-03-02 patch
147    
148     * Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 1.3.0-33.sme
149     - apply locale 2009-10-27 patch
150    
151     * Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 1.3.0-32.sme
152     - apply locale 2009-08-24 patch
153    
154     * Wed May 20 2009 SME Translation Server <translations@contribs.org> 1.3.0-31.sme
155     - apply locale 2009-05-20 patch
156    
157     * Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 1.3.0-30.sme
158     - apply locale 2009-04-27 patch
159    
160     * Tue Mar 03 2009 SME Translation Server
161     - apply locale 2009-03-03 patch
162    
163     * Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-28
164     - Apply 1 Mar 2009 locale patch [SME: 5018]
165    
166     * Sat Jan 31 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-27
167     - Apply 31 Jan 2009 locale patch [SME: 4951]
168    
169     * Wed Nov 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-26
170     - Apply 5 Nov 2008 locale patch
171    
172     * Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-25
173     - Apply 14 Oct 2008 locale patch
174    
175     * Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-24
176     - Apply 1 July 2008 locale patch
177    
178     * Fri Jun 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-23
179     - Apply 27 Jun 2008 locale patch
180    
181 jpp 1.2 * Wed May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-22
182     Thu May 21 2008 --> Thu May 15 2008 or Wed May 21 2008 or Thu May 22 2008 or ....
183 brianr 1.1 - Apply 21 May 2008 locale patch
184     - Fixed version number in previous changelog entry
185    
186     * Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-21
187     - Apply 5 May 2008 locale patch
188    
189     * Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-20
190     - Add common <base> tags to e-smith-formmagick's general
191    
192     * Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-19
193     - Added 26 April 2008 locale patch
194    
195     * Wed Apr 23 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-18
196     - Added 23 April 2008 locale patch
197     - Fixed changelog
198    
199     * Wed Apr 23 2008 Daniel B. <daniel@firewall-services.com> 1.3.0-17
200     - Fix path for the archives [SME: 4252]
201    
202     * Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-16
203     - Added 22 April 2008 locale patch
204    
205     * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
206     - Clean up spec so package can be built by koji/plague
207    
208     * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
209     - Update to new release naming. No functional changes.
210     - Make Packager generic
211    
212     * Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-15
213     - Allow hyphen in list names in smelist command [SME: 1307]
214    
215     * Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-14
216     - Add /sbin/e-smith/alias2mailman to convert hand-built alias files
217     to mailman lists. Converst ~alias/.qmail-<listname> to the mailman
218     list <listname>
219     - List owner is mailman{DefaultOwner} defaulting to admin
220    
221     * Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-13
222     - Fix various permissions to satisfy /usr/lib/mailman/check_perms
223     - Update mailman dependency to latest from CentOS
224    
225     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-12
226     - Run the addlist/rmlist actions before generic_template_expand [SME: 665]
227    
228     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-11
229     - Ensure that mailman record exists prior to trying to set the status
230    
231     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-10
232     - Adjust path in post-install script to match CentOS structure
233    
234     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-09
235     - Make further use of services2adjust and templates2expand
236    
237     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-08
238     - Make use of services2adjust and templates2expand
239     - Update dependency as this is for 7.0
240    
241     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-07
242     - Create qfiles heirarchy
243     - Fix up taint issue in smelist script
244    
245     * Thu Jan 5 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-06
246     - TODO: Check permissions on /var/spool/mailman/qfiles. The
247     'in' directory needs to be writable by the mailman CGI script,
248     which is running as www.
249    
250     * Thu Jan 5 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-05
251     - Remove postun section which depended on action scripts which
252     no longer exist
253    
254     * Fri Dec 23 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-04
255     - Allow mail for mailman user
256     - TODO: We should have configurable allow/deny for system accounts
257    
258     * Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-03
259     - No change
260     - TODO: Rewrite templates to new API and move to templates2expand
261     - TODO: Add pre script to relocate /opt/mailman parts for upgrades
262    
263     * Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-02
264     - Require patched mailman - SME Server runs httpd as www, not apache
265     - Relocate paths from /opt/mailman to /usr/lib/mailman to match mailman pkg
266     - Changed references to accounts db to new location
267    
268     * Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-01
269     - Package renamed to smeserver-mailman, including patches to 1.1.10-05
270     - TODO: Relocate to /usr/lib/mailman
271     - TODO: Change DB references, and rewrite to new API
272    
273     * Fri Oct 14 2005 Michael Soulier <msoulier@e-smith.com>
274     - [1.1.10-05]
275     - Fixed error with creation of alias file with dot in the name.
276    
277     * Wed Mar 16 2005 Michael Soulier <msoulier@e-smith.com>
278     - [1.1.10-04]
279     - Added FQDN of box as a potential virtual host.
280    
281     * Mon Mar 14 2005 Michael Soulier <msoulier@e-smith.com>
282     - [1.1.10-03]
283     - Removed circular event call.
284    
285     * Wed Feb 23 2005 Michael Soulier <msoulier@e-smith.com>
286     - [1.1.10-02]
287     - Forgot to set mode on smelist.
288    
289     * Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com>
290     - [1.1.10-01]
291     - Added hooks into domain creation and deletion.
292    
293     * Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com>
294     - [1.1.9-01]
295     - Rolling again to get past build error on sme61build.
296    
297     * Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com>
298     - [1.1.8-01]
299     - Added create-system-user call to make the mailman user.
300     - Added a link to the mailman UI.
301    
302     * Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com>
303     - [1.1.7-01]
304     - Updated mailman-conf to call a post-install script when first run. If this
305     is ever included in a blade, post-install should move to the blade handler.
306    
307     * Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com>
308     - [1.1.6-01]
309     - Fixed badly placed lib.
310     - Added post-install script to move it out of scriptlets.
311    
312     * Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com>
313     - [1.1.5-01]
314     - Added conf and restart actions.
315     - Added a simple panel.
316    
317     * Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com>
318     - [1.1.4-01]
319     - Fixed perms on /opt/mailman, and bad symlink.
320    
321     * Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com>
322     - [1.1.3-01]
323     - Fixed error in createlinks.
324    
325     * Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com>
326     - [1.1.2-01]
327     - Rolling initial build of imported package. [msoulier]
328    
329     * Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com>
330     - [1.1.1-01]
331     - Reimplementation after lost packages. Implementing for mailman 2.1.5.
332     [msoulier]
333    
334     * Sun Sep 08 2002 Shad L. Lords <slords@mail.com>
335     - 1.0-5
336     - updated addlist and rmlist to better handle conflicts
337    
338     * Sun Sep 01 2002 Shad L. Lords <slords@mail.com>
339     - 1.0-4
340     - updated accounts so that ezmlm can coexist with mailman
341    
342     * Tue Aug 27 2002 Shad L. Lords <slords@mail.com>
343     - 1.0-3
344     - make site have a random password on install
345     - make mailman list have random password on install
346    
347     * Sat Aug 24 2002 Shad L. Lords <slords@mail.com>
348     - 1.0-2
349     - changed mailman-addlist to set perms and ownership correctly.
350     - changed permissions from root,mailman to mailman,mailman
351    
352     * Fri Aug 23 2002 Shad L. Lords <slords@mail.com>
353     - 1.0-1
354     - Initial release
355    
356     %prep
357     %setup
358 jpp 1.16 #%patch0 -p1
359 brianr 1.1 %patch1 -p1
360 terryfage 1.5 %patch2 -p1
361 jpp 1.7 %patch3 -p1
362 jpp 1.8 %patch4 -p1
363 jpp 1.11 %patch5 -p1
364 jpp 1.12 %patch6 -p1
365 jpp 1.13 %patch7 -p1
366 jpp 1.14 %patch8 -p1
367 jpp 1.15 %patch9 -p1
368 jpp 1.18 %patch10 -p1
369 jpp 1.20 %patch11 -p1
370 terryfage 1.22 %patch12 -p1
371 brianr 1.1
372     #/bin/rm -r root/opt/mailman
373    
374     %build
375     perl createlinks
376 jpp 1.9 gcc -o root/usr/lib/mailman/bin/smelist smelist.c
377    
378    
379 brianr 1.1 mkdir -p root/usr/lib/mailman/aliases
380    
381     mkdir -p root/opt
382     ln -s /usr/lib/mailman root/opt/mailman
383     mkdir -p root/var/spool/mailman/qfiles
384     for dir in archive bounces commands in news out retry shunt virgin
385     do
386     mkdir -p root/var/spool/mailman/qfiles/$dir
387     done
388    
389     %install
390     rm -rf $RPM_BUILD_ROOT
391     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
392     rm -f e-smith-%{version}-filelist
393     /sbin/e-smith/genfilelist \
394     --dir '/var/spool/mailman' 'attr(02775,root,mailman)' \
395     --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \
396     --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \
397     --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \
398 jpp 1.12 --file '/usr/lib/mailman/bin/smelist.pl' 'attr(02755,root,mailman)' \
399     --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,mailman,mailman)' \
400     --dir '/var/spool/mailman/qfiles' 'attr(02775,mailman,mailman)' \
401 brianr 1.1 --dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \
402     --dir '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \
403     --dir '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \
404     --dir '/var/spool/mailman/qfiles/in' 'attr(02770,mailman,mailman)' \
405     --dir '/var/spool/mailman/qfiles/news' 'attr(02770,mailman,mailman)' \
406     --dir '/var/spool/mailman/qfiles/out' 'attr(02770,mailman,mailman)' \
407     --dir '/var/spool/mailman/qfiles/retry' 'attr(02770,mailman,mailman)' \
408     --dir '/var/spool/mailman/qfiles/shunt' 'attr(02770,mailman,mailman)' \
409     --dir '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \
410     $RPM_BUILD_ROOT > %{name}-%{version}-filelist
411    
412 jpp 1.4 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
413     #those will conflict with mailman rpm on sme10
414     # --dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \
415     # --dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \
416     # --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \
417     # --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \
418    
419 jpp 1.3 # SME10 to avoid error
420 brianr 1.1 #/usr/lib/rpm/brp-python-bytecompile
421 jpp 1.3 # fix for unwanted listed compiled python files
422     # those pyc and pyo gets added by default by genfilelist, so need to filtering them out when we disable byte compile.
423     #"/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc"
424     #"/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo"
425     #/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
426 jpp 1.2 cat %{name}-%{version}-filelist |sed -r '/py[oc]"?$/d'>%{name}-%{version}-filelist.tmp
427 brianr 1.1 cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist
428    
429     %clean
430     rm -rf $RPM_BUILD_ROOT
431    
432     %files -f %{name}-%{version}-filelist
433    
434     %defattr(-,root,root)
435    
436     %pre
437     /sbin/e-smith/create-system-user mailman 41 \
438     "Mailman user" /usr/lib/mailman /bin/false
439    
440     #mailman wants that the apache group appears before the www group in /etc/group [SME: 8056]
441 jpp 1.6 TEST=`egrep "^apache:" /etc/group -n| cut -f1 -d:`
442     TEST2=`egrep "^www:" /etc/group -n| cut -f1 -d:`
443     if [[ $TEST > $TEST2 ]]; then
444 brianr 1.1 WWW=$(sed -n '/^www/p' /etc/group)
445     sed -i '/^www/d' /etc/group
446     echo $WWW >> /etc/group
447     fi
448    
449     %post
450    
451     %preun
452    
453     %postun

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