]> git.pld-linux.org Git - packages/ezmlm-idx.git/blob - ezmlm-idx.spec
a854a6585fb8e8dc8f1ebcbebf63af807c8559a6
[packages/ezmlm-idx.git] / ezmlm-idx.spec
1 Summary:        ezmlm - high-speed mailing list manager for qmail.
2 Summary(pl):    ezmlm - szybki mened¿er list dyskysyjnych dla qmail'a.
3 Name:           ezmlm-idx
4 %define  IDX  0.40
5 %define  EZMLM  0.53
6 Version:        %{EZMLM}_%{IDX}
7 Release:        3
8 Copyright:      Check with djb@koobera.math.uic.edu
9 Group:          Utilities/System
10 Group(pl):      Narzêdzia/System
11 Source0:        ftp://koobera.math.uic.edu/pub/software/ezmlm-0.53.tar.gz
12 Source1:        ftp://ftp.id.wustl.edu/pub/patches/%{name}-0.40.tar.gz
13 Source2:        ftp://ftp.id.wustl.edu/pub/patches/ezman/ezman-0.32.html.tar.gz
14 Patch0:         %{name}-opt.patch
15 Patch1:         %{name}-config.patch
16 URL:            http://www.qmail.org/
17 Requires:       qmail
18 Conflicts:      ezmlm
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Qmail Mailing List Manager + Indexing, (Remote) Moderation, digest, make
23 patches, multi-language, MIME, global-interface, easy-to-use.
24
25 %description -l pl
26 Qmailowy Mened¿er List Dyskusyjnych + Indeksowanie, (Zdalne) Moderowanie,
27 obs³uga wielu jêzyków, MIME, globalny-interfejs, prosta obs³uga.
28
29 %prep
30 %setup -q -T -b 0 -n ezmlm-%{EZMLM}
31 %setup -q -D -T -a 1 -n ezmlm-%{EZMLM}
32 %patch0 -p1
33
34 mv -f ezmlm-idx-%{IDX}/* .
35 cat idx.patch | sed 's/conf-bin`/conf-bin2`/g' > idx2.patch
36 patch -s < idx2.patch
37 echo "%{_bindir}" > conf-bin2
38 cat Makefile | sed 's/auto_bin `head -1 conf-bin`/auto_bin `head -1 conf-bin2`/g' > Makefile.pld
39 mv -f Makefile.pld Makefile
40
41 %build
42 make
43 make man
44 if [ -z "$LANG" ]; then
45 patch -s -p1 < %{PATCH1}
46 make pl
47 else
48 make $LANG
49 fi
50 tar zxf %{SOURCE2}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 echo "$RPM_BUILD_ROOT%{_bindir}" > conf-bin
55 echo "$RPM_BUILD_ROOT%{_mandir}" > conf-man
56
57 install -d $RPM_BUILD_ROOT/etc/ezmlm
58 install -d $RPM_BUILD_ROOT%{_bindir}
59 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5}
60
61 install ezmlmrc $RPM_BUILD_ROOT/etc/ezmlm
62
63 make setup
64
65 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man{1,5}/*
66
67 strip $RPM_BUILD_ROOT%{_bindir}/ezmlm-* || :
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74
75 %doc BLURB CHANGES CHANGES.idx FAQ.idx  README README.idx 
76 %doc SYSDEPS TARGETS UPGRADE.idx  DOWNGRADE.idx ezmlmrc 
77 %doc ezmlmrc.*[a-zA-Z] ezman 
78
79 %attr(755,root,root) %dir /etc/ezmlm
80 %attr(755,root,root) /usr/bin/ezmlm-*
81 %attr(644,root,root) %{_mandir}/man[15]/*
82 %attr(644,root,root) %config %verify(not size mtime md5) /etc/ezmlm/*
This page took 0.275521 seconds and 3 git commands to generate.