2c5869
# hardened build if not overridden
2c5869
%{!?_hardened_build:%global _hardened_build 1}
2c5869
2c5869
%if %{?_hardened_build}%{!?_hardened_build:0}
2c5869
%global hardened_flags -pie -Wl,-z,relro,-z,now
2c5869
%endif
2c5869
2c5869
Summary: Mail processing program
2c5869
Name: procmail
2c5869
Version: 3.22
2c5869
Release: 35%{?dist}
2c5869
License: GPLv2+ or Artistic
2c5869
Group: Applications/Internet
2c5869
# Source: ftp://ftp.procmail.org/pub/procmail/procmail-%{version}.tar.gz
2c5869
# The original source doesn't seem to be available anymore, using mirror
2c5869
Source: ftp://ftp.ucsb.edu/pub/mirrors/procmail/procmail-%{version}.tar.gz
2c5869
# Source2: http://www.linux.org.uk/~telsa/BitsAndPieces/procmailrc
2c5869
# The Telsa config file doesn't seem to be available anymore, using local copy
2c5869
Source2: procmailrc
2c5869
URL: http://www.procmail.org
2c5869
Patch0: procmail-3.22-rhconfig.patch
2c5869
Patch1: procmail-3.15.1-man.patch
2c5869
Patch2: procmail_3.22-8.debian.patch
2c5869
Patch4: procmail-3.22-truncate.patch
2c5869
Patch5: procmail-3.22-ipv6.patch
2c5869
Patch6: procmail-3.22-getline.patch
2c5869
Patch7: procmail-3.22-CVE-2014-3618.patch
2c5869
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2c5869
2c5869
%description
2c5869
Procmail can be used to create mail-servers, mailing lists, sort your
2c5869
incoming mail into separate folders/files (real convenient when subscribing
2c5869
to one or more mailing lists or for prioritising your mail), preprocess
2c5869
your mail, start any programs upon mail arrival (e.g. to generate different
2c5869
chimes on your workstation for different types of mail) or selectively
2c5869
forward certain incoming mail automatically to someone.
2c5869
2c5869
%prep
2c5869
%setup -q
2c5869
%patch0 -p1 -b .rhconfig
2c5869
%patch1 -p1
2c5869
%patch2 -p1
2c5869
%patch4 -p1 -b .truncate
2c5869
%patch5 -p1 -b .ipv6
2c5869
%patch6 -p1 -b .getline
2c5869
%patch7 -p1 -b .CVE-2014-3618
2c5869
2c5869
find examples -type f | xargs chmod 644
2c5869
2c5869
%build
2c5869
make RPM_OPT_FLAGS="$(getconf LFS_CFLAGS)" autoconf.h
2c5869
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS %{?hardened_flags} -Wno-comments $(getconf LFS_CFLAGS)"
2c5869
2c5869
%install
2c5869
rm -rf ${RPM_BUILD_ROOT}
2c5869
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
2c5869
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,5}
2c5869
2c5869
make \
2c5869
    BASENAME=${RPM_BUILD_ROOT}%{_prefix} MANDIR=${RPM_BUILD_ROOT}%{_mandir} \
2c5869
    install
