%define subver 001114a7 Summary: A program for faxing using a Class 1, 2 or 2.0 fax modem Name: efax Version: 0.9a Release: 4mdk License: GPL Group: Communications Source0: http://www.cce.com/efax/download/%{name}-%{version}-%{subver}.tar.bz2 URL: http://www.cce.com/efax/ Source1: efax.config.bz2 Patch0: efax-0.9a-mdkconf.bz2 Patch1: efax-0.9a-crashpowerpc.patch.bz2 Patch2: efax-0.9a-faxmail-mime.patch.bz2 Patch3: efax-0.9a-fax_send.patch.bz2 Patch4: efax-0.9a-fax_locale.patch.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description Efax is a small ANSI C/POSIX program that sends and receives faxes using any Class 1, 2 or 2.0 fax modem. You need to install efax if you want to send faxes and you have a Class 1, 2 or 2.0 fax modem. %prep %setup -q -n %{name}-%{version}-%{subver} %patch0 -p1 %patch1 -p1 -b .crashpowerpc %patch2 -p1 -b .faxmail-mime %patch3 -p1 -b .fax_send %patch4 -p1 -b .fax_locale find . -type f | xargs perl -p -i -e 's@xloadimage@xli@'; %build %make CFLAGS="$RPM_OPT_FLAGS" %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 make BINDIR=$RPM_BUILD_ROOT%{_bindir} MANDIR=$RPM_BUILD_ROOT%{_mandir} install mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} bzcat %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/fax.config %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README %attr(644,root,root) %config(noreplace) %{_sysconfdir}/fax.config %{_bindir}/fax %{_bindir}/efax %{_bindir}/efix %{_mandir}/man1/fax.1* %{_mandir}/man1/efax.1* %{_mandir}/man1/efix.1* %changelog * Mon Feb 14 2005 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 0.9a-4mdk - update to use 'Mandrakelinux' in config * Mon Feb 14 2005 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 0.9a-3mdk - add debian fixes - update url - fix summary-ended-with-dot - cleanups * Thu Jul 24 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.9a-2mdk - rebuild * Mon Dec 23 2002 Buchan Milne <bgmilne@linux-mandrake.com> 0.9a-1mdk - Bump to 0.9a-001114a7 (fixes for winmodems ..), new source, url. - Don't patch config file in, make it a source, don't patch the make file when setting a shell variable right will do. - Patches 1,2,3 removed (upstreamed) * Mon Aug 12 2002 Daouda LO <daouda@mandrakesoft.com> 0.9-11mdk - fix file lock path from /var/lock to /tmp (Derek Jennings) - add patch for null pointer - patch -l option of efix (avoid truncated lines) - add URL * Tue Sep 04 2001 Florin <florin@mandraksoft.com> 0.9-10mdk - use xli instead of xloadimage * Thu Aug 30 2001 Etienne Faure <etienne@mandraksoft.com> 0.9-9mdk - fixed small things to make rpmlint happy * Sun Jan 14 2001 Stefan van der Eijk <s.vandereijk@chello.nl> 0.9-8mdk - removed patch3 --> 64bit alpha patch, seems to be obselete * Fri Jan 12 2001 Etienne Faure <etienne@mandraksoft.com> 0.9-7mdk - fixed small things to make rpmlint happy * Wed Jul 26 2000 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9-6mdk - BM + macroszification * Tue Apr 18 2000 Daouda Lo <daouda@mandrakesoft.com> 0.9-5mdk - fix group * Mon Jan 17 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.9-4mdk - Compile with egcs on alpha. * Sun Nov 28 1999 Axalon Bloodstone <axalon@linux-mandrake.com> - Redo config patch - /usr/bin/fax no longer a %%config file, now sources /etc/fax.config instead * Sun Jul 18 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com> - 0.9 - adapt patches - s/RedHat/Mandrake/ in sender config... * Tue May 11 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com> - Mandrake adaptions * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 11) * Wed Feb 24 1999 Preston Brown <pbrown@redhat.com> - Injected new description and group. * Tue Feb 02 1999 Preston Brown <pbrown@redhat.com> - patch to fix null ptr dereference - added -ansi flag; fixes efix problem (produced bad tiff files) * Fri Dec 18 1998 Preston Brown <pbrown@redhat.com> - bumped spec number for initial rh 6.0 build * Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com> - build root * Mon Apr 27 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr * Wed Oct 22 1997 Michael Fulbright <msf@redhat.com> - cleaned spec file to new standard, confirmed package is up to date * Tue Mar 25 1997 Erik Troan <ewt@redhat.com> - Added efax-08a-64bit.patch from David Mosberger