SHA256
1
0
forked from pool/mailx
mailx/mailx.spec

196 lines
6.8 KiB
RPMSpec

#
# spec file for package mailx (Version 12.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: mailx
BuildRequires: krb5-devel openssl-devel pcre postfix
Url: http://heirloom.sourceforge.net/mailx.html
License: BSD 3-Clause
Group: Productivity/Networking/Email/Utilities
Provides: mail
Requires: smtp_daemon
AutoReqProv: on
Version: 12.2
Release: 141
Summary: A MIME-Capable Implementation of the mailx Command
Source: mailx-%{version}.tar.bz2
Patch: mailx-%{version}.dif
Patch1: nail-11.25-path.dif
Patch2: mailx-12.1-replyto.patch
Patch3: nail-11.25-ttychar.dif
Patch4: nail-11.25-toaddr.dif
Patch5: mailx-%{version}-mime.dif
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.
Authors:
--------
Gunnar Ritter <Gunnar.Ritter@pluto.uni-freiburg.de>
%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
%patch -p0
%build
CC=gcc
CFLAGS="${RPM_OPT_FLAGS} -pipe -D_GNU_SOURCE"
export CC CFLAGS
make PREFIX=/usr CC="$CC" CFLAGS="$CFLAGS"
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}
%clean
rm -rf $RPM_BUILD_ROOT
%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
%changelog
* Tue Apr 17 2007 werner@suse.de
- Update to heirloom mailx 12.2
- Add UTF-8 detection (bug #262658)
- Do not convert text attachments to terminal charset but send
character set (bug #262658)
- Improve the support of text/ MIME types other than text/plain
(bug #262658)
* Wed Nov 15 2006 werner@suse.de
- Do not send the mail to a reply-to address (bug #218447)
* Wed Sep 27 2006 werner@suse.de
- Avoid to feed empty strings into mime if empty results leads
to an error like it does for an empty ORGANIZATION variable
* Thu Jul 20 2006 werner@suse.de
- Update to mailx version 12.1 the successor of nail
* Better handling of base64 encoding
* Support for SendmailX
- Add a workaround for Ctrl-H used in kernel messages (#189974)
- Do not convert 8bit encodings to ASCII but use quoted printable
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006 schwab@suse.de
- Don't strip binaries.
* Mon Oct 17 2005 werner@suse.de
- Update to nail 11.25
* Port all out patches to this version
* Use dummy option for the reply-to patch because the double
colon feature of the glibc's getopt does not work
* New: ssl and krb5 support
* Mon Aug 30 2004 werner@suse.de
- Update to bugfix release 11.4
* Thu Aug 19 2004 werner@suse.de
- Make it option compatible with old mail program
- Update to 11.3
* Tue Aug 17 2004 werner@suse.de
- Update to 11.2
* Fri Mar 26 2004 mmj@suse.de
- Add postfix to # neededforbuild
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr
* Mon Dec 08 2003 werner@suse.de
- Update to version 10.6
* Tue Nov 11 2003 werner@suse.de
- Fix handling of multiword e-mail addresses (bug #32115)
* Wed Jul 30 2003 werner@suse.de
- Use charset of locale as default encoding if not set
* Wed Jul 02 2003 ro@suse.de
- added symlink /usr/bin/mail (again)
* Wed Jul 02 2003 werner@suse.de
- Update to nail 10.5
* Thu Feb 27 2003 werner@suse.de
- Fix replyto patch for Replay and replay case
* Mon Feb 03 2003 werner@suse.de
- Don't eat option id `+' isn't used anymore
- Accept comma seperated `to' list on command line
* Mon Jan 27 2003 sf@suse.de
- removed '+' from optarg string to be able to mix
argument order
* Thu Dec 19 2002 werner@suse.de
- Move from mail-8.1.1 to nail-10.3 due of getting RFC 2046
- Port the reply-to patch to nail-10.3 in extension to replyto
variable of nail configuration
* Thu Mar 07 2002 werner@suse.de
- Include, enhance and test the reply-to patch from poc@pocnet.net.
Useful for system notify mails behind firewalls or from header
rewrite because those mails arn't uniq without reply address.
* Sat May 12 2001 schwab@suse.de
- Fix missing declarations.
* Wed Nov 22 2000 werner@suse.de
- Allow `/' within valid mail addresses
- Strip leading + of file name on command line
* Fri Oct 06 2000 kukuk@suse.de
- change group tag
* Wed May 24 2000 uli@suse.de
- moved docs to /usr/share
* Sun Feb 27 2000 kukuk@suse.de
- Move /usr/man -> /usr/share/man
* Mon Sep 20 1999 ro@suse.de
- added requires smtp_daemon
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Mar 23 1999 werner@suse.de
- Add pine format for date
* Mon Mar 22 1999 werner@suse.de
- Add a security fix
- Correct a old security fix to make it work
* Thu Jun 25 1998 werner@suse.de
- No gid mail and not sgid mail: we do not use them
* Thu Jun 25 1998 werner@suse.de
- Even if we are safe by dropping edid we want no buffer overflow
- Use IOSAFE implementation for glibc instead of fpurge
* Thu Jun 25 1998 werner@suse.de
- Move from old debian version 8.5.5 (5.5-kw) to OpenBSD 8.1 release
plus some changes from debian, redhat, and some own.
* Wed Feb 05 1997 werner@suse.de
- Using mailx-5.5-kw/8.5.5-debian for mail
- Some changes to get emacs date mark on work in mail folders
- Some clean up in code