-# Note that this is NOT a relocatable package
-%define ver 0.2.1
-%define rel 1
-%define prefix /usr
-
-Summary: The GNOME Fax Application.
-Name: gfax
-Version: %ver
-Release: %rel
-Copyright: GPL
-Group: Applications/Communications
-Source: ftp://raven.cc.mala.bc.ca/pub/Linux/gfax-%{ver}.tar.gz
-
-BuildRoot: /var/tmp/gfax-%{PACKAGE_VERSION}-root
-Obsoletes: gnome
-
-URL: http://www.gmsys.com
-Docdir: %{prefix}/doc
-
-
-Requires: gnome-libs >= 1.0.0
-Requires: gnome-objc >= 1.0.2
+Summary: The GNOME Fax Application.
+Name: gfax
+Version: 0.2.1
+Release: 1
+License: GPL
+Group: Applications/Communications
+Group(pl): Aplikacje/Komunikacja
+Source0: ftp://raven.cc.mala.bc.ca/pub/Linux/%{name}-%{version}.tar.gz
+Requires: gnome-libs >= 1.0.0
+Requires: gnome-objc >= 1.0.2
+URL: http://www.gmsys.com/
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes: gnome
%description
-Gfax is a popup tool for easily sending
-facsimilies by printing to a fax printer.
+Gfax is a popup tool for easily sending facsimilies by printing to a
+fax printer.
Gfax works with GNOME.
-GNOME is the GNU Network Object Model Environment. That's
-a fancy name, but really GNOME is a nice GUI desktop
-environment.
+GNOME is the GNU Network Object Model Environment. That's a fancy
+name, but really GNOME is a nice GUI desktop environment.
+
+%description -l pl
+Gfax jest narzêdziem do ³atwego wysy³ania faksów poprzez drukowanie
+ich na drukarce faksowej. Gfax dzia³a z GNOME. GNOME to skrót od GNU
+Network Object Model Environment. Nazwa mo¿e siê wydawaæ nieco dziwna,
+w rzeczywistosci jednak GNOME jest estetycznym ¶rodowiskiem
+graficznym.
%prep
-%setup
+%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT%{prefix}
-make prefix=$RPM_BUILD_ROOT%{prefix} install
-strip $RPM_BUILD_ROOT%{prefix}/bin/* || :
+install -d $RPM_BUILD_ROOT%{_prefix}
+make prefix=$RPM_BUILD_ROOT%{_prefix} install
+strip $RPM_BUILD_ROOT%{_bindir}/* || :
%post
# Set up the lpr link
rm -rf $RPM_BUILD_ROOT
%files
-%defattr(-, root, root)
+%defattr(644,root,root,755)
%doc AUTHORS COPYING ChangeLog NEWS README FAQ-gfax
-%{prefix}/bin/*
-%{prefix}/share/gnome/apps/Applications/*
-%{prefix}/share/gnome/help/gfax/*
+%attr(755,root,root) %{_bindir}/*
+%{_applnkdir}/Applications/*
+%{_datadir}/gnome/help/gfax/*