/[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 149778 - (hide annotations) (download)
Wed Sep 28 03:02:14 2011 UTC (12 years, 6 months ago) by fwang
File size: 4172 byte(s)
rediff some patches
1 tv 73200 Summary: Lynx-like text WWW browser
2     Name: links
3 fwang 149777 Version: 2.3
4     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 fwang 149777 Patch1: links-2.3-no-flashy-white.patch
11     Patch3: links-0.96-no-weird-unhx-ing-of-command-line-args.patch
12     Patch6: cookies-save-0.96.patch
13     Patch7: links-0.96-no-domain-security.patch
14     Patch8: links-current-color-by-default--and-vt100-frames.patch
15     Patch10: links-2.2-be-graphic-when-called-_links-graphic_.patch
16     Patch11: links-2.2-convert-old-bookmarks-in-new-format.patch
17     Patch12: links-2.1pre31-gz.patch
18     Patch21: links-2.1pre17-fix-segfault-on-loading-cookies.patch
19     Patch22: links-2.1pre2-64bit-fixes.patch
20     Patch23: links-2.1pre31-dont-have-two-assocations-with-same-label--otherwise-one-cant-override-shared-config.patch
21 fwang 149778 Patch24: links-2.3-CVE-2006-5925--disable-SMB.patch
22 tv 73200 URL: http://links.twibright.com/
23     BuildRequires: libx11-devel
24     BuildRequires: libpng-devel
25     BuildRequires: libtiff-devel
26     BuildRequires: openssl-devel
27     BuildRequires: jpeg-devel
28     BuildRequires: bzip2-devel
29     BuildRequires: gpm-devel
30     BuildRequires: zlib-devel
31     BuildRequires: svgalib-devel
32     BuildRequires: directfb-devel >= 0.9.17
33     Provides: webclient
34     Requires: links-common = %{version}
35    
36     %description
37     Links is a text based WWW browser, at first look similar to Lynx, but
38     somehow different:
39    
40     - renders tables and frames
41     - displays colors as specified in current HTML page
42     - uses drop-down menu (like in Midnight Commander)
43     - can download files in background
44     - partially handle Javascript
45    
46     %package graphic
47     Summary: Lynx-like text/X11 WWW browser
48     Group: Networking/WWW
49     Requires: links-common = %{version}
50     Provides: webclient, links = %{version}-%{release}
51     Requires: indexhtml
52    
53     %description graphic
54     Links is a text/X11 based WWW browser, at first look similar to Lynx, but
55     somehow different:
56    
57     - renders tables and frames
58     - displays colors as specified in current HTML page
59     - uses drop-down menu (like in Midnight Commander)
60     - can download files in background
61     - partially handle Javascript
62    
63     %package common
64     Summary: Lynx-like text/X11 WWW browser
65     Group: Networking/WWW
66     Requires: links-common = %{version}
67     Conflicts: links < 2.1-0.pre18.5mdk, links-graphic < 2.1-0.pre18.5mdk
68    
69     %description common
70     Common files for links and links-graphic
71    
72     %prep
73     %setup -q -n %name-%version
74     %patch1 -p1
75     %patch3 -p1
76     %patch6 -p1
77 fwang 149777 #patch7 -p1
78 fwang 149778 %patch8 -p1
79 tv 73200 %patch10 -p1 -b .be-graphic-when-called-_links-graphic_
80     %patch11 -p1 -b .convert-old-bookmarks-in-new-format
81     %patch12 -p1 -b .gzip
82     %patch21 -p1
83     %patch22 -p1 -b .64bit-fixes
84     %patch23 -p1
85 fwang 149778 %patch24 -p1
86 tv 73200
87     %build
88     autoreconf -fi
89     %configure2_5x
90     %make
91    
92     cp -f links links-text
93    
94     make clean
95     %configure2_5x --enable-graphics
96     %make
97    
98     cp -f links links-graphic
99    
100     %install
101     rm -rf $RPM_BUILD_ROOT
102    
103     %makeinstall_std
104    
105     rm -f %buildroot%{_bindir}/links
106     install links-graphic links-text %buildroot%{_bindir}
107    
108     install -D -m 644 %SOURCE4 %buildroot/etc/links.cfg
109    
110     mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
111 wally 91747 cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF
112 tv 73200 [Desktop Entry]
113     Name=Links
114     Comment=Lynx-like text/graphic Web browser
115 rda 76936 Exec=/usr/bin/links-graphic /usr/share/indexhtml/index.html
116 tv 73200 Icon=web_browser_section
117     Terminal=false
118     Type=Application
119     Categories=Network;WebBrowser;
120     EOF
121    
122     %clean
123     rm -rf $RPM_BUILD_ROOT
124    
125     %triggerpostun -- links
126     if [ ! -e /usr/bin/links ]; then
127     update-alternatives --auto links
128     fi
129    
130     %triggerpostun graphic -- links
131     if [ ! -e /usr/bin/links ]; then
132     update-alternatives --auto links
133     fi
134    
135     %post
136     update-alternatives --install /usr/bin/links links /usr/bin/links-text 10
137    
138     %postun
139     if [ "$1" = "0" ]; then
140     update-alternatives --remove links /usr/bin/links-text
141     fi
142    
143     %post graphic
144     update-alternatives --install /usr/bin/links links /usr/bin/links-graphic 20
145    
146     %postun graphic
147     if [ "$1" = "0" ]; then
148     update-alternatives --remove links /usr/bin/links-graphic
149     fi
150    
151     %files
152     %defattr(-,root,root)
153     %{_bindir}/links-text
154    
155     %files graphic
156     %defattr(-,root,root)
157     %{_bindir}/links-graphic
158     %{_datadir}/applications/*
159    
160     %files common
161     %defattr(-,root,root)
162     %doc AUTHORS BUGS ChangeLog README SITES TODO
163     %config(noreplace) /etc/links.cfg
164     %{_mandir}/*/*

  ViewVC Help
Powered by ViewVC 1.1.30