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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1893661 - (hide annotations) (download)
Sat Oct 1 13:45:06 2022 UTC (5 months, 2 weeks ago) by kekepower
File size: 3434 byte(s)
- Update to version 2.28

1 tv 73200 Summary: Lynx-like text WWW browser
2     Name: links
3 kekepower 1893661 Version: 2.28
4 kekepower 1848724 Release: %mkrel 1
5 tv 73200 License: GPLv2+
6     Group: Networking/WWW
7    
8 fwang 149777 Source0: http://links.twibright.com/download/links-%{version}.tar.bz2
9 tv 73200 Source4: links.cfg
10 supp 188910 Patch3: links-0.96-no-weird-unhx-ing-of-command-line-args.patch
11     Patch8: links-current-color-by-default--and-vt100-frames.patch
12 ns80 1223903 Patch24: links-2.15-CVE-2006-5925--disable-SMB.patch
13 luigiwalser 266973 Patch25: links2_better_verification.diff
14 tv 73200 URL: http://links.twibright.com/
15 ovitters 1145012 BuildRequires: pkgconfig(x11)
16 tv 1562403 BuildRequires: pkgconfig(xt)
17 ovitters 1145012 BuildRequires: pkgconfig(libpng)
18     BuildRequires: pkgconfig(libtiff-4)
19     BuildRequires: pkgconfig(openssl)
20     BuildRequires: pkgconfig(libjpeg)
21 tv 1562412 BuildRequires: pkgconfig(librsvg-2.0)
22 tv 1562403 BuildRequires: pkgconfig(libevent)
23     BuildRequires: pkgconfig(bzip2)
24 tv 73200 BuildRequires: gpm-devel
25 ovitters 1145012 BuildRequires: pkgconfig(zlib)
26 tv 73200 Provides: webclient
27     Requires: links-common = %{version}
28    
29     %description
30     Links is a text based WWW browser, at first look similar to Lynx, but
31     somehow different:
32    
33     - renders tables and frames
34     - displays colors as specified in current HTML page
35     - uses drop-down menu (like in Midnight Commander)
36     - can download files in background
37     - partially handle Javascript
38    
39     %package graphic
40     Summary: Lynx-like text/X11 WWW browser
41     Group: Networking/WWW
42     Requires: links-common = %{version}
43     Provides: webclient, links = %{version}-%{release}
44     Requires: indexhtml
45    
46     %description graphic
47     Links is a text/X11 based WWW browser, at first look similar to Lynx, but
48     somehow different:
49    
50     - renders tables and frames
51     - displays colors as specified in current HTML page
52     - uses drop-down menu (like in Midnight Commander)
53     - can download files in background
54     - partially handle Javascript
55    
56     %package common
57     Summary: Lynx-like text/X11 WWW browser
58     Group: Networking/WWW
59     Requires: links-common = %{version}
60     Conflicts: links < 2.1-0.pre18.5mdk, links-graphic < 2.1-0.pre18.5mdk
61    
62     %description common
63     Common files for links and links-graphic
64    
65     %prep
66 luigiwalser 484315 %setup -q
67 tv 73200 %patch3 -p1
68 fwang 149778 %patch8 -p1
69     %patch24 -p1
70 luigiwalser 266973 %patch25 -p1
71 tv 73200
72     %build
73 tv 1562414 %configure --enable-graphics
74 ovitters 1579157 %make_build
75 tv 73200
76 tv 1562414 cp -f links links-graphic
77 tv 73200
78     make clean
79 tv 1562414 %configure
80 ovitters 1579157 %make_build
81 tv 73200
82 tv 1562414 cp -f links links-text
83 tv 73200
84     %install
85 wally 1471316 %make_install
86 tv 73200
87 luigiwalser 484315 rm -f %{buildroot}%{_bindir}/links
88     install links-graphic links-text %{buildroot}%{_bindir}
89 tv 73200
90 luigiwalser 484315 install -D -m 644 %{SOURCE4} %{buildroot}/etc/links.cfg
91 tv 73200
92 luigiwalser 230950 mkdir -p %{buildroot}%{_datadir}/applications
93     cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF
94 tv 73200 [Desktop Entry]
95     Name=Links
96     Comment=Lynx-like text/graphic Web browser
97 rda 76936 Exec=/usr/bin/links-graphic /usr/share/indexhtml/index.html
98 tv 73200 Icon=web_browser_section
99 ns80 1225684 Terminal=true
100 tv 73200 Type=Application
101     Categories=Network;WebBrowser;
102     EOF
103    
104     %triggerpostun -- links
105     if [ ! -e /usr/bin/links ]; then
106     update-alternatives --auto links
107     fi
108    
109     %triggerpostun graphic -- links
110     if [ ! -e /usr/bin/links ]; then
111     update-alternatives --auto links
112     fi
113    
114     %post
115     update-alternatives --install /usr/bin/links links /usr/bin/links-text 10
116    
117     %postun
118     if [ "$1" = "0" ]; then
119 tv 1562705 update-alternatives --remove links /usr/bin/links-text || :
120 tv 73200 fi
121    
122     %post graphic
123     update-alternatives --install /usr/bin/links links /usr/bin/links-graphic 20
124    
125     %postun graphic
126     if [ "$1" = "0" ]; then
127 tv 1562705 update-alternatives --remove links /usr/bin/links-graphic || :
128 tv 73200 fi
129    
130     %files
131     %{_bindir}/links-text
132    
133     %files graphic
134     %{_bindir}/links-graphic
135     %{_datadir}/applications/*
136    
137     %files common
138 luigiwalser 230950 %doc AUTHORS ChangeLog README SITES
139 tv 73200 %config(noreplace) /etc/links.cfg
140     %{_mandir}/*/*

  ViewVC Help
Powered by ViewVC 1.1.28