Summary: ezmlm - high-speed mailing list manager for qmail.
Summary(pl): ezmlm - szybki mened¿er list dyskysyjnych dla qmail'a.
Name: ezmlm-idx
-%define IDX 0.40
+%define IDX 0.322
%define EZMLM 0.53
Version: %{EZMLM}_%{IDX}
-Release: 1
+Release: 2
Copyright: Check with djb@koobera.math.uic.edu
Group: Utilities/System
Group(pl): Narzêdzia/System
-Source0: ftp://koobera.math.uic.edu/pub/software/ezmlm-%{EZMLM}.tar.gz
+Source0: ftp://koobera.math.uic.edu/software/ezmlm-%{EZMLM}.tar.gz
Source1: ftp://ftp.id.wustl.edu/pub/patches/%{name}-%{IDX}.tar.gz
Source2: ftp://ftp.id.wustl.edu/pub/patches/ezman/ezman-0.32.html.tar.gz
Patch0: %{name}-opt.patch
+Patch1: %{name}-config.patch
URL: http://www.qmail.org/
Requires: qmail
Conflicts: ezmlm
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Qmail Mailing List Manager + Indexing, (Remote) Moderation, digest, make
-patches, multi-language, MIME, global-interface, easy-to-use.
+Qmail Mailing List Manager + Indexing, (Remote) Moderation, digest,
+make patches, multi-language, MIME, global-interface, easy-to-use.
%description -l pl
-Qmailowy Mened¿er List Dyskusyjnych + Indeksowanie, (Zdalne) Moderowanie,
-obs³uga wielu jêzyków, MIME, globalny-interfejs, prosta obs³uga.
+Qmailowy Mened¿er List Dyskusyjnych + Indeksowanie, (Zdalne)
+Moderowanie, obs³uga wielu jêzyków, MIME, globalny-interfejs, prosta
+obs³uga.
%prep
%setup -q -T -b 0 -n ezmlm-%{EZMLM}
%patch0 -p1
mv -f ezmlm-idx-%{IDX}/* .
-patch -s < idx.patch
+cat idx.patch | sed 's/conf-bin`/conf-bin2`/g' > idx2.patch
+patch -s < idx2.patch
+echo "%{_bindir}" > conf-bin2
+cat Makefile | sed 's/auto_bin `head -1 conf-bin`/auto_bin `head -1 conf-bin2`/g' > Makefile.pld
+mv -f Makefile.pld Makefile
%build
-make
-make man
+%{__make}
+%{__make} man
if [ -z "$LANG" ]; then
-make pl
+patch -s -p1 < %{PATCH1}
+%{__make} pl
else
-make $LANG
+%{__make} $LANG
fi
tar zxf %{SOURCE2}
echo "$RPM_BUILD_ROOT%{_bindir}" > conf-bin
echo "$RPM_BUILD_ROOT%{_mandir}" > conf-man
-install -d $RPM_BUILD_ROOT/etc
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/ezmlm
install -d $RPM_BUILD_ROOT%{_bindir}
install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5}
-install ezmlmrc $RPM_BUILD_ROOT/etc
+install ezmlmrc $RPM_BUILD_ROOT%{_sysconfdir}/ezmlm
-make setup
+%{__make} setup
gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man{1,5}/*
%doc BLURB CHANGES CHANGES.idx FAQ.idx README README.idx
%doc SYSDEPS TARGETS UPGRADE.idx DOWNGRADE.idx ezmlmrc
-%doc ezmlmrc.*[a-zA-Z] ezman utils
+%doc ezmlmrc.*[a-zA-Z] ezman
-%attr(755,root,root) /usr/bin/ezmlm-*
+%attr(755,root,root) %dir %{_sysconfdir}/ezmlm
+%attr(755,root,root) %{_bindir}/ezmlm-*
%attr(644,root,root) %{_mandir}/man[15]/*
-%attr(644,root,root) %config %verify(not size mtime md5) /etc/*
+%attr(644,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/ezmlm/*