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