/[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 1562429 - (show annotations) (download)
Mon Mar 30 15:43:14 2020 UTC (4 years ago) by tv
File size: 3725 byte(s)
remove useless automake patch (SILENT)

1 Summary: Lynx-like text WWW browser
2 Name: links
3 Version: 2.20.2
4 Release: %mkrel 3
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.15-cookies-save.patch
12 Patch8: links-current-color-by-default--and-vt100-frames.patch
13 Patch21: links-2.15-fix-segfault-on-loading-cookies.patch
14 Patch23: links-2.15-dont-have-two-assocations-with-same-label--otherwise-one-cant-override-shared-config.patch
15 Patch24: links-2.15-CVE-2006-5925--disable-SMB.patch
16 Patch25: links2_better_verification.diff
17 URL: http://links.twibright.com/
18 BuildRequires: pkgconfig(x11)
19 BuildRequires: pkgconfig(xt)
20 BuildRequires: pkgconfig(libpng)
21 BuildRequires: pkgconfig(libtiff-4)
22 BuildRequires: pkgconfig(openssl)
23 BuildRequires: pkgconfig(libjpeg)
24 BuildRequires: pkgconfig(librsvg-2.0)
25 BuildRequires: pkgconfig(libevent)
26 BuildRequires: pkgconfig(bzip2)
27 BuildRequires: gpm-devel
28 BuildRequires: pkgconfig(zlib)
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 %patch21 -p1
74 # (tv) do not apply as it causes segfault since 2.15 (mga#26384)
75 #patch23 -p1
76 %patch24 -p1
77 %patch25 -p1
78
79 %build
80 %configure --enable-graphics
81 %make
82
83 cp -f links links-graphic
84
85 make clean
86 %configure
87 %make
88
89 cp -f links links-text
90
91 %install
92 %make_install
93
94 rm -f %{buildroot}%{_bindir}/links
95 install links-graphic links-text %{buildroot}%{_bindir}
96
97 install -D -m 644 %{SOURCE4} %{buildroot}/etc/links.cfg
98
99 mkdir -p %{buildroot}%{_datadir}/applications
100 cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF
101 [Desktop Entry]
102 Name=Links
103 Comment=Lynx-like text/graphic Web browser
104 Exec=/usr/bin/links-graphic /usr/share/indexhtml/index.html
105 Icon=web_browser_section
106 Terminal=true
107 Type=Application
108 Categories=Network;WebBrowser;
109 EOF
110
111 %triggerpostun -- links
112 if [ ! -e /usr/bin/links ]; then
113 update-alternatives --auto links
114 fi
115
116 %triggerpostun graphic -- links
117 if [ ! -e /usr/bin/links ]; then
118 update-alternatives --auto links
119 fi
120
121 %post
122 update-alternatives --install /usr/bin/links links /usr/bin/links-text 10
123
124 %postun
125 if [ "$1" = "0" ]; then
126 update-alternatives --remove links /usr/bin/links-text
127 fi
128
129 %post graphic
130 update-alternatives --install /usr/bin/links links /usr/bin/links-graphic 20
131
132 %postun graphic
133 if [ "$1" = "0" ]; then
134 update-alternatives --remove links /usr/bin/links-graphic
135 fi
136
137 %files
138 %{_bindir}/links-text
139
140 %files graphic
141 %{_bindir}/links-graphic
142 %{_datadir}/applications/*
143
144 %files common
145 %doc AUTHORS ChangeLog README SITES
146 %config(noreplace) /etc/links.cfg
147 %{_mandir}/*/*

  ViewVC Help
Powered by ViewVC 1.1.30