]> git.pld-linux.org Git - packages/nmh.git/blobdiff - nmh.spec
- s/Copyright/License/, pl translations
[packages/nmh.git] / nmh.spec
index 264b1b0ca484437d225a255b19e4f27cd3d37295..a05de7782f8aad4681113a3bbb6e54b6ff75fc4c 100644 (file)
--- a/nmh.spec
+++ b/nmh.spec
-Summary: A capable mail handling system with a command line interface.
-Name: nmh
-Obsoletes: mh
-Provides: mh
-Version: 0.27
-Release: 8
-Requires: smtpdaemon
-Copyright: freeware
-Group: Applications/Internet
-Source0: ftp://ftp.math.gatech.edu/pub/nmh/nmh-0.27.tar.gz
-Patch0: nmh-0.24-config.patch
-Patch1: nmh-0.27-buildroot.patch
-Patch2: nmh-0.27-security.patch
-Patch3: nmh-0.27-compat21.patch
-Buildroot: /var/tmp/%{name}-root
+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:       2
+License:       freeware
+Group:         Applications/Mail
+Group(de):     Applikationen/Post
+Group(pl):     Aplikacje/Poczta
+Group(pt):     Aplicações/Correio Eletrônico
+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
+Obsoletes:     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 single comprehensive program.  Instead, it consists of a number
-of fairly simple single-purpose programs for sending, receiving,
-saving, retrieving and otherwise manipulating email messages.  You
-can freely intersperse nmh commands with other shell commands or
-write custom scripts which utilize nmh commands.  If you want to use
-nmh as a true email user agent, you'll want to also install exmh to
-provide a user interface for it--nmh only has a command line interface.
+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
+single comprehensive program. Instead, it consists of a number of
+fairly simple single-purpose programs for sending, receiving, saving,
+retrieving and otherwise manipulating email messages. You can freely
+intersperse nmh commands with other shell commands or write custom
+scripts which utilize nmh commands. If you want to use nmh as a true
+email user agent, you'll want to also install exmh to provide a user
+interface for it--nmh only has a command line interface.
 
-If you'd like to use nmh commands in shell scripts, or if you'd like to
-use nmh and exmh together as your email user agent, you should install
-nmh.
+%description -l pl
+Nmh jest systemem pocztowym bazuj±cym na systemie MH, w wiêkoszo¶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
+swobodnie umieszczaæ polecenia nmh miêdzy innymi poleceniami pow³oki
+lub pisaæ skrypty korzystaj±ce z poleceñ nmh. Je¶li chcesz u¿ywaæ nmh
+jako prawdziwego programu pocztowego, pomy¶l o zainstalowaniu exmh,
+daj±cego interfejs u¿ytkownika - samo nmh mo¿na obs³ugiwaæ tylko z
+linii poleceñ.
 
 %prep
 %setup -q
-%patch0 -p1 -b .config
-%patch1 -p1 -b .buildroot
-%patch2 -p1 -b .security
-%patch3 -p1 -b .compat21
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
-LIBS=-lgdbm ./configure --prefix=/usr \
-                       --exec-prefix=/usr \
-                       --bindir=/usr/bin \
-                       --libdir=/usr/lib/nmh \
-                       --sysconfdir=/etc/nmh \
-                       --with-editor=/bin/vi
+LIBS="-lgdbm"
+export LIBS
+%configure2_13 \
+       --with-editor=/bin/vi
 
-make
+%{__make}
 
 %install
-DESTDIR=$RPM_BUILD_ROOT make install
-strip `file $RPM_BUILD_ROOT/usr/bin/* | grep ELF | cut -d':' -f 1`
+rm -rf $RPM_BUILD_ROOT
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-# XXX unnecessary because DOT_LOCKING is disabled
-# chown root.mail $RPM_BUILD_ROOT/usr/bin/inc
-# chmod 2755 $RPM_BUILD_ROOT/usr/bin/inc
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.old
+
+gzip -9nf COPYRIGHT DIFFERENCES FAQ MAIL.FILTERING README TODO VERSION 
+#\     ZSH.COMPLETION
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ ! -d /usr/bin/mh -a ! -L /usr/bin/mh ] ; then
-    ln -s . /usr/bin/mh
+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 /usr/lib/mh -a ! -L /usr/lib/mh ] ; then
-    ln -s nmh /usr/lib/mh
+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 /usr/bin/mh -a ! -L /usr/bin/mh ] ; then
-    ln -s . /usr/bin/mh
+if [ ! -d %{_bindir}/mh -a ! -L %{_bindir}/mh ] ; then
+       ln -sf . %{_bindir}/mh
 fi
-if [ ! -d /usr/lib/mh -a ! -L /usr/lib/mh ] ; then
-    ln -s nmh /usr/lib/mh
+if [ ! -d %{_usrlibdir}/mh -a ! -L %{_usrlibdir}/mh ] ; then
+       ln -sf nmh %{_usrlibdir}/mh
 fi
 
 %preun
-if [ $1 = 0 ]; then
-    [ ! -L /usr/bin/mh ] || rm -f /usr/bin/mh
-    [ ! -L /usr/lib/mh ] || rm -f /usr/lib/mh
+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(-,root,root)
-%doc COPYRIGHT DIFFERENCES FAQ MAIL.FILTERING README TODO VERSION ZSH.COMPLETION
-%dir /usr/lib/nmh
-%dir /etc/nmh
-%config /etc/nmh/*
-/usr/bin/*
-/usr/lib/nmh/*
-/usr/man/*/*
+%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}/*
+%{_mandir}/*/*
This page took 0.049444 seconds and 4 git commands to generate.