]> git.pld-linux.org Git - packages/gfax.git/blob - gfax.spec
09abaf1842b064fc0ae8a17c45e95e5ba3004297
[packages/gfax.git] / gfax.spec
1 # Note that this is NOT a relocatable package
2 %define ver      0.2.1
3 %define rel      1
4 %define prefix   /usr
5
6 Summary: The GNOME Fax Application.
7 Name: gfax
8 Version: %ver
9 Release: %rel
10 Copyright: GPL
11 Group: Applications/Communications
12 Source: ftp://raven.cc.mala.bc.ca/pub/Linux/gfax-%{ver}.tar.gz
13
14 BuildRoot: /var/tmp/gfax-%{PACKAGE_VERSION}-root
15 Obsoletes: gnome
16
17 URL: http://www.gmsys.com
18 Docdir: %{prefix}/doc
19
20
21 Requires: gnome-libs >= 1.0.0
22 Requires: gnome-objc >= 1.0.2
23
24 %description
25 Gfax is a popup tool for easily sending
26 facsimilies by printing to a fax printer.
27
28 Gfax works with GNOME.
29
30 GNOME is the GNU Network Object Model Environment. That's
31 a fancy name, but really GNOME is a nice GUI desktop 
32 environment. 
33
34 %prep
35 %setup
36
37 %build
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 mkdir -p $RPM_BUILD_ROOT%{prefix}
42 make prefix=$RPM_BUILD_ROOT%{prefix} install
43 strip $RPM_BUILD_ROOT%{prefix}/bin/* || :
44
45 %post
46 # Set up the lpr link
47 BINDIR=/usr/bin
48 LPRBINDIR=/usr/bin
49
50 if [ ! -x $LPRBINDIR/lpr.dist ]; then
51         mv $LPRBINDIR/lpr $LPRBINDIR/lpr.dist
52         ln -s $BINDIR/lpr.gfax $BINDIR/lpr
53         chmod +x $BINDIR/lpr
54 fi
55
56 %postun
57 # Reset the lpr link
58 BINDIR=/usr/bin
59 LPRBINDIR=/usr/bin
60
61 if [ -x $LPRBINDIR/lpr.dist ]; then
62         rm -rf $LPRBINDIR/lpr
63         mv $LPRBINDIR/lpr.dist $LPRBINDIR/lpr
64 fi
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(-, root, root)
71
72 %doc AUTHORS COPYING ChangeLog NEWS README FAQ-gfax
73 %{prefix}/bin/*
74 %{prefix}/share/gnome/apps/Applications/*
75 %{prefix}/share/gnome/help/gfax/*
This page took 0.088992 seconds and 3 git commands to generate.