mailman/mailman.spec

changeset 777
4e2fe5febd48
parent 602
6b1bca241155
equal deleted inserted replaced
10:f36a3df6e2f3 11:bd7747cb4679
39 Packager: OpenPKG Foundation e.V. 39 Packager: OpenPKG Foundation e.V.
40 Distribution: OpenPKG Community 40 Distribution: OpenPKG Community
41 Class: EVAL 41 Class: EVAL
42 Group: Mail 42 Group: Mail
43 License: GPL 43 License: GPL
44 Version: 2.1.14 44 Version: 2.1.15
45 Release: 20120208 45 Release: 20120800
46 46
47 # list of sources 47 # list of sources
48 Source0: http://ftp.gnu.org/gnu/mailman/mailman-%{version}.tgz 48 Source0: http://ftp.gnu.org/gnu/mailman/mailman-%{version}.tgz
49 Source1: manpages.tar.gz 49 Source1: manpages.tar.gz
50 Source2: mailman-sendmail.m4 50 Source2: mailman-sendmail.m4
51 Source3: mailman-apache.conf 51 Source3: mailman-apache.conf
52 Source4: rc.mailman 52 Source4: rc.mailman
53 Patch0: mailman.patch 53 Patch0: mailman.patch
54 54
55 # build information 55 # build information
56 Prefix: %{l_prefix} 56 BuildPreReq: OpenPKG, openpkg >= 20100101, python, make
57 BuildRoot: %{l_buildroot} 57 PreReq: OpenPKG, openpkg >= 20100101, python, MTA
58 BuildPreReq: OpenPKG, openpkg >= 20060823, python, make
59 PreReq: OpenPKG, openpkg >= 20060823, python, MTA
60 AutoReq: no
61 AutoReqProv: no
62 58
63 %description 59 %description
64 Mailman is software to help manage email discussion lists, much 60 Mailman is software to help manage email discussion lists, much
65 like Majordomo and Smartmail. Unlike most similar products, Mailman 61 like Majordomo and Smartmail. Unlike most similar products, Mailman
66 gives each mailing list a webpage, and allows users to subscribe, 62 gives each mailing list a webpage, and allows users to subscribe,
108 # build package 104 # build package
109 %{l_make} %{l_mflags -O} 105 %{l_make} %{l_mflags -O}
110 106
111 %install 107 %install
112 # install package 108 # install package
113 rm -rf $RPM_BUILD_ROOT
114 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT DIRSETGID=true 109 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT DIRSETGID=true
115 110
116 # create additional directories 111 # create additional directories
117 %{l_shtool} mkdir -f -p -m 755 \ 112 %{l_shtool} mkdir -f -p -m 755 \
118 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ 113 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
189 '%config %{l_prefix}/etc/mailman/*' 184 '%config %{l_prefix}/etc/mailman/*'
190 185
191 %files -f files 186 %files -f files
192 187
193 %clean 188 %clean
194 rm -rf $RPM_BUILD_ROOT
195 189
196 %post 190 %post
197 # add hook to MTA configuration 191 # add hook to MTA configuration
198 if [ $1 -eq 1 ]; then 192 if [ $1 -eq 1 ]; then
199 aliases_file=`$RPM_INSTALL_PREFIX/bin/openpkg rc --query MTA_aliases_file` 193 aliases_file=`$RPM_INSTALL_PREFIX/bin/openpkg rc --query MTA_aliases_file`

mercurial