2c5869
2c5869
cp debian/mailstat.1 ${RPM_BUILD_ROOT}%{_mandir}/man1
2c5869
cp -p %{SOURCE2} telsas_procmailrc
2c5869
2c5869
2c5869
%clean
2c5869
rm -rf ${RPM_BUILD_ROOT}
2c5869
2c5869
%files
2c5869
%defattr(-,root,root)
2c5869
%doc Artistic COPYING FAQ FEATURES HISTORY README KNOWN_BUGS examples telsas_procmailrc debian/QuickStart debian/README.Maildir
2c5869
2c5869
%{_bindir}/formail
2c5869
%attr(2755,root,mail) %{_bindir}/lockfile
2c5869
%{_bindir}/mailstat
2c5869
%attr(0755,root,mail) %{_bindir}/procmail
2c5869
2c5869
%{_mandir}/man[15]/*
2c5869
2c5869
%changelog
2c5869
* Thu Sep  4 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 3.22-35
2c5869
- Fixed buffer overflow in formail
2c5869
  Resolves: CVE-2014-3618
2c5869
2c5869
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.22-34
2c5869
- Mass rebuild 2014-01-24
2c5869
2c5869
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.22-33
2c5869
- Mass rebuild 2013-12-27
2c5869
2c5869
* Mon Feb  4 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 3.22-32
2c5869
- Updated sources URLs
2c5869
2c5869
* Tue Sep  4 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 3.22-31
2c5869
- Hardened build with PIE and full RELRO
2c5869
  Resolves: rhbz#853186
2c5869
2c5869
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.22-30
2c5869
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2c5869
2c5869
* Mon Jan 16 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 3.22-29
2c5869
- Rebuilt without NO_NFS_ATIME_HACK
2c5869
  Resolves: rhbz#666383
2c5869
2c5869
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.22-28
2c5869
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2c5869
2c5869
* Fri Nov 25 2011 Jaroslav Škarvada <jskarvad@redhat.com> - 3.22-27
2c5869
- Defuzzification of ipv6 patch
2c5869
2c5869
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.22-26
2c5869
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2c5869
2c5869
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.22-25
2c5869
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2c5869
2c5869
* Tue Jun 30 2009 Miroslav Lichvar <mlichvar@redhat.com> 3.22-24
2c5869
- rename getline to avoid conflict with glibc (#505977)
2c5869
- add -Wno-comments to CFLAGS
2c5869
- remove package name from summary
2c5869
2c5869
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.22-23
2c5869
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2c5869
2c5869
* Mon Aug 04 2008 Miroslav Lichvar <mlichvar@redhat.com> 3.22-22
2c5869
- fix building on sh (CHIKAMA Masaki) (#447658)
2c5869
2c5869
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.22-21
2c5869
- Autorebuild for GCC 4.3
2c5869
2c5869
* Wed Aug 22 2007 Miroslav Lichvar <mlichvar@redhat.com> 3.22-20
2c5869
- update license tag
2c5869
2c5869
* Tue Mar 27 2007 Miroslav Lichvar <mlichvar@redhat.com> 3.22-19
2c5869
- fix description (#234098)
2c5869
- spec cleanup
2c5869
2c5869
* Fri Oct 27 2006 Miroslav Lichvar <mlichvar@redhat.com> 3.22-18
2c5869
- add IPv6 support to comsat notification (#198403)
2c5869
- package man page for mailstat
2c5869
- change mail spool directory to /var/spool/mail
2c5869
2c5869
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.22-17.1
2c5869
- rebuild
2c5869
2c5869
* Thu Mar 30 2006 Peter Vrabec <pvrabec@redhat.com> 3.22-17
2c5869
- fix truncation of mailbox when running into a disk quota or a
2c5869
  full partition. Patch from Solar Designer.
2c5869
2c5869
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.22-16.2.1
2c5869
- bump again for double-long bug on ppc(64)
2c5869
2c5869
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.22-16.2
2c5869
- rebuilt for new gcc4.1 snapshot and glibc changes
2c5869
2c5869
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
2c5869
- rebuilt
2c5869
2c5869
* Fri Mar 18 2005 Peter Vrabec <pvrabec@redhat.com> 3.22-16
2c5869
- rebuilt
2c5869
2c5869
* Mon Nov  8 2004 Martin Stransky <stransky@redhat.com> 3.22-15
2c5869
- add largefiles patch to support 64-bit file I/O
2c5869
2c5869
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
2c5869
- rebuilt
2c5869
2c5869
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
2c5869
- rebuilt
2c5869
2c5869
* Tue Jan  6 2004 Jens Petersen <petersen@redhat.com> - 3.22-12
2c5869
- apply procmail_3.22-8.debian.patch from Debian (fixes #79691)
2c5869
2c5869
* Mon Sep 22 2003 Florian La Roche <Florian.LaRoche@redhat.de>
2c5869
- do not link against -ldl and -lnsl
2c5869
2c5869
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
2c5869
- rebuilt
2c5869
2c5869
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
2c5869
- rebuilt
2c5869
2c5869
* Tue Dec 17 2002 Jens Petersen <petersen@redhat.com>
2c5869
- convert changelog to utf8
2c5869
2c5869
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 3.22-8
2c5869
- rebuild on all arches
2c5869
2c5869
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
2c5869
- automated rebuild
2c5869
2c5869
* Thu May 23 2002 Tim Powers <timp@redhat.com>
2c5869
- automated rebuild
2c5869
2c5869
* Mon Mar 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.22-5
2c5869
- Updated Telss's procmailrc file (#61872)
2c5869
2c5869
* Thu Mar 14 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.22-4
2c5869
- Add Telsa Gwynne's procmailrc as a doc file - it's
2c5869
  excellently commented, and is a great example
2c5869
2c5869
* Wed Feb 27 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.22-3
2c5869
- Rebuild
2c5869
2c5869
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
2c5869
- automated rebuild
2c5869
2c5869
* Wed Sep 12 2001 Trond Eivind Glomsrød <teg@redhat.com> 3.22-1
2c5869
- 3.22
2c5869
2c5869
* Sat Jun 30 2001 Trond Eivind Glomsrød <teg@redhat.com>
2c5869
- 3.21
2c5869
2c5869
* Fri Jun 29 2001 Trond Eivind Glomsrød <teg@redhat.com>
2c5869
- 3.20
2c5869
- Enable LMTP
2c5869
2c5869
* Thu Apr 12 2001 Trond Eivind Glomsrød <teg@redhat.com>
2c5869
- Change to "License: GPL or artistic" from "Copyright: distributable"
2c5869
- Fix man page (#35825)
2c5869
- 3.15.1
2c5869
- redo config patch
2c5869
2c5869
* Sat Jan  6 2001 Jeff Johnson <jbj@redhat.com>
2c5869
- lose setuid/setgid (root,mail) bits (#23257).
2c5869
2c5869
* Fri Aug 11 2000 Jeff Johnson <jbj@redhat.com>
2c5869
- add space in delivery rules with '!' (#15947).
2c5869
2c5869
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
2c5869
- automatic rebuild
2c5869
2c5869
* Thu Jun 15 2000 Jeff Johnson <jbj@redhat.com>
2c5869
- FHS packaging.
2c5869
2c5869
* Mon Feb  7 2000 Jeff Johnson <jbj@redhat.com>
2c5869
- compress man pages.
2c5869
2c5869
* Fri Jan 14 2000 Jeff Johnson <jbj@redhat.com>
2c5869
- update to 3.14.
2c5869
2c5869
* Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
2c5869
- fix doc perms.
2c5869
2c5869
* Wed Apr 21 1999 Cristian Gafton <gafton@redhat.com>
2c5869
- turn on GROUP_PER_USER
2c5869
- add some docs to the package
2c5869
2c5869
* Mon Apr 05 1999 Cristian Gafton <gafton@redhat.com>
2c5869
- version 3.13
2c5869
2c5869
* Fri Mar 26 1999 Cristian Gafton <gafton@redhat.com>
2c5869
- fixed Group line
2c5869
2c5869
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
2c5869
- auto rebuild in the new build environment (release 16)
2c5869
2c5869
* Sun Aug 16 1998 Jeff Johnson <jbj@redhat.com>
2c5869
- build root
2c5869
2c5869
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
2c5869
- translations modified for de, fr, tr
2c5869
2c5869
* Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
2c5869
- built against glibc