]> git.pld-linux.org Git - packages/nmh.git/blobdiff - nmh.spec
- for 1.1
[packages/nmh.git] / nmh.spec
index c8951cb315c10b52049acb173a50b3b853f056de..9da7ca794e1d888cf35f8d7ee26ed5b938be769b 100644 (file)
--- a/nmh.spec
+++ b/nmh.spec
@@ -1,23 +1,21 @@
 Summary:       A capable mail handling system with a command line interface
 Summary(pl):   System obs³ugi poczty z interfejsem z linii poleceñ
 Name:          nmh
-Provides:      mh
-Version:       1.0.4
-Release:       3
+Version:       1.1
+Release:       0.1
 License:       Freeware
 Group:         Applications/Mail
-Source0:       ftp://ftp.math.gatech.edu/pub/nmh/%{name}-%{version}.tar.gz
-Patch0:                %{name}-1.0.3-config.patch
-Patch1:                %{name}-1.0.3-buildroot.patch
-Patch2:                %{name}-1.0.3-compat21.patch
-Patch3:                %{name}-1.0.4-bug7246.patch
-Requires:      smtpdaemon
+Source0:       http://savannah.nongnu.org/download/nmh/%{name}-%{version}.tar.gz
+# Source0-md5: 060647c9c60514a2a86f7f194c830096
+Patch0:                %{name}-DESTDIR.patch
+Patch1:                %{name}-unquote.patch
+URL:           http://savannah.nongnu.org/projects/nmh/
+BuildRequires: gdbm-devel
+BuildRequires: ncurses-devel
 Obsoletes:     mh
+Provides:      mh
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _libdir         %{_prefix}/lib/nmh
-%define                _sysconfdir     /etc/nmh
-
 %description
 Nmh is an email system based on the MH email system and is intended to
 be a (mostly) compatible drop-in replacement for MH. Nmh isn't a
@@ -30,7 +28,7 @@ email user agent, you'll want to also install exmh to provide a user
 interface for it--nmh only has a command line interface.
 
 %description -l pl
-Nmh jest systemem pocztowym bazuj±cym na systemie MH, w wiêkoszo¶ci
+Nmh jest systemem pocztowym bazuj±cym na systemie MH, w wiêkszo¶ci
 kompatybilnym i mog±cym zast±piæ MH. Nmh nie jest pojedynczym
 programem - sk³ada siê z wielu prostych programów s³u¿±cych do jednej
 czynno¶ci (wysy³ania, odbierania, zapisywania, odczytywania...). Mo¿na
@@ -41,64 +39,41 @@ daj
 linii poleceñ.
 
 %prep
-%setup -q
+%setup -qn %{name}
 %patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
+%patch1 -p0
 
 %build
-LIBS="-lgdbm"
-export LIBS
-%configure2_13 \
-       --with-editor=/bin/vi
-
-%{__make}
-
+%configure \
+       --with-locking=fcntl \
+       --with-mts=sendmail \
+       --enable-pop
+%{__make} \
+       bindir=%{_bindir}/mh \
+       libdir=%{_libdir}/mh \
+       etcdir=%{_sysconfdir}/nmh
+       
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT SETGID_MAIL=
-
-rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.old
-
-gzip -9nf COPYRIGHT DIFFERENCES FAQ MAIL.FILTERING README TODO VERSION
-
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       SETGID_MAIL= \
+       bindir=%{_bindir}/mh \
+       libdir=%{_libdir}/mh \
+       etcdir=%{_sysconfdir}/nmh
+       
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-if [ ! -d %{_bindir}/mh -a ! -L %{_bindir}/mh ] ; then
-       ln -sf . %{_bindir}/mh
-fi
-if [ ! -d %{_usrlibdir}/mh -a ! -L %{_usrlibdir}/mh ] ; then
-       ln -sf nmh %{_usrlibdir}/mh
-fi
-if [ -d /etc/smrsh -a ! -L /etc/smrsh/slocal ] ; then
-       ln -sf %{_libdir}/slocal /etc/smrsh/slocal
-fi
-
-%triggerpostun -- mh, nmh <= 0.27-7
-if [ ! -d %{_bindir}/mh -a ! -L %{_bindir}/mh ] ; then
-       ln -sf . %{_bindir}/mh
-fi
-if [ ! -d %{_usrlibdir}/mh -a ! -L %{_usrlibdir}/mh ] ; then
-       ln -sf nmh %{_usrlibdir}/mh
-fi
-
-%preun
-if [ "$1" = "0" ]; then
-       [ ! -L %{_bindir}/mh ] || rm -f %{_bindir}/mh
-       [ ! -L %{_usrlibdir}/mh ] || rm -f %{_usrlibdir}/mh
-       [ ! -d /etc/smrsh -a -L /etc/smrsh/slocal ] || rm -f /etc/smrsh/slocal
-fi
-
 %files
 %defattr(644,root,root,755)
-%doc {COPYRIGHT,DIFFERENCES,FAQ,MAIL.FILTERING,README}.gz
-%doc {TODO,VERSION,ZSH.COMPLETION}.gz
-%dir %{_libdir}
-%dir %{_sysconfdir}
-%config %{_sysconfdir}/*
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/*
+%doc COPYRIGHT ChangeLog README docs/{COMP*,FAQ,MAIL*,README.*,TODO}
+%dir %{_bindir}/mh
+%dir %{_libdir}/mh
+%attr(755,root,root) %{_bindir}/mh/*
+%attr(755,root,root) %{_libdir}/mh/*
+
+%dir %{_sysconfdir}/nmh
+%config %{_sysconfdir}/nmh/*
+
 %{_mandir}/*/*
This page took 0.070915 seconds and 4 git commands to generate.