SPECS: nail.spec - release 1.1 - made it a full blown replacement ...

baggins baggins at pld-linux.org
Mon Jun 13 19:49:15 CEST 2005


Author: baggins                      Date: Mon Jun 13 17:49:15 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- release 1.1
- made it a full blown replacement for mailx package

---- Files affected:
SPECS:
   nail.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SPECS/nail.spec
diff -u SPECS/nail.spec:1.7 SPECS/nail.spec:1.8
--- SPECS/nail.spec:1.7	Mon Mar 21 12:57:15 2005
+++ SPECS/nail.spec	Mon Jun 13 19:49:09 2005
@@ -3,7 +3,7 @@
 Summary(pl):	Nowy /bin/mail - "tradycyjny" sposób wysyłania poczty
 Name:		nail
 Version:	11.22
-Release:	1
+Release:	1.1
 License:	BSD
 Group:		Applications/Mail
 Source0:	http://dl.sourceforge.net/nail/%{name}-%{version}.tar.bz2
@@ -43,14 +43,28 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/etc/skel,/bin}
 
 install *.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT \
 	UCBINSTALL=/usr/bin/install \
-	PREFIX=%{_prefix}
+	PREFIX=%{_prefix} \
+	BINDIR=/bin
+
+cat <<EOF >$RPM_BUILD_ROOT/bin/mail
+#!/bin/sh
+env bsdcompat=1 /bin/nail
+EOF
+
+install nail.rc $RPM_BUILD_ROOT/etc/skel/.mailrc
+
+ln -sf ../../bin/mail $RPM_BUILD_ROOT%{_bindir}/Mail
+ln -sf nail $RPM_BUILD_ROOT%{_bindir}/mailx
+
+echo .so nail.1 > $RPM_BUILD_ROOT%{_mandir}/man1/mail.1
+echo .so nail.1 > $RPM_BUILD_ROOT%{_mandir}/man1/Mail.1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -59,7 +73,11 @@
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README TODO
 %config(noreplace) %verify(not md5 mtime size) /etc/nail.rc
-%attr(755,root,root) %{_bindir}/nail
+
+/etc/skel/.mailrc
+
+%attr(755,root,root) /bin/[mn]ail*
+%attr(755,root,root) %{_bindir}/Mail
 %{_mandir}/man1/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -68,6 +86,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2005/06/13 17:49:09  baggins
+- release 1.1
+- made it a full blown replacement for mailx package
+
 Revision 1.7  2005/03/21 11:57:15  matowy
 - up m5 & up to 11.22
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/nail.spec?r1=1.7&r2=1.8&f=u




More information about the pld-cvs-commit mailing list