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