/[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 1137875 - (show annotations) (download)
Sun Aug 6 11:18:01 2017 UTC (6 years, 7 months ago) by tv
File size: 3728 byte(s)
rebuild for new openssl
1 Summary: Lynx-like text WWW browser
2 Name: links
3 Version: 2.14
4 Release: %mkrel 2
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.8-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.1pre17-fix-segfault-on-loading-cookies.patch
15 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 Patch25: links2_better_verification.diff
19 Patch26: links-2.9-automake-1.13.patch
20 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 %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}/*/*

  ViewVC Help
Powered by ViewVC 1.1.30