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