%define name autorespond %define pversion 2.0.5 %define bversion 1.4 %define rpmrelease 3.kng%{?dist} %define release %{bversion}.%{rpmrelease} %define ccflags %{optflags} %define ldflags %{optflags} ############### RPM ################################ %define debug_package %{nil} %define vtoaster %{pversion} %define builddate Wed Feb 29 2012 Name: %{name}-toaster Summary: Simple autoresponder for qmail Version: %{vtoaster} Release: %{release} License: GPL Group: System/Servers URL: http://www.inter7.com Source: autorespond-%{pversion}.tar.bz2 Buildroot: %{_tmppath}/%{name}-%{version} Packager: Bharath Chari Patch1: autorespond_utf-8.patch BuildRequires: make BuildRequires: gcc BuildRequires: gcc-c++ #------------------------------------------------------------------------------------ %description #------------------------------------------------------------------------------------ Mail is sent to help@my-company.com. An automatically generated response is sent back to the user with an address of "help@my-company.com". You can set the envelope sender to an empty string. However, some programs will parse the message for the "From:" field and send an autoresponse back to it. It is received at your autoresponder, and you now have a mail loop. This autoresponder also catches some other simple situations such as mail from a mailer-daemon, empty envelope sender, bulk precedence headers, etc. #------------------------------------------------------------------------------------ %prep #------------------------------------------------------------------------------------ %define name autorespond %setup -q -n autorespond-%{pversion} %patch1 -p1 -b .utf-8 # Cleanup for gcc #------------------------------------------------------------------------------------ [ -f %{_tmppath}/%{name}-%{pversion}-gcc ] && rm -f %{_tmppath}/%{name}-%{pversion}-gcc echo "gcc" > %{_tmppath}/%{name}-%{pversion}-gcc #------------------------------------------------------------------------------------ %build #------------------------------------------------------------------------------------ [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot} mkdir -p %{buildroot} # We have gcc written in a temp file export CC="`cat %{_tmppath}/%{name}-%{pversion}-gcc` %{ccflags}" $CC -Wall -o autorespond autorespond.c #------------------------------------------------------------------------------------ %install #------------------------------------------------------------------------------------ install -d %{buildroot}/%{_bindir} install -m755 autorespond %{buildroot}/%{_bindir}/autorespond #------------------------------------------------------------------------------------ %clean #------------------------------------------------------------------------------------ [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot} [ -d $RPM_BUILD_DIR/%{name}-%{pversion} ] && rm -rf $RPM_BUILD_DIR/%{name}-%{pversion} rm -rf %{_tmppath}/%{name}-%{pversion}-gcc #------------------------------------------------------------------------------------ %files #------------------------------------------------------------------------------------ %defattr(-,-,root) %attr(0755,root,root) %{_bindir}/autorespond #------------------------------------------------------------------------------------ %changelog #------------------------------------------------------------------------------------ * Sat Dec 20 2014 Mustafa Ramadhan 2.0.5.1.4.2.mr - cleanup spec based on toaster github (without define like build_cnt_60) * Sat Jan 12 2013 Mustafa Ramadhan 2.0.5.1.4.1.mr - Rebuilt with autoresponder 2.0.5 - add build_cnt_60 build_cnt_6064 and rpmdistro define * Wed Feb 29 2012 Bharath Chari 2.0.5.1.4.0 - Rebuilt with autoresponder 2.0.5 * Fri Jun 12 2009 Jake Vickers 2.0.4-1.3.6 - Added Fedora 11 support - Added Fedora 11 x86_64 support * Wed Jun 10 2009 Jake Vickers 2.0.4-1.3.6 - Added Mandriva 2009 support * Wed Apr 22 2009 Jake Vickers 2.0.4-1.3.5 - Added Fedora 9 x86_64 and Fedora 10 x86_64 support * Fri Feb 13 2009 Jake Vickers 2.0.4-1.3.4 - Added Suse 11.1 support * Mon Feb 09 2009 Jake Vickers 2.0.4-1.3.4 - Added Fedora 9 and 10 support * Sat Apr 14 2007 Nick Hemmesch 2.0.4-1.3.3 - Add CentOS 5 i386 support - Add CentOS 5 x86_64 support * Wed Nov 01 2006 Erik A. Espinoza 2.0.4-1.3.2 - Add Fedora Core 6 support * Mon Jun 05 2006 Nick Hemmesch 2.0.4-1.3.1 - Add SuSE 10.1 support * Sat May 13 2006 Nick Hemmesch 2.0.4-1.2.9 - Add Fedora Core 5 support * Sun Nov 20 2005 Nick Hemmesch 2.0.4-1.2.8 - Add SuSE 10.0 and Mandriva 2006.0 support * Sat Oct 15 2005 Nick Hemmesch 2.0.4-1.2.7 - Add Fedora Core 4 x86_64 support * Sat Oct 01 2005 Nick Hemmesch 2.0.4-1.2.6 - Add CentOS 4 x86_64 support * Wed Jun 29 2005 Nick Hemmesch 2.0.4-1.2.5 - Add Fedora Core 4 support * Fri Jun 03 2005 Torbjorn Turpeinen 2.0.4-1.2.4 - Gnu/Linux Mandrake 10.0,10.1,10.2 support * Sun Feb 27 2005 Nick Hemmesch 2.0.4-1.2.3 - Add Fedora Core 3 support - Add CentOS 4 support * Fri Jun 04 2004 Nick Hemmesch 2.0.4-1.2.2 - Udpate to autorespond 2.0.4 * Thu Jun 03 2004 Nick Hemmesch 2.0.2-1.0.8 - Add Fedora Core 2 support * Mon Dec 29 2003 Nick Hemmesch 2.0.2-1.0.7 - Add Fedora Core 1 support * Sun Nov 23 2003 Nick Hemmesch 2.0.2-1.0.6 - Add Trustix 2.0 support * Thu May 15 2003 Miguel Beccari 2.0.2-1.0.5 - Clean-ups on SPEC file: compilation banner, better gcc detects - Detect gcc-3.2.3 - Red Hat Linux 9.0 support (nick@ndhsoft.com) - Gnu/Linux Mandrake 9.2 support * Wed Apr 02 2003 Miguel Beccari 2.0.2-1.0.4 - Clean-ups * Mon Mar 31 2003 Miguel Beccari 2.0.2-1.0.3 - Conectiva Linux 7.0 support * Sat Feb 01 2003 Miguel Beccari 2.0.2-1.0.2 - Redo Macros to prepare supporting larger RPM OS. We could be able to compile (and use) packages under every RPM based distribution: we just need to write right requirements. * Sat Jan 25 2003 Miguel Beccari 2.0.2-1.0-1 - Added MDK 9.1 support - Try to use gcc-3.2.1 - Added very little patch to compile with newest GLIBC - Support dor new RPM-4.0.4 * Sat Oct 05 2002 Miguel Beccari 2.0.2-0.9.2 - Soft clean-ups * Sun Sep 29 2002 Miguel Beccari 2.0.2-0.9.1 - RPM macros to detect Mandrake, RedHat, Trustix are OK again. They are very basic but they should work. * Fri Sep 27 2002 Miguel Beccari 0.8.2.0.2-1 - Rebuilded under 0.8 tree. - Important comments translated from Italian to English. - Written rpm rebuilds instruction at the top of the file (in english). * Thu Aug 29 2002 Miguel Beccari 0.7.2.0.2-2 - Deleted Mandrake Release Autodetection (creates problems) * Fri Aug 16 2002 Miguel Beccari 0.7.2.0.2-1 - New version: 0.7 toaster (rebuild with 0.7 spec) * Thu Aug 13 2002 Miguel Beccari 0.6.2.0.2-1 - New version: 0.6 toaster. * Mon Aug 12 2002 Miguel Beccari 0.5.2.0.2-1 - Checks for gcc-3.2 (default compiler from now) - New version: 0.5 toaster. * Tue Aug 08 2002 Miguel Beccari 0.4.2.0.2-1 - Rebuild against 0.4 toaster * Thu Jul 30 2002 Miguel Beccari 0.3.2.0.2-2 - Now packages have got 'no sex': you can rebuild them with command line flags for specifics targets that are: RedHat, Trustix, and of course Mandrake (that is default) * Sun Jul 28 2002 Miguel Beccari 0.3.2.0.2.1mdk - toaster v. 0.3: now it is possible upgrading safely because of 'pversion' that is package version and 'version' that is toaster version * Thu Jul 25 2002 Miguel Beccari 0.2-2.0.2.1mdk - toaster v. 0.2 * Thu Jul 18 2002 Miguel Beccari 0.1-2.0.2.2mdk - Added tests for gcc-3.1.1 - Added toaster version (we will need to mantain it too): is vtoaster 0.1 * Mon Jul 15 2002 Miguel Beccari 2.0.2-1mdk - First RPM package.