]> git.pld-linux.org Git - packages/ezmlm-idx.git/blob - ezmlm-idx.spec
- updated patch1
[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.322
5 %define  EZMLM  0.53
6 Version:        %{EZMLM}_%{IDX}
7 Release:        2
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/software/ezmlm-%{EZMLM}.tar.gz
12 Source1:        ftp://ftp.id.wustl.edu/pub/patches/%{name}-%{IDX}.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,
23 make patches, multi-language, MIME, global-interface, easy-to-use.
24
25 %description -l pl
26 Qmailowy Mened¿er 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 -T -b 0 -n ezmlm-%{EZMLM}
32 %setup -q -D -T -a 1 -n ezmlm-%{EZMLM}
33 %patch0 -p1
34
35 mv -f ezmlm-idx-%{IDX}/* .
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 %build
43 %{__make}
44 %{__make} man
45 if [ -z "$LANG" ]; then
46 patch -s -p1 < %{PATCH1}
47 %{__make} pl
48 else
49 %{__make} $LANG
50 fi
51 tar zxf %{SOURCE2}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 echo "$RPM_BUILD_ROOT%{_bindir}" > conf-bin
56 echo "$RPM_BUILD_ROOT%{_mandir}" > conf-man
57
58 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ezmlm
59 install -d $RPM_BUILD_ROOT%{_bindir}
60 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5}
61
62 install ezmlmrc $RPM_BUILD_ROOT%{_sysconfdir}/ezmlm
63
64 %{__make} setup
65
66 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man{1,5}/*
67
68 strip $RPM_BUILD_ROOT%{_bindir}/ezmlm-* || :
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
74 %defattr(644,root,root,755)
75
76 %doc BLURB CHANGES CHANGES.idx FAQ.idx  README README.idx 
77 %doc SYSDEPS TARGETS UPGRADE.idx  DOWNGRADE.idx ezmlmrc 
78 %doc ezmlmrc.*[a-zA-Z] ezman 
79
80 %attr(755,root,root) %dir %{_sysconfdir}/ezmlm
81 %attr(755,root,root) %{_bindir}/ezmlm-*
82 %attr(644,root,root) %{_mandir}/man[15]/*
83 %attr(644,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/ezmlm/*
This page took 0.062753 seconds and 3 git commands to generate.