File qmail-autorespond.spec of Package qmail-autorespond

#
# spec file for package qmail-autorespond
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           qmail-autorespond
Version:        2.0.4
Release:        0
Summary:        A simple auto-responder for qmail
License:        GPL
Group:          Productivity/Networking/Email/Servers
URL:            https://www.inter7.com/index.php?page=software
Source0:        autorespond-%{version}.tar.bz2
Patch0:         autorespond-2.0.4-utf8.patch

%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
%setup -q -n autorespond-%{version}
%autopatch

%build
CFLAGS="${CFLAGS:-%{optflags}}"
export CFLAGS
gcc  -o autorespond autorespond.c

%install
install -d %{buildroot}/%{_bindir}
install --strip -m755 autorespond %{buildroot}/%{_bindir}/autorespond


%files
%defattr(-,-,root)
%attr(0755,root,root) %{_bindir}/autorespond

%changelog
openSUSE Build Service is sponsored by