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