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

  ViewVC Help
Powered by ViewVC 1.1.30