This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
mailx/mailx.spec
Silvan Calarco bc53a12ee4 rebuilt in bindir
applied patch set from Fedora [release 12.5-3mamba;Mon Apr 17 2023]
2024-01-06 06:53:04 +01:00

114 lines
3.8 KiB
RPMSpec

Name: mailx
Version: 12.5
Release: 3mamba
Summary: A simple mail user agent for Unix systems derived from Berkeley Mail
Group: Applications/Networking
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://heirloom.sourceforge.net/mailx.html
Source: http://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_%{version}.orig.tar.gz
Patch0: mailx-12.5-openssl-1.1.patch
Patch1: mailx-12.5-config.patch
Patch2: mailx-12.5-pager.patch
Patch3: mailx-12.5-lzw.patch
Patch4: mailx-12.5-collect.patch
Patch5: mailx-12.5-usage.patch
Patch6: mailx-12.5-man-page-fixes.patch
Patch7: mailx-12.5-outof-Introduce-expandaddr-flag.patch
Patch8: mailx-12.5-Unconditionally-require-wordexp-support.patch
Patch9: mailx-12.5-globname-Invoke-wordexp-with-WRDE_NOCMD-CVE-2004-277.patch
Patch10: mailx-12.5-unpack-Disable-option-processing-for-email-addresses.patch
Patch11: mailx-12.5-fname-null.patch
Patch12: mailx-12.5-empty-from.patch
Patch13: mailx-12.5-nss-hostname-matching.patch
Patch14: mailx-12.5-encsplit.patch
Patch15: mailx-12.5-no-SSLv3.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgss-devel
BuildRequires: libopenssl-devel
## AUTOBUILDREQ-END
Provides: /bin/mailx
%description
Heirloom mailx (previously known as nail) is a mail user agent for Unix systems. Highlights are:
- Derived from Berkeley Mail 8.1. An interface like the original Berkeley one is still optionally available;
- Is a free implementation of the System V mailx command and features an interface like that by default.
%debug_package
%prep
%setup -q -n heirloom-mailx-%{version}
%define _default_patch_fuzz 2
%patch 0 -p1
%patch 1 -p1 -b .config
%patch 2 -p1 -b .pager
%patch 3 -p1 -b .lzw
%patch 4 -p1 -b .collect
%patch 5 -p1 -b .usage
%patch 6 -p1 -b .man-page-fixes
%patch 7 -p1 -b .outof-Introduce-expandaddr-flag
%patch 8 -p1 -b .Unconditionally-require-wordexp-support
%patch 9 -p1 -b .globname-Invoke-wordexp-with-WRDE_NOCMD-CVE-2004-277
%patch 10 -p1 -b .unpack-Disable-option-processing-for-email-addresses
%patch 11 -p1 -b .fname-null
%patch 12 -p1 -b .empty-from
%patch 13 -p1 -b .nss-hostname-matching
%patch 14 -p1 -b .encsplit
%patch 15 -p1 -b .no-SSLv3
%build
%make PREFIX=%{_prefix}
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \
PREFIX=%{_prefix} \
MANDIR=%{_mandir} \
UCBINSTALL=%{__install} \
DESTDIR=%{buildroot} \
STRIP=/bin/true
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/nail.rc
%{_bindir}/mailx
%{_mandir}/man1/mailx.1*
%changelog
* Mon Apr 17 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 12.5-3mamba
- rebuilt in bindir
- applied patch set from Fedora
* Tue Dec 15 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 12.5-2mamba
- rebuilt with debug package and openssl 1.1 patch
* Sat Apr 30 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 12.5-1mamba
- update to 12.5
* Sat Apr 30 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 12.4-3mamba
- rebuilt with openssl 1.0.2g
* Mon Mar 14 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 12.4-2mamba
- rebuilt with openssl 1.0
* Tue Sep 30 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 12.4-1mamba
- automatic update by autodist
* Sun May 20 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 12.2-2mamba
- rebuilt
* Sat May 19 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 12.2-1mamba
- update to 12.2
* Tue Jun 17 2003 Silvan Calarco <silvan.calarco@qinet.it> 8.1.1-2qilnx
- added /bin/mailx symlink to /bin/mail
* Thu Jun 12 2003 Silvan Calarco <silvan.calarco@qinet.it> 8.1.1-1qilnx
- first build