1 |
Summary: Lynx-like text WWW browser |
2 |
Name: links |
3 |
Version: 2.28 |
4 |
Release: %mkrel 1 |
5 |
License: GPLv2+ |
6 |
Group: Networking/WWW |
7 |
|
8 |
Source0: http://links.twibright.com/download/links-%{version}.tar.bz2 |
9 |
Source4: links.cfg |
10 |
Patch3: links-0.96-no-weird-unhx-ing-of-command-line-args.patch |
11 |
Patch8: links-current-color-by-default--and-vt100-frames.patch |
12 |
Patch24: links-2.15-CVE-2006-5925--disable-SMB.patch |
13 |
Patch25: links2_better_verification.diff |
14 |
URL: http://links.twibright.com/ |
15 |
BuildRequires: pkgconfig(x11) |
16 |
BuildRequires: pkgconfig(xt) |
17 |
BuildRequires: pkgconfig(libpng) |
18 |
BuildRequires: pkgconfig(libtiff-4) |
19 |
BuildRequires: pkgconfig(openssl) |
20 |
BuildRequires: pkgconfig(libjpeg) |
21 |
BuildRequires: pkgconfig(librsvg-2.0) |
22 |
BuildRequires: pkgconfig(libevent) |
23 |
BuildRequires: pkgconfig(bzip2) |
24 |
BuildRequires: gpm-devel |
25 |
BuildRequires: pkgconfig(zlib) |
26 |
Provides: webclient |
27 |
Requires: links-common = %{version} |
28 |
|
29 |
%description |
30 |
Links is a text based WWW browser, at first look similar to Lynx, but |
31 |
somehow different: |
32 |
|
33 |
- renders tables and frames |
34 |
- displays colors as specified in current HTML page |
35 |
- uses drop-down menu (like in Midnight Commander) |
36 |
- can download files in background |
37 |
- partially handle Javascript |
38 |
|
39 |
%package graphic |
40 |
Summary: Lynx-like text/X11 WWW browser |
41 |
Group: Networking/WWW |
42 |
Requires: links-common = %{version} |
43 |
Provides: webclient, links = %{version}-%{release} |
44 |
Requires: indexhtml |
45 |
|
46 |
%description graphic |
47 |
Links is a text/X11 based WWW browser, at first look similar to Lynx, but |
48 |
somehow different: |
49 |
|
50 |
- renders tables and frames |
51 |
- displays colors as specified in current HTML page |
52 |
- uses drop-down menu (like in Midnight Commander) |
53 |
- can download files in background |
54 |
- partially handle Javascript |
55 |
|
56 |
%package common |
57 |
Summary: Lynx-like text/X11 WWW browser |
58 |
Group: Networking/WWW |
59 |
Requires: links-common = %{version} |
60 |
Conflicts: links < 2.1-0.pre18.5mdk, links-graphic < 2.1-0.pre18.5mdk |
61 |
|
62 |
%description common |
63 |
Common files for links and links-graphic |
64 |
|
65 |
%prep |
66 |
%setup -q |
67 |
%patch3 -p1 |
68 |
%patch8 -p1 |
69 |
%patch24 -p1 |
70 |
%patch25 -p1 |
71 |
|
72 |
%build |
73 |
%configure --enable-graphics |
74 |
%make_build |
75 |
|
76 |
cp -f links links-graphic |
77 |
|
78 |
make clean |
79 |
%configure |
80 |
%make_build |
81 |
|
82 |
cp -f links links-text |
83 |
|
84 |
%install |
85 |
%make_install |
86 |
|
87 |
rm -f %{buildroot}%{_bindir}/links |
88 |
install links-graphic links-text %{buildroot}%{_bindir} |
89 |
|
90 |
install -D -m 644 %{SOURCE4} %{buildroot}/etc/links.cfg |
91 |
|
92 |
mkdir -p %{buildroot}%{_datadir}/applications |
93 |
cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF |
94 |
[Desktop Entry] |
95 |
Name=Links |
96 |
Comment=Lynx-like text/graphic Web browser |
97 |
Exec=/usr/bin/links-graphic /usr/share/indexhtml/index.html |
98 |
Icon=web_browser_section |
99 |
Terminal=true |
100 |
Type=Application |
101 |
Categories=Network;WebBrowser; |
102 |
EOF |
103 |
|
104 |
%triggerpostun -- links |
105 |
if [ ! -e /usr/bin/links ]; then |
106 |
update-alternatives --auto links |
107 |
fi |
108 |
|
109 |
%triggerpostun graphic -- links |
110 |
if [ ! -e /usr/bin/links ]; then |
111 |
update-alternatives --auto links |
112 |
fi |
113 |
|
114 |
%post |
115 |
update-alternatives --install /usr/bin/links links /usr/bin/links-text 10 |
116 |
|
117 |
%postun |
118 |
if [ "$1" = "0" ]; then |
119 |
update-alternatives --remove links /usr/bin/links-text || : |
120 |
fi |
121 |
|
122 |
%post graphic |
123 |
update-alternatives --install /usr/bin/links links /usr/bin/links-graphic 20 |
124 |
|
125 |
%postun graphic |
126 |
if [ "$1" = "0" ]; then |
127 |
update-alternatives --remove links /usr/bin/links-graphic || : |
128 |
fi |
129 |
|
130 |
%files |
131 |
%{_bindir}/links-text |
132 |
|
133 |
%files graphic |
134 |
%{_bindir}/links-graphic |
135 |
%{_datadir}/applications/* |
136 |
|
137 |
%files common |
138 |
%doc AUTHORS ChangeLog README SITES |
139 |
%config(noreplace) /etc/links.cfg |
140 |
%{_mandir}/*/* |