]> git.pld-linux.org Git - packages/ezmlm-idx.git/blobdiff - ezmlm-idx.spec
- converted to UTF-8
[packages/ezmlm-idx.git] / ezmlm-idx.spec
index 831ac0d898e5e94d18322a347cd66e1f7971486b..9ad958abcea75de30cc98fd90902e36127c5a16c 100644 (file)
@@ -1,59 +1,64 @@
-Summary:       ezmlm - high-speed mailing list manager for qmail.
-Summary(pl):   ezmlm - szybki mened¿er list dyskysyjnych dla qmail'a.
+# TODO
+#  - version 0.43 is out
+%define        ezmlm_ver       0.53
+%define        idx_ver         0.40
+Summary:       ezmlm - high-speed mailing list manager for qmail
+Summary(pl.UTF-8):   ezmlm - szybki zarządca list dyskysyjnych dla qmaila
 Name:          ezmlm-idx
-%define  IDX  0.40
-%define  EZMLM  0.53
-Version:       %{EZMLM}_%{IDX}
-Release:       3
-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-0.53.tar.gz
-Source1:       ftp://ftp.id.wustl.edu/pub/patches/%{name}-0.40.tar.gz
-Source2:       ftp://ftp.id.wustl.edu/pub/patches/ezman/ezman-0.32.html.tar.gz
+Version:       %{ezmlm_ver}_%{idx_ver}
+Release:       2.2
+Epoch:         1
+License:       DJB (base ezmlm), GPL (ezmlm-idx additions) - non distributable as a whole?
+Group:         Applications/System
+Source0:       http://cr.yp.to/software/ezmlm-%{ezmlm_ver}.tar.gz
+# Source0-md5: 108c632caaa8cdbfd3041e6c449191b2
+Source1:       http://gd.tuwien.ac.at/infosys/mail/qmail/ezmlm-patches/%{name}-%{idx_ver}.tar.gz
+# Source1-md5: c6137114060cff19301a956e73d46fc0
+Source2:       http://gd.tuwien.ac.at/infosys/mail/qmail/ezmlm-patches/ezman.html.tar.gz
+# Source2-md5: 3ebdd5289f302063d21be43aaeef0585
 Patch0:                %{name}-opt.patch
-Patch1:                %{name}-config.patch
-URL:           http://www.qmail.org/
-Requires:      qmail
-Conflicts:     ezmlm
+Patch1:                ezmlm-glibc.patch
+Patch2:                %{name}-DESTDIR.patch
+URL:           http://www.ezmlm.org/
+BuildRequires: groff
+Obsoletes:     ezmlm
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Qmail Mailing List Manager + Indexing, (Remote) Moderation, digest,
+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.
+%description -l pl.UTF-8
+Qmailowy zarządca 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}
-%setup -q -D -T -a 1 -n ezmlm-%{EZMLM}
+%setup -q -n ezmlm-%{ezmlm_ver} -a1
 %patch0 -p1
+%patch1
+%patch2 -p1
 
-mv -f ezmlm-idx-%{IDX}/* .
+mv -f ezmlm-idx-%{idx_ver}/* .
 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
+cat Makefile | sed 's/auto_bin `head -n 1 conf-bin`/auto_bin `head -n 1 conf-bin2`/g' > Makefile.pld
 mv -f Makefile.pld Makefile
 
+mv -f ezmlmrc.pl ezmlmrc.pl.org
+echo "%{idx_ver} - This must be on 1 and start in pos 1" > ezmlmrc.pl
+cat ezmlmrc.pl.org >> ezmlmrc.pl
+
 %build
 %{__make}
 %{__make} man
-if [ -z "$LANG" ]; then
-patch -s -p1 < %{PATCH1}
-%{__make} pl
-else
-%{__make} $LANG
-fi
 tar zxf %{SOURCE2}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-echo "$RPM_BUILD_ROOT%{_bindir}" > conf-bin
-echo "$RPM_BUILD_ROOT%{_mandir}" > conf-man
+echo "%{_bindir}" > conf-bin
+echo "%{_mandir}" > conf-man
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ezmlm
 install -d $RPM_BUILD_ROOT%{_bindir}
@@ -61,11 +66,8 @@ install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5}
 
 install ezmlmrc $RPM_BUILD_ROOT%{_sysconfdir}/ezmlm
 
-%{__make} setup
-
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man{1,5}/*
-
-strip $RPM_BUILD_ROOT%{_bindir}/ezmlm-* || :
+%{__make} setup \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -73,11 +75,11 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 
-%doc BLURB CHANGES CHANGES.idx FAQ.idx  README README.idx 
-%doc SYSDEPS TARGETS UPGRADE.idx  DOWNGRADE.idx ezmlmrc 
-%doc ezmlmrc.*[a-zA-Z] ezman 
+%doc BLURB CHANGES CHANGES.idx FAQ.idx  README README.idx
+%doc SYSDEPS TARGETS UPGRADE.idx  DOWNGRADE.idx ezmlmrc
+%doc ezmlmrc.*[a-zA-Z] ezman
 
 %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) %{_sysconfdir}/ezmlm/*
+%{_mandir}/man[15]/*
+%config %verify(not md5 mtime size) %{_sysconfdir}/ezmlm/*
This page took 0.100991 seconds and 4 git commands to generate.