]> git.pld-linux.org Git - packages/ezmlm-idx.git/blob - ezmlm-idx.spec
- dropped pre-cvs changelog
[packages/ezmlm-idx.git] / ezmlm-idx.spec
1 # TODO
2 #  - version 0.43 is out
3 %define ezmlm_ver       0.53
4 %define idx_ver         0.40
5 Summary:        ezmlm - high-speed mailing list manager for qmail
6 Summary(pl.UTF-8):      ezmlm - szybki zarządca list dyskysyjnych dla qmaila
7 Name:           ezmlm-idx
8 Version:        %{ezmlm_ver}_%{idx_ver}
9 Release:        2.2
10 Epoch:          1
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/
23 BuildRequires:  groff
24 Obsoletes:      ezmlm
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Qmail mailing list manager + indexing, (remote) moderation, digest,
29 make patches, multi-language, MIME, global-interface, easy-to-use.
30
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
34 obsługa.
35
36 %prep
37 %setup -q -n ezmlm-%{ezmlm_ver} -a1
38 %patch0 -p1
39 %patch1
40 %patch2 -p1
41
42 mv -f ezmlm-idx-%{idx_ver}/* .
43 cat idx.patch | sed 's/conf-bin`/conf-bin2`/g' > idx2.patch
44 patch -s < 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
48
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
52
53 %build
54 %{__make}
55 %{__make} man
56 tar zxf %{SOURCE2}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 echo "%{_bindir}" > conf-bin
61 echo "%{_mandir}" > conf-man
62
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}
66
67 install ezmlmrc $RPM_BUILD_ROOT%{_sysconfdir}/ezmlm
68
69 %{__make} setup \
70         DESTDIR=$RPM_BUILD_ROOT
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77
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
81
82 %attr(755,root,root) %dir %{_sysconfdir}/ezmlm
83 %attr(755,root,root) %{_bindir}/ezmlm-*
84 %{_mandir}/man[15]/*
85 %config %verify(not md5 mtime size) %{_sysconfdir}/ezmlm/*
This page took 0.07185 seconds and 3 git commands to generate.