File: wmnetselect.spec

package info (click to toggle)
wmnetselect 0.85-6
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 488 kB
  • ctags: 91
  • sloc: ansic: 865; sh: 330; makefile: 54
file content (69 lines) | stat: -rw-r--r-- 2,175 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
%define name    wmnetselect
%define version 0.85
%define release 1
%define serial  1
%define prefix  /usr

Summary:	WindowMaker dock app to send the X selection to netscape/mozilla
Name:		%{name}
Version:	%{version}
Release:	%{release}
Serial:         %{serial}
Copyright:	GPL
Group:		Applications/Internet
Packager:	Patrick Hill <apathos@bham.net>
Source:		http://members.home.net/happycorgi/apathos/code/%{name}-%{version}.tar.gz
URL:		http://members.home.net/happycorgi/apathos/wmnetsel.html
BuildRoot:	/var/tmp/%{name}-%{version}-root

%changelog
* Wed Jul 19 2000 Patrick Hill <apathos@bham.net>
- Created spec file

%description
wmnetselect is a Window Maker dock applet that makes all text on your
X display internet-aware, sort of. wmnetselect sends the X selection
to your browser (Netscape or Mozilla, usually) when you click on it.
In other words, if you select this text:

         http://www.dpo.uab.edu/~grapeape/wmfaq.html

and click the middle mouse button on wmnetselect, it will cause your
browser to load the web page at this URL. If Netscape is not running,
wmnetselect will detect that, and launch Netscape, and then cause
Netscape to load the URL.  Specify an executable other than netscape
with the -e option.

Ctrl-Click displays the web page in a new browser window.
Right-Click sends the X selection to the search engine specified with
the -w option (defaults to google).

Other features include:

  Correctly handles multi-line URLs with embedded newlines and spaces.
  Detects ftp, email addresses, and local files as URLs.
  Encodes non-standard characters per RFC 1738.

See the man page for command line options.

%prep
%setup

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
make

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install
strip --strip-unneeded $RPM_BUILD_ROOT%{prefix}/bin/%{name}

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README README.html TODO
%{prefix}/bin/%{name}
%{prefix}/man/man1/%{name}.1x