1 |
Summary: Lynx-like text WWW browser |
2 |
Name: links |
3 |
Version: 2.15 |
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 |
Patch6: links-2.15-cookies-save.patch |
12 |
Patch8: links-current-color-by-default--and-vt100-frames.patch |
13 |
Patch14: links-2.8-automake.patch |
14 |
Patch21: links-2.15-fix-segfault-on-loading-cookies.patch |
15 |
Patch22: links-2.15-64bit-fixes.patch |
16 |
Patch23: links-2.15-dont-have-two-assocations-with-same-label--otherwise-one-cant-override-shared-config.patch |
17 |
Patch24: links-2.15-CVE-2006-5925--disable-SMB.patch |
18 |
Patch25: links2_better_verification.diff |
19 |
Patch26: links-2.9-automake-1.13.patch |
20 |
URL: http://links.twibright.com/ |
21 |
BuildRequires: pkgconfig(x11) |
22 |
BuildRequires: pkgconfig(libpng) |
23 |
BuildRequires: pkgconfig(libtiff-4) |
24 |
BuildRequires: pkgconfig(openssl) |
25 |
BuildRequires: pkgconfig(libjpeg) |
26 |
BuildRequires: bzip2-devel |
27 |
BuildRequires: gpm-devel |
28 |
BuildRequires: pkgconfig(zlib) |
29 |
Provides: webclient |
30 |
Requires: links-common = %{version} |
31 |
|
32 |
%description |
33 |
Links is a text based WWW browser, at first look similar to Lynx, but |
34 |
somehow different: |
35 |
|
36 |
- renders tables and frames |
37 |
- displays colors as specified in current HTML page |
38 |
- uses drop-down menu (like in Midnight Commander) |
39 |
- can download files in background |
40 |
- partially handle Javascript |
41 |
|
42 |
%package graphic |
43 |
Summary: Lynx-like text/X11 WWW browser |
44 |
Group: Networking/WWW |
45 |
Requires: links-common = %{version} |
46 |
Provides: webclient, links = %{version}-%{release} |
47 |
Requires: indexhtml |
48 |
|
49 |
%description graphic |
50 |
Links is a text/X11 based WWW browser, at first look similar to Lynx, but |
51 |
somehow different: |
52 |
|
53 |
- renders tables and frames |
54 |
- displays colors as specified in current HTML page |
55 |
- uses drop-down menu (like in Midnight Commander) |
56 |
- can download files in background |
57 |
- partially handle Javascript |
58 |
|
59 |
%package common |
60 |
Summary: Lynx-like text/X11 WWW browser |
61 |
Group: Networking/WWW |
62 |
Requires: links-common = %{version} |
63 |
Conflicts: links < 2.1-0.pre18.5mdk, links-graphic < 2.1-0.pre18.5mdk |
64 |
|
65 |
%description common |
66 |
Common files for links and links-graphic |
67 |
|
68 |
%prep |
69 |
%setup -q |
70 |
%patch3 -p1 |
71 |
%patch6 -p1 |
72 |
%patch8 -p1 |
73 |
%patch14 -p1 |
74 |
%patch21 -p1 |
75 |
%patch22 -p1 -b .64bit-fixes |
76 |
%patch23 -p1 |
77 |
%patch24 -p1 |
78 |
%patch25 -p1 |
79 |
%patch26 -p1 -b .automake-1_13 |
80 |
|
81 |
%build |
82 |
autoreconf -fi |
83 |
%configure2_5x |
84 |
%make |
85 |
|
86 |
cp -f links links-text |
87 |
|
88 |
make clean |
89 |
%configure2_5x --enable-graphics |
90 |
%make |
91 |
|
92 |
cp -f links links-graphic |
93 |
|
94 |
%install |
95 |
%makeinstall_std |
96 |
|
97 |
rm -f %{buildroot}%{_bindir}/links |
98 |
install links-graphic links-text %{buildroot}%{_bindir} |
99 |
|
100 |
install -D -m 644 %{SOURCE4} %{buildroot}/etc/links.cfg |
101 |
|
102 |
mkdir -p %{buildroot}%{_datadir}/applications |
103 |
cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF |
104 |
[Desktop Entry] |
105 |
Name=Links |
106 |
Comment=Lynx-like text/graphic Web browser |
107 |
Exec=/usr/bin/links-graphic /usr/share/indexhtml/index.html |
108 |
Icon=web_browser_section |
109 |
Terminal=false |
110 |
Type=Application |
111 |
Categories=Network;WebBrowser; |
112 |
EOF |
113 |
|
114 |
%triggerpostun -- links |
115 |
if [ ! -e /usr/bin/links ]; then |
116 |
update-alternatives --auto links |
117 |
fi |
118 |
|
119 |
%triggerpostun graphic -- links |
120 |
if [ ! -e /usr/bin/links ]; then |
121 |
update-alternatives --auto links |
122 |
fi |
123 |
|
124 |
%post |
125 |
update-alternatives --install /usr/bin/links links /usr/bin/links-text 10 |
126 |
|
127 |
%postun |
128 |
if [ "$1" = "0" ]; then |
129 |
update-alternatives --remove links /usr/bin/links-text |
130 |
fi |
131 |
|
132 |
%post graphic |
133 |
update-alternatives --install /usr/bin/links links /usr/bin/links-graphic 20 |
134 |
|
135 |
%postun graphic |
136 |
if [ "$1" = "0" ]; then |
137 |
update-alternatives --remove links /usr/bin/links-graphic |
138 |
fi |
139 |
|
140 |
%files |
141 |
%{_bindir}/links-text |
142 |
|
143 |
%files graphic |
144 |
%{_bindir}/links-graphic |
145 |
%{_datadir}/applications/* |
146 |
|
147 |
%files common |
148 |
%doc AUTHORS ChangeLog README SITES |
149 |
%config(noreplace) /etc/links.cfg |
150 |
%{_mandir}/*/* |