/[packages]/cauldron/links/current/SPECS/links.spec
ViewVC logotype

Contents of /cauldron/links/current/SPECS/links.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 188910 - (show annotations) (download)
Fri Dec 30 01:06:40 2011 UTC (12 years, 3 months ago) by supp
File size: 3848 byte(s)
- update to 2.5, drop few obsolete patches
1 Summary: Lynx-like text WWW browser
2 Name: links
3 Version: 2.5
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 Patch8: links-current-color-by-default--and-vt100-frames.patch
14 Patch14: links-2.3-automake.patch
15 Patch21: links-2.1pre17-fix-segfault-on-loading-cookies.patch
16 Patch22: links-2.1pre2-64bit-fixes.patch
17 Patch23: links-2.1pre31-dont-have-two-assocations-with-same-label--otherwise-one-cant-override-shared-config.patch
18 Patch24: links-2.3-CVE-2006-5925--disable-SMB.patch
19 URL: http://links.twibright.com/
20 BuildRequires: libx11-devel
21 BuildRequires: libpng-devel
22 BuildRequires: libtiff-devel
23 BuildRequires: openssl-devel
24 BuildRequires: jpeg-devel
25 BuildRequires: bzip2-devel
26 BuildRequires: gpm-devel
27 BuildRequires: zlib-devel
28 BuildRequires: directfb-devel >= 0.9.17
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 -n %name-%version
70 %patch1 -p1
71 %patch3 -p1
72 %patch6 -p1
73 %patch8 -p1
74 %patch14 -p1
75 %patch21 -p1
76 %patch22 -p1 -b .64bit-fixes
77 %patch23 -p1
78 %patch24 -p1
79
80 %build
81 autoreconf -fi
82 %configure2_5x
83 %make
84
85 cp -f links links-text
86
87 make clean
88 %configure2_5x --enable-graphics
89 %make
90
91 cp -f links links-graphic
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %makeinstall_std
97
98 rm -f %buildroot%{_bindir}/links
99 install links-graphic links-text %buildroot%{_bindir}
100
101 install -D -m 644 %SOURCE4 %buildroot/etc/links.cfg
102
103 mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
104 cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF
105 [Desktop Entry]
106 Name=Links
107 Comment=Lynx-like text/graphic Web browser
108 Exec=/usr/bin/links-graphic /usr/share/indexhtml/index.html
109 Icon=web_browser_section
110 Terminal=false
111 Type=Application
112 Categories=Network;WebBrowser;
113 EOF
114
115 %clean
116 rm -rf $RPM_BUILD_ROOT
117
118 %triggerpostun -- links
119 if [ ! -e /usr/bin/links ]; then
120 update-alternatives --auto links
121 fi
122
123 %triggerpostun graphic -- links
124 if [ ! -e /usr/bin/links ]; then
125 update-alternatives --auto links
126 fi
127
128 %post
129 update-alternatives --install /usr/bin/links links /usr/bin/links-text 10
130
131 %postun
132 if [ "$1" = "0" ]; then
133 update-alternatives --remove links /usr/bin/links-text
134 fi
135
136 %post graphic
137 update-alternatives --install /usr/bin/links links /usr/bin/links-graphic 20
138
139 %postun graphic
140 if [ "$1" = "0" ]; then
141 update-alternatives --remove links /usr/bin/links-graphic
142 fi
143
144 %files
145 %defattr(-,root,root)
146 %{_bindir}/links-text
147
148 %files graphic
149 %defattr(-,root,root)
150 %{_bindir}/links-graphic
151 %{_datadir}/applications/*
152
153 %files common
154 %defattr(-,root,root)
155 %doc AUTHORS BUGS ChangeLog README SITES TODO
156 %config(noreplace) /etc/links.cfg
157 %{_mandir}/*/*

  ViewVC Help
Powered by ViewVC 1.1.30