]> git.pld-linux.org Git - packages/gfax.git/blobdiff - gfax.spec
This commit was manufactured by cvs2git to create branch 'AC-branch'.
[packages/gfax.git] / gfax.spec
index 09abaf1842b064fc0ae8a17c45e95e5ba3004297..b40d77fc94f8fe06a28d1f106f75e1f27eab22c4 100644 (file)
--- a/gfax.spec
+++ b/gfax.spec
@@ -1,75 +1,89 @@
-# 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
+Summary(pl):   Aplikacja GNOME do faksów
+Name:          gfax
+Version:       0.7.3
+Release:       3
+License:       GPL
+Group:         Applications/Communications
+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: 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
+Requires:      dotnet-gtk-sharp-gnome >= 0.93
+Requires:      mono >= 0.93
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %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. 
+%description -l pl
+Gfax jest narzêdziem do ³atwego wysy³ania faksów poprzez drukowanie
+ich na drukarce faksowej. Gfax dzia³a z GNOME.
 
 %prep
-%setup
+%setup -q -n %{name}
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
 
 %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/* || :
 
-%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
-
-%postun
-# Reset the lpr link
-BINDIR=/usr/bin
-LPRBINDIR=/usr/bin
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-if [ -x $LPRBINDIR/lpr.dist ]; then
-        rm -rf $LPRBINDIR/lpr
-        mv $LPRBINDIR/lpr.dist $LPRBINDIR/lpr
-fi
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
-%defattr(-, root, root)
-
-%doc AUTHORS COPYING ChangeLog NEWS README FAQ-gfax
-%{prefix}/bin/*
-%{prefix}/share/gnome/apps/Applications/*
-%{prefix}/share/gnome/help/gfax/*
+%post
+%gconf_schema_install gfax.schemas
+
+%preun
+%gconf_schema_uninstall gfax.schemas
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README INSTALL NEWS TODO
+%attr(755,root,root) %{_bindir}/gfax
+%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
This page took 0.044396 seconds and 4 git commands to generate.