2006-12-19 00:17:04 +01:00
|
|
|
#
|
2011-04-09 23:34:13 +02:00
|
|
|
# spec file for package mailx
|
2006-12-19 00:17:04 +01:00
|
|
|
#
|
2012-03-23 15:09:16 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:04 +01:00
|
|
|
#
|
2008-10-23 04:39:33 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:17:04 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-10-23 04:39:33 +02:00
|
|
|
|
2006-12-19 00:17:04 +01:00
|
|
|
Name: mailx
|
2012-03-23 15:09:16 +01:00
|
|
|
BuildRequires: krb5-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pcre
|
|
|
|
BuildRequires: postfix
|
2008-10-23 04:39:33 +02:00
|
|
|
Url: http://heirloom.sourceforge.net/mailx.html
|
2006-12-19 00:17:04 +01:00
|
|
|
Provides: mail
|
2011-02-03 12:01:03 +01:00
|
|
|
Recommends: smtp_daemon
|
2011-05-13 13:37:37 +02:00
|
|
|
Version: 12.5
|
2012-03-23 15:09:16 +01:00
|
|
|
Release: 0
|
2006-12-19 00:17:04 +01:00
|
|
|
Summary: A MIME-Capable Implementation of the mailx Command
|
2012-03-23 15:09:16 +01:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Networking/Email/Utilities
|
2006-12-19 00:17:04 +01:00
|
|
|
Source: mailx-%{version}.tar.bz2
|
|
|
|
Patch: mailx-%{version}.dif
|
|
|
|
Patch1: nail-11.25-path.dif
|
2011-05-13 13:37:37 +02:00
|
|
|
Patch2: mailx-%{version}-replyto.patch
|
2006-12-19 00:17:04 +01:00
|
|
|
Patch3: nail-11.25-ttychar.dif
|
|
|
|
Patch4: nail-11.25-toaddr.dif
|
|
|
|
Patch5: mailx-%{version}-mime.dif
|
2010-04-20 02:07:59 +02:00
|
|
|
Patch6: mailx-fix-openssl.patch
|
2006-12-19 00:17:04 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Nail is a mail user agent derived from Berkeley Mail 8.1. It is
|
|
|
|
intended to provide the functionality of the POSIX.2 mailx command with
|
|
|
|
additional support for MIME messages, POP3, and SMTP. In recent system
|
|
|
|
environments, nail is Unicode/UTF-8 capable. Further, it contains some
|
|
|
|
minor enhancements like the ability to set a "From:" address.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n mailx-%{version}
|
|
|
|
%patch1 -p0 -b .path
|
|
|
|
%patch2 -p0 -b .rplyto
|
|
|
|
%patch3 -p0 -b .ttychr
|
|
|
|
%patch4 -p0 -b .toaddr
|
|
|
|
%patch5 -p0 -b .mime
|
2011-05-13 13:37:37 +02:00
|
|
|
%patch6 -p0 -b .ssl
|
2006-12-19 00:17:04 +01:00
|
|
|
%patch -p0
|
|
|
|
|
|
|
|
%build
|
|
|
|
CC=gcc
|
|
|
|
CFLAGS="${RPM_OPT_FLAGS} -pipe -D_GNU_SOURCE"
|
|
|
|
export CC CFLAGS
|
2011-02-03 12:01:03 +01:00
|
|
|
$SHELL ./makeconfig
|
2010-01-14 16:47:09 +01:00
|
|
|
make %{?jobs:-j%jobs} PREFIX=/usr CC="$CC" CFLAGS="$CFLAGS"
|
2006-12-19 00:17:04 +01:00
|
|
|
tbl < mailx.1 | groff -mandocdb -Tps > manual.ps
|
|
|
|
gzip -9f manual.ps
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install PREFIX=/usr DESTDIR=${RPM_BUILD_ROOT}
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}/bin
|
|
|
|
mkdir ${RPM_BUILD_ROOT}/bin
|
|
|
|
ln -sf ../usr/bin/mailx ${RPM_BUILD_ROOT}/bin/mail
|
|
|
|
ln -sf mailx ${RPM_BUILD_ROOT}/usr/bin/Mail
|
|
|
|
ln -sf mailx ${RPM_BUILD_ROOT}/usr/bin/mail
|
|
|
|
ln -sf mailx.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/Mail.1.gz
|
|
|
|
ln -sf mailx.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/mail.1.gz
|
|
|
|
install -m 0644 mail.rc ${RPM_BUILD_ROOT}/etc
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}
|
|
|
|
|
2008-10-23 04:39:33 +02:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2006-12-19 00:17:04 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING README manual.ps.gz nail.rc
|
|
|
|
/bin/mail
|
|
|
|
%config /etc/mail.rc
|
|
|
|
/usr/bin/Mail
|
|
|
|
/usr/bin/mail
|
|
|
|
/usr/bin/mailx
|
|
|
|
%doc %{_mandir}/man1/Mail.1.gz
|
|
|
|
%doc %{_mandir}/man1/mail.1.gz
|
|
|
|
%doc %{_mandir}/man1/mailx.1.gz
|
|
|
|
|
2007-04-18 00:40:16 +02:00
|
|
|
%changelog
|