/[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 660302 - (hide annotations) (download)
Wed Aug 6 18:38:29 2014 UTC (9 years, 8 months ago) by sander85
File size: 3767 byte(s)
Rebuild for new directfb
1 tv 73200 Summary: Lynx-like text WWW browser
2     Name: links
3 luigiwalser 484315 Version: 2.8
4 sander85 660302 Release: %mkrel 6
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 luigiwalser 484315 Patch6: links-2.8-cookies-save.patch
12 supp 188910 Patch8: links-current-color-by-default--and-vt100-frames.patch
13 luigiwalser 484315 Patch14: links-2.8-automake.patch
14 supp 188910 Patch21: links-2.1pre17-fix-segfault-on-loading-cookies.patch
15 luigiwalser 484315 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 luigiwalser 266973 Patch25: links2_better_verification.diff
19 cjw 339267 Patch26: links-2.7-automake-1.13.patch
20 tv 73200 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 luigiwalser 484315 %setup -q
71 tv 73200 %patch3 -p1
72     %patch6 -p1
73 fwang 149778 %patch8 -p1
74 fwang 149780 %patch14 -p1
75 tv 73200 %patch21 -p1
76     %patch22 -p1 -b .64bit-fixes
77     %patch23 -p1
78 fwang 149778 %patch24 -p1
79 luigiwalser 266973 %patch25 -p1
80 cjw 339267 %patch26 -p1 -b .automake-1_13
81 tv 73200
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 luigiwalser 484315 rm -f %{buildroot}%{_bindir}/links
99     install links-graphic links-text %{buildroot}%{_bindir}
100 tv 73200
101 luigiwalser 484315 install -D -m 644 %{SOURCE4} %{buildroot}/etc/links.cfg
102 tv 73200
103 luigiwalser 230950 mkdir -p %{buildroot}%{_datadir}/applications
104     cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF
105 tv 73200 [Desktop Entry]
106     Name=Links
107     Comment=Lynx-like text/graphic Web browser
108 rda 76936 Exec=/usr/bin/links-graphic /usr/share/indexhtml/index.html
109 tv 73200 Icon=web_browser_section
110     Terminal=false
111     Type=Application
112     Categories=Network;WebBrowser;
113     EOF
114    
115     %triggerpostun -- links
116     if [ ! -e /usr/bin/links ]; then
117     update-alternatives --auto links
118     fi
119    
120     %triggerpostun graphic -- links
121     if [ ! -e /usr/bin/links ]; then
122     update-alternatives --auto links
123     fi
124    
125     %post
126     update-alternatives --install /usr/bin/links links /usr/bin/links-text 10
127    
128     %postun
129     if [ "$1" = "0" ]; then
130     update-alternatives --remove links /usr/bin/links-text
131     fi
132    
133     %post graphic
134     update-alternatives --install /usr/bin/links links /usr/bin/links-graphic 20
135    
136     %postun graphic
137     if [ "$1" = "0" ]; then
138     update-alternatives --remove links /usr/bin/links-graphic
139     fi
140    
141     %files
142     %{_bindir}/links-text
143    
144     %files graphic
145     %{_bindir}/links-graphic
146     %{_datadir}/applications/*
147    
148     %files common
149 luigiwalser 230950 %doc AUTHORS ChangeLog README SITES
150 tv 73200 %config(noreplace) /etc/links.cfg
151     %{_mandir}/*/*

  ViewVC Help
Powered by ViewVC 1.1.30