-Summary: sends and receives faxes over class 1 or class 2 modems
-Summary(de): sendet und empfängt Faxe über Modems der Klassen 1 und 2
-Summary(fr): envoie et reçoit des faxs sur des modems classe 1 ou 2
-Summary(pl): wysy³anie i odbieranie faxów modemami klasy 1 oraz 2
+Summary: Sends and receives faxes over class 1 or class 2 modems
+Summary(de): Sendet und empfängt Faxe über Modems der Klassen 1 und 2
+Summary(fr): Envoie et reçoit des faxs sur des modems classe 1 ou 2
+Summary(pl): Wysy³anie i odbieranie faxów modemami klasy 1 oraz 2
Summary(tr): 1 veya 2 sýnýfý modemler üzerinden fax gönderir
Name: efax
Version: 0.9
-Release: 1
-Copyright: GPL
+Release: 8
+License: GPL
Group: Applications/Communications
-Group(pl): Aplikacje/Komunikacja
-Source: ftp://sunsite.unc.edu/pub/Linux/apps/comm/fax/%{name}-%{version}.tar.gz
-Patch: efax.patch
+Source0: ftp://sunsite.unc.edu/pub/Linux/apps/comm/fax/%{name}-%{version}.tar.gz
+# Source0-md5: 23bd3767f87c455c58ccae7f88bce725
+Patch0: %{name}.patch
+Patch1: %{name}-nullptr.patch
Requires: ghostscript
-Buildroot: /tmp/%{name}-%{version}-root
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-This is a program to send and receive faxes over class 1 or
-class 2 fax modems. It has a nice interface to help
-facilitate faxing.
+This is a program to send and receive faxes over class 1 or class 2
+fax modems. It has a nice interface to help facilitate faxing.
%description -l de
-Dies ist ein Programm zum Versenden und Empfangen von
-Faxnachrichten über Faxmodems der Klasse 2. Dank
-seiner attraktiven Bedieneroberfläche wird das Faxen zum
-Kinderspiel
+Dies ist ein Programm zum Versenden und Empfangen von Faxnachrichten
+über Faxmodems der Klasse 2. Dank seiner attraktiven
+Bedieneroberfläche wird das Faxen zum Kinderspiel
%description -l fr
-C'est un programme pour envoyer et recevoir des messages sur des modems de
-classe 1 ou 2. Il posséde une interface agréable pour faciliter l'envoi
-des fax.
+C'est un programme pour envoyer et recevoir des messages sur des
+modems de classe 1 ou 2. Il posséde une interface agréable pour
+faciliter l'envoi des fax.
%description -l pl
-Program umo¿liwiaj±cy wysy³anie i odbieranie faksów faksmodemami klasy 1
-oraz 2. Program ten posiada ³atwy interfejs u³atwiaj±cy faksowanie.
+Program umo¿liwiaj±cy wysy³anie i odbieranie faksów faksmodemami klasy
+1 oraz 2. Program ten posiada ³atwy interfejs u³atwiaj±cy faksowanie.
%description -l tr
Bu program ile 1 veya 2 sýnýfý modemlerle fax gönderilebilir. Fax
%prep
%setup -q
-%patch -p1
+%patch0 -p1
+%patch1 -p1
%build
-make CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s"
+%{__make} CFLAGS="%{rpmcflags} -ansi" LDFLAGS="%{rpmldflags}"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
-install -d $RPM_BUILD_ROOT/etc/sysconfig
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/etc/sysconfig,/var/spool/fax}
-make install \
+%{__make} install \
BINDIR=$RPM_BUILD_ROOT%{_bindir} \
MANDIR=$RPM_BUILD_ROOT%{_mandir}
install efax.conf $RPM_BUILD_ROOT/etc/sysconfig/efax
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
- README
-
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc *.gz
+%doc README
%config(noreplace) %verify(not size mtime md5) /etc/sysconfig/efax
%attr(755,root,root) %{_bindir}/fax
%attr(755,root,root) %{_bindir}/efax
%attr(755,root,root) %{_bindir}/efix
-%{_mandir}/man1/*.gz
+%{_mandir}/man1/*
+/var/spool/fax