File efax.spec of Package efax
#
# spec file for package efax (Version 0.9)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: efax
License: GPL
Group: Applications/Communications
Requires: ghostscript
Version: 0.9.0.1.001114
%define _version 0.9a-001114
Release: 1
Source0: http://www.cce.com/efax/download/%{name}-%{_version}.tar.gz
Patch: %{name}-destdir.patch
Patch1: %{name}-undefined.patch
# Patch from Debian:
Patch2: %{name}-04crashpowerpc.dpatch
Url: http://www.cce.com/efax
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Small Fax Package
%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.
Authors:
--------
Ed Casas <edc@cce.com>
%prep
%setup -q -n %{name}-%{_version}
%patch
%patch1
%patch2 -p1
sed -i /strip/d Makefile
%build
make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
make DESTDIR=$RPM_BUILD_ROOT install
mkdir $RPM_BUILD_ROOT%{_sysconfdir}
mv $RPM_BUILD_ROOT%{_bindir}/fax $RPM_BUILD_ROOT%{_sysconfdir}/
ln -s ../..%{_sysconfdir}/fax $RPM_BUILD_ROOT%{_bindir}/fax
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc COPYING README
%doc %{_mandir}/man1/*
%{_bindir}/*
%config %{_sysconfdir}/fax
%changelog