2 # - version 0.43 is out
5 Summary: ezmlm - high-speed mailing list manager for qmail
6 Summary(pl.UTF-8): ezmlm - szybki zarządca list dyskysyjnych dla qmaila
8 Version: %{ezmlm_ver}_%{idx_ver}
11 License: DJB (base ezmlm), GPL (ezmlm-idx additions) - non distributable as a whole?
12 Group: Applications/System
13 Source0: http://cr.yp.to/software/ezmlm-%{ezmlm_ver}.tar.gz
14 # Source0-md5: 108c632caaa8cdbfd3041e6c449191b2
15 Source1: http://gd.tuwien.ac.at/infosys/mail/qmail/ezmlm-patches/%{name}-%{idx_ver}.tar.gz
16 # Source1-md5: c6137114060cff19301a956e73d46fc0
17 Source2: http://gd.tuwien.ac.at/infosys/mail/qmail/ezmlm-patches/ezman.html.tar.gz
18 # Source2-md5: 3ebdd5289f302063d21be43aaeef0585
19 Patch0: %{name}-opt.patch
20 Patch1: ezmlm-glibc.patch
21 Patch2: %{name}-DESTDIR.patch
22 URL: http://www.ezmlm.org/
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Qmail mailing list manager + indexing, (remote) moderation, digest,
29 make patches, multi-language, MIME, global-interface, easy-to-use.
31 %description -l pl.UTF-8
32 Qmailowy zarządca list dyskusyjnych + indeksowanie, (zdalne)
33 moderowanie, obsługa wielu języków, MIME, globalny-interfejs, prosta
37 %setup -q -n ezmlm-%{ezmlm_ver} -a1
42 mv -f ezmlm-idx-%{idx_ver}/* .
43 cat idx.patch | sed 's/conf-bin`/conf-bin2`/g' > idx2.patch
45 echo "%{_bindir}" > conf-bin2
46 cat Makefile | sed 's/auto_bin `head -n 1 conf-bin`/auto_bin `head -n 1 conf-bin2`/g' > Makefile.pld
47 mv -f Makefile.pld Makefile
49 mv -f ezmlmrc.pl ezmlmrc.pl.org
50 echo "%{idx_ver} - This must be on 1 and start in pos 1" > ezmlmrc.pl
51 cat ezmlmrc.pl.org >> ezmlmrc.pl
59 rm -rf $RPM_BUILD_ROOT
60 echo "%{_bindir}" > conf-bin
61 echo "%{_mandir}" > conf-man
63 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ezmlm
64 install -d $RPM_BUILD_ROOT%{_bindir}
65 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5}
67 install ezmlmrc $RPM_BUILD_ROOT%{_sysconfdir}/ezmlm
70 DESTDIR=$RPM_BUILD_ROOT
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
78 %doc BLURB CHANGES CHANGES.idx FAQ.idx README README.idx
79 %doc SYSDEPS TARGETS UPGRADE.idx DOWNGRADE.idx ezmlmrc
80 %doc ezmlmrc.*[a-zA-Z] ezman
82 %attr(755,root,root) %dir %{_sysconfdir}/ezmlm
83 %attr(755,root,root) %{_bindir}/ezmlm-*
85 %config %verify(not md5 mtime size) %{_sysconfdir}/ezmlm/*