File esmtp.spec of Package esmtp

# norootforbuild

Name:           esmtp
Version:        1.2
Release:        0
#
Group:          Productivity/Networking/Email/Servers
License:        GPLv2
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libesmtp-devel openssl-devel pkgconfig bind-devel bison flex
Provides:       smtp_daemon
#
Url:            http://esmtp.sourceforge.net/
Source:         http://download.sourceforge.net/sourceforge/esmtp/esmtp-%{version}.tar.bz2
#
Summary:        An user configurable relay-only Mail Transfer Agent
%description
esmtp is an user configurable relay-only Mail Transfer Agent (MTA) with a
sendmail compatible syntax. It's based on libESMTP supporting the AUTH
(including the CRAM-MD5 and NTLM SASL mechanisms) and the StartTLS SMTP
extensions.


Authors:
---------
    José Fonseca <jrfonseca@users.sourceforge.net>

%prep
%setup

%build
export CFLAGS="$RPM_OPT_FLAGS -fpie" LDFLAGS="-pie"
%configure --libdir=%{_prefix}/lib/ --libexecdir=%{_prefix}/lib/
%{__make}

%install
%makeinstall
%{__install} -D -m 0755 esmtp-wrapper %{buildroot}%{_bindir}/esmtp-wrapper
%{__install} -D -m 0644 /dev/null     %{buildroot}%{_sysconfdir}/esmtprc

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/esmtp
%{_bindir}/esmtp-wrapper
%{_bindir}/mailq
%{_bindir}/newaliases
%{_prefix}/lib/sendmail
%{_sbindir}/sendmail
%{_mandir}/man1/esmtp.1*
%{_mandir}/man1/mailq.1*
%{_mandir}/man1/newaliases.1*
%{_mandir}/man1/sendmail.1*
%{_mandir}/man5/esmtprc.5*
%doc AUTHORS ChangeLog COPYING NEWS README sample.esmtprc TODO
%config(noreplace) %ghost %{_sysconfdir}/esmtprc

%changelog
openSUSE Build Service is sponsored by