1 |
tv |
73200 |
Summary: Lynx-like text WWW browser |
2 |
|
|
Name: links |
3 |
luigiwalser |
1070358 |
Version: 2.14 |
4 |
tv |
1137875 |
Release: %mkrel 2 |
5 |
tv |
73200 |
License: GPLv2+ |
6 |
|
|
Group: Networking/WWW |
7 |
|
|
|
8 |
fwang |
149777 |
Source0: http://links.twibright.com/download/links-%{version}.tar.bz2 |
9 |
tv |
73200 |
Source4: links.cfg |
10 |
supp |
188910 |
Patch3: links-0.96-no-weird-unhx-ing-of-command-line-args.patch |
11 |
luigiwalser |
484315 |
Patch6: links-2.8-cookies-save.patch |
12 |
supp |
188910 |
Patch8: links-current-color-by-default--and-vt100-frames.patch |
13 |
luigiwalser |
484315 |
Patch14: links-2.8-automake.patch |
14 |
supp |
188910 |
Patch21: links-2.1pre17-fix-segfault-on-loading-cookies.patch |
15 |
luigiwalser |
484315 |
Patch22: links-2.8-64bit-fixes.patch |
16 |
|
|
Patch23: links-2.8-dont-have-two-assocations-with-same-label--otherwise-one-cant-override-shared-config.patch |
17 |
|
|
Patch24: links-2.8-CVE-2006-5925--disable-SMB.patch |
18 |
luigiwalser |
266973 |
Patch25: links2_better_verification.diff |
19 |
luigiwalser |
837324 |
Patch26: links-2.9-automake-1.13.patch |
20 |
tv |
73200 |
URL: http://links.twibright.com/ |
21 |
|
|
BuildRequires: libx11-devel |
22 |
|
|
BuildRequires: libpng-devel |
23 |
|
|
BuildRequires: libtiff-devel |
24 |
|
|
BuildRequires: openssl-devel |
25 |
|
|
BuildRequires: jpeg-devel |
26 |
|
|
BuildRequires: bzip2-devel |
27 |
|
|
BuildRequires: gpm-devel |
28 |
|
|
BuildRequires: zlib-devel |
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 |
luigiwalser |
484315 |
%setup -q |
70 |
tv |
73200 |
%patch3 -p1 |
71 |
|
|
%patch6 -p1 |
72 |
fwang |
149778 |
%patch8 -p1 |
73 |
fwang |
149780 |
%patch14 -p1 |
74 |
tv |
73200 |
%patch21 -p1 |
75 |
|
|
%patch22 -p1 -b .64bit-fixes |
76 |
|
|
%patch23 -p1 |
77 |
fwang |
149778 |
%patch24 -p1 |
78 |
luigiwalser |
266973 |
%patch25 -p1 |
79 |
cjw |
339267 |
%patch26 -p1 -b .automake-1_13 |
80 |
tv |
73200 |
|
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 |
luigiwalser |
484315 |
rm -f %{buildroot}%{_bindir}/links |
98 |
|
|
install links-graphic links-text %{buildroot}%{_bindir} |
99 |
tv |
73200 |
|
100 |
luigiwalser |
484315 |
install -D -m 644 %{SOURCE4} %{buildroot}/etc/links.cfg |
101 |
tv |
73200 |
|
102 |
luigiwalser |
230950 |
mkdir -p %{buildroot}%{_datadir}/applications |
103 |
|
|
cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF |
104 |
tv |
73200 |
[Desktop Entry] |
105 |
|
|
Name=Links |
106 |
|
|
Comment=Lynx-like text/graphic Web browser |
107 |
rda |
76936 |
Exec=/usr/bin/links-graphic /usr/share/indexhtml/index.html |
108 |
tv |
73200 |
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 |
luigiwalser |
230950 |
%doc AUTHORS ChangeLog README SITES |
149 |
tv |
73200 |
%config(noreplace) /etc/links.cfg |
150 |
|
|
%{_mandir}/*/* |