+%include /usr/lib/rpm/macros.mono
Summary: The GNOME Fax Application
-Summary(pl): Aplikacja GNOME do faksów
+Summary(pl.UTF-8): Aplikacja GNOME do faksów
Name: gfax
-Version: 0.4.2
+Version: 0.7.3
Release: 4
License: GPL
Group: Applications/Communications
-Source0: http://www.cowlug.org/gfax/%{name}-%{version}.tar.gz
-Patch0: %{name}-use_AM_GNU_GETTEXT.patch
-Patch1: %{name}-add_uk_to_ALL_LINGUAS.aptch
-Patch2: %{name}-time.h.patch
-URL: http://www.cowlug.org/gfax/
-BuildRequires: bison
+Source0: http://gfax.cowlug.org/%{name}-%{version}-1.tar.gz
+# Source0-md5: 59e1430ae0936508ef3814185890213c
+Patch0: %{name}-destdir.patch
+Patch1: %{name}-desktop.patch
+Patch2: %{name}-paths.patch
+Patch3: %{name}-dotnet.patch
+URL: http://gfax.cowlug.org/
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: gettext-devel
-BuildRequires: gnome-libs-devel
-BuildRequires: gnome-print-devel >= 0.28
-BuildRequires: libglade-gnome-devel
+BuildRequires: dotnet-dbus-sharp-devel
+# wants {gtk,gnome,gconf,glade}-sharp
+BuildRequires: dotnet-gtk-sharp-gnome-devel >= 0.93
+BuildRequires: intltool >= 0.25
+# for directory name detection
+BuildRequires: libgnomeprint-devel
+BuildRequires: libtool
+BuildRequires: mono-csharp >= 0.93
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.198
+%requires_eq libgnomeprint
+ExcludeArch: alpha i386 sparc sparc64
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/X11R6
-
%description
Gfax is a popup tool for easily sending facsimilies by printing to a
fax printer.
Gfax works with GNOME.
-%description -l pl
-Gfax jest narzêdziem do ³atwego wysy³ania faksów poprzez drukowanie
-ich na drukarce faksowej. Gfax dzia³a z GNOME.
+%description -l pl.UTF-8
+Gfax jest narzędziem do łatwego wysyłania faksów poprzez drukowanie
+ich na drukarce faksowej. Gfax działa z GNOME.
%prep
-%setup -q
+%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
-rm -f missing
-%{__gettextize}
-aclocal -I macros
-CFLAGS="%{optflags} `pkg-config libglade-gnome --cflags`"
+%{__libtoolize}
+%{__aclocal}
%{__autoconf}
+%{__autoheader}
%{__automake}
-
%configure
%{__make}
rm -rf $RPM_BUILD_ROOT
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT \
- Applicationsdir=%{_applnkdir}/Office/Misc
+ DESTDIR=$RPM_BUILD_ROOT
-%find_lang %{name} --with-gnome
+%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%gconf_schema_install gfax.schemas
+
+%preun
+%gconf_schema_uninstall gfax.schemas
+
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README FAQ-gfax
+%doc AUTHORS ChangeLog README INSTALL NEWS TODO
%attr(755,root,root) %{_bindir}/gfax
-%{_datadir}/gfax
-%{_pixmapsdir}/*
-%{_applnkdir}/Office/Misc/*
+%attr(755,root,root) %{_bindir}/gfaxlpr
+%dir %{_libdir}/gfax
+%attr(755,root,root) %{_libdir}/gfax/gfax.exe
+%{_datadir}/libgnomeprint/*/models/GNOME-GFAX-PS.xml
+%{_datadir}/libgnomeprint/*/printers/GFAX.xml
+%{_pixmapsdir}/*.png
+%{_desktopdir}/gfax.desktop
+%{_sysconfdir}/gconf/schemas/*.schemas
+%attr(1777,root,root) %dir %{_var}/spool/gfax
+%attr(1777,root,root) %dir %{_var}/spool/gfax/doneq
+%attr(1777,root,root) %dir %{_var}/spool/gfax/recq