File efax.spec of Package efax
#
# spec file for package efax
#
# Copyright (c) 2024 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/
#
%define _version 0.9a-001114
Name: efax
Version: 0.9.0.1.001114
Release: 0
Summary: Small Fax Package
License: GPL-2.0-or-later
Group: Productivity/Telephony/Utilities
URL: https://www.cce.com/efax
Source0: http://www.cce.com/efax/download/%{name}-%{_version}.tar.gz
Patch0: %{name}-destdir.patch
Patch1: %{name}-undefined.patch
# Patch from Debian:
Patch2: %{name}-04crashpowerpc.dpatch
Requires: ghostscript
%description
efax sends and receives faxes using any fax modem (Class 1, 2 or 2.0).
efax is smaller and easier to install than HylaFAX or
mgetty+sendfax.
%prep
%setup -q -n %{name}-%{_version}
%patch -P 0
%patch -P 1
%patch -P 2 -p1
sed -i /strip/d Makefile
%build
%make_build CFLAGS="%{optflags} -fno-strict-aliasing -fcommon"
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_sysconfdir}
%make_install
mv %{buildroot}%{_bindir}/fax %{buildroot}%{_sysconfdir}/
ln -s ../..%{_sysconfdir}/fax %{buildroot}%{_bindir}/fax
%files
%license COPYING
%doc README
%{_bindir}/efax
%{_bindir}/efix
%{_bindir}/fax
%config %{_sysconfdir}/fax
%{_mandir}/man1/efax.1%{?ext_man}
%{_mandir}/man1/efix.1%{?ext_man}
%{_mandir}/man1/fax.1%{?ext_man}
%changelog