-Summary: The GNOME Fax Application.
+Summary: The GNOME Fax Application
Name: gfax
-Version: 0.2.1
+Version: 0.4.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/
+BuildRequires: gettext-devel
+BuildRequires: gnome-libs-devel
+BuildRequires: libglade-devel
+URL: http://www.gmsys.com/gnome-gfax.html
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Obsoletes: gnome
+
+%define _prefix /usr/X11R6
%description
Gfax is a popup tool for easily sending facsimilies by printing to a
%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.
+ich na drukarce faksowej. Gfax dzia³a z GNOME.
%prep
%setup -q
%build
+gettextize --copy --force
+%configure
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_prefix}
-%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install
-strip $RPM_BUILD_ROOT%{_bindir}/* || :
-
-%post
-# Set up the lpr link
-BINDIR=/usr/bin
-LPRBINDIR=/usr/bin
-if [ ! -x $LPRBINDIR/lpr.dist ]; then
- mv $LPRBINDIR/lpr $LPRBINDIR/lpr.dist
- ln -s $BINDIR/lpr.gfax $BINDIR/lpr
- chmod +x $BINDIR/lpr
-fi
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ Applicationsdir=%{_applnkdir}/Office/Misc
-%postun
-# Reset the lpr link
-BINDIR=/usr/bin
-LPRBINDIR=/usr/bin
+gzip -9nf AUTHORS ChangeLog NEWS README FAQ-gfax
-if [ -x $LPRBINDIR/lpr.dist ]; then
- rm -rf $LPRBINDIR/lpr
- mv $LPRBINDIR/lpr.dist $LPRBINDIR/lpr
-fi
+%find_lang %{name} --with-gnome
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-
-%doc AUTHORS COPYING ChangeLog NEWS README FAQ-gfax
-%attr(755,root,root) %{_bindir}/*
-%{_applnkdir}/Applications/*
-%{_datadir}/gnome/help/gfax/*
+%doc *.gz
+%attr(755,root,root) %{_bindir}/gfax
+%{_datadir}/gfax
+%{_datadir}/pixmaps/*
+%{_applnkdir}/Office/Misc/*