Blob Blame History Raw
Summary: UROnode addon - an SMTP mailbox
Name: axmail
Version: 2.3.1
Release: 1%{?dist}
License: GPLv2+
Group: Applications/Communications
URL: http://www.n1uro.net
Source0: ftp://ftp.n1uro.net/packet/%{name}-%{version}.tar.gz
Source1: axmail-README.fedora
Patch0: axmail-2.3.1-install-fix.patch
Patch1: axmail-2.3.1-build-fix.patch
Patch2: axmail-2.0-welcome-rename.patch
# http://fedorahosted.org/fpc/ticket/447
Provides: bundled(mailx) = 5.3b

%description
axMail is an add-on to URONode or LinuxNode that provides you and your
users with the ability to send and receive SMTP-based email. It can also
be used with a HylaFax server, making it possible to send and receive faxes
using just a dumb terminal. Setup is easy and many options are available
for the SysOp.

%prep
%setup -q
%patch0 -p1 -b .install-fix
%patch1 -p1 -b .build-fix
%patch2 -p1 -b .welcome-rename

# Copy Fedora readme into place
cp -p %{SOURCE1} README.fedora

# Removing old license file, this was permitted by upstream N1URO and
# will be fixed in next upstream release. The package is now licensed
# under GPLv2+ as stated in the copying.
rm -f .COPYING

# Rename welcome.txt to axmail-welcome.txt to prevent possible future conflicts
mv -f etc/welcome.txt etc/axmail-welcome.txt

%build
make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}"

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install

# Ghosts
mkdir -p %{buildroot}%{_var}/lock
touch %{buildroot}%{_var}/lock/axmail

%files
%doc README.fedora README FAQ copying

%{_sbindir}/*
%config(noreplace) %{_sysconfdir}/ax25/axmail.conf
%config(noreplace) %{_sysconfdir}/ax25/axmail-welcome.txt
%{_datadir}/axmail
%ghost %{_var}/lock/axmail

%changelog
* Mon Feb 16 2015 Jaroslav Škarvada <jskarvad@redhat.com> - 2.3.1-1
- New version
- Rebased install-fix and build-fix patches
- Dropped setgroups patch (upstreamed)

* Fri Jul 18 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 2.0-1
- Initial release