/[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 645604 - (show annotations) (download)
Sun Jul 6 12:59:06 2014 UTC (9 years, 8 months ago) by ovitters
File size: 3795 byte(s)
SILENT remove cleaning buildroot in install
1 Summary: Lynx-like text WWW browser
2 Name: links
3 Version: 2.8
4 Release: %mkrel 5
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.7-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 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 %setup -q
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 %patch25 -p1
80 %patch26 -p1 -b .automake-1_13
81
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 %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 %{buildroot}%{_datadir}/applications
104 cat > %{buildroot}%{_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 %{buildroot}
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 %{_bindir}/links-text
146
147 %files graphic
148 %{_bindir}/links-graphic
149 %{_datadir}/applications/*
150
151 %files common
152 %doc AUTHORS ChangeLog README SITES
153 %config(noreplace) /etc/links.cfg
154 %{_mandir}/*/*

  ViewVC Help
Powered by ViewVC 1.1.30