]> git.pld-linux.org Git - packages/ezmlm-idx.git/blob - ezmlm-idx.spec
- massive attack s/pld.org.pl/pld-linux.org/
[packages/ezmlm-idx.git] / ezmlm-idx.spec
1 %define ezmlm_ver       0.53
2 %define idx_ver         0.40
3 Summary:        ezmlm - high-speed mailing list manager for qmail
4 Summary(pl):    ezmlm - szybki zarz±dca list dyskysyjnych dla qmaila
5 Name:           ezmlm-idx
6 Version:        %{ezmlm_ver}_%{idx_ver}
7 Release:        2       
8 Epoch:          1
9 License:        DJB (base ezmlm), GPL (ezmlm-idx additions) - non distributable as a whole?
10 Group:          Applications/System
11 Source0:        http://cr.yp.to/software/ezmlm-%{ezmlm_ver}.tar.gz
12 Source1:        http://gd.tuwien.ac.at/infosys/mail/qmail/ezmlm-patches/%{name}-%{idx_ver}.tar.gz
13 Source2:        http://gd.tuwien.ac.at/infosys/mail/qmail/ezmlm-patches/ezman.html.tar.gz
14 Patch0:         %{name}-opt.patch
15 Patch1:         ezmlm-glibc.patch
16 URL:            http://www.ezmlm.org/
17 BuildRequires:  groff
18 Obsoletes:      ezmlm
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Qmail mailing list manager + indexing, (remote) moderation, digest,
23 make patches, multi-language, MIME, global-interface, easy-to-use.
24
25 %description -l pl
26 Qmailowy zarz±dca list dyskusyjnych + indeksowanie, (zdalne)
27 moderowanie, obs³uga wielu jêzyków, MIME, globalny-interfejs, prosta
28 obs³uga.
29
30 %prep
31 %setup -q -n ezmlm-%{ezmlm_ver} -a1
32 %patch0 -p1
33 %patch1
34
35 mv -f ezmlm-idx-%{idx_ver}/* .
36 cat idx.patch | sed 's/conf-bin`/conf-bin2`/g' > idx2.patch
37 patch -s < idx2.patch
38 echo "%{_bindir}" > conf-bin2
39 cat Makefile | sed 's/auto_bin `head -1 conf-bin`/auto_bin `head -1 conf-bin2`/g' > Makefile.pld
40 mv -f Makefile.pld Makefile
41
42 mv -f ezmlmrc.pl ezmlmrc.pl.org
43 echo "%{idx_ver} - This must be on 1 and start in pos 1" > ezmlmrc.pl
44 cat ezmlmrc.pl.org >> ezmlmrc.pl
45
46 %build
47 %{__make}
48 %{__make} man
49 tar zxf %{SOURCE2}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 echo "$RPM_BUILD_ROOT%{_bindir}" > conf-bin
54 echo "$RPM_BUILD_ROOT%{_mandir}" > conf-man
55
56 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ezmlm
57 install -d $RPM_BUILD_ROOT%{_bindir}
58 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5}
59
60 install ezmlmrc $RPM_BUILD_ROOT%{_sysconfdir}/ezmlm
61
62 %{__make} setup
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69
70 %doc BLURB CHANGES CHANGES.idx FAQ.idx  README README.idx
71 %doc SYSDEPS TARGETS UPGRADE.idx  DOWNGRADE.idx ezmlmrc
72 %doc ezmlmrc.*[a-zA-Z] ezman
73
74 %attr(755,root,root) %dir %{_sysconfdir}/ezmlm
75 %attr(755,root,root) %{_bindir}/ezmlm-*
76 %attr(644,root,root) %{_mandir}/man[15]/*
77 %attr(644,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/ezmlm/*
This page took 0.063322 seconds and 3 git commands to generate.