]> git.pld-linux.org Git - packages/links2.git/blob - links2.spec
- grrr. run gen-intl to regenerate language.inc; release 3
[packages/links2.git] / links2.spec
1 #
2 # Conditional build:
3 %bcond_without  javascript      # build without JavaScript interpreter
4 %bcond_without  graphics        # build without graphics support
5 %bcond_without  svga            # build without svgalib graphics driver
6 %bcond_without  x               # build without X Window System graphics driver
7 %bcond_without  fb              # build without Linux Framebuffer graphics driver
8 %bcond_without  pmshell         # compile without PMShell graphics driver
9 %bcond_without  atheos          # compile without Atheos graphics driver
10 #
11 Summary:        Lynx-like WWW browser
12 Summary(es):    El links es un browser para modo texto, similar a lynx
13 Summary(pl):    Podobna do Lynksa przegl±darka WWW
14 Summary(pt_BR): O links é um browser para modo texto, similar ao lynx
15 Summary(ru):    ôÅËÓÔÏ×ÙÊ WWW ÂÒÏÕÚÅÒ ÔÉÐÁ Lynx
16 Summary(uk):    ôÅËÓÔÏ×ÉÊ WWW ÂÒÏÕÚÅÒ ÔÉÐÕ Lynx
17 Name:           links2
18 %define pre     pre15
19 Version:        2.1%{pre}
20 Release:        3
21 Epoch:          1
22 License:        GPL v2
23 Group:          Applications/Networking
24 Source0:        ftp://atrey.karlin.mff.cuni.cz/pub/local/clock/links/links-%{version}.tar.bz2
25 # Source0-md5:  d70a0ad41fba921f04d222d3546827de
26 Source1:        %{name}.desktop
27 Source2:        %{name}.1.pl
28 Source3:        %{name}.png
29 Source4:        glinks.desktop
30 Patch0:         %{name}-links-g_if_glinks.patch
31 Patch1:         %{name}-ac25x.patch
32 Patch2:         %{name}-reallyquit.patch
33 Patch3:         %{name}-img.patch
34 Patch4:         %{name}-convert-old-bookmarks.patch
35 Patch5:         %{name}-cookies-save.patch
36 Patch7:         %{name}-config-dirs.patch
37 Patch8:         %{name}-dump_codepage.patch
38 Patch9:         %{name}-gzip_fallback.patch
39 Patch10:        %{name}-js-Date-getTime.patch
40 Patch11:        %{name}-js-submit-nodefer.patch
41 Patch12:        %{name}-segv.patch
42 Patch13:        %{name}-en-fixes.patch
43 Patch14:        %{name}-pl-update.patch
44 #Patch15:       %{name}-home_etc.patch
45 URL:            http://atrey.karlin.mff.cuni.cz/~clock/twibright/links/
46 BuildRequires:  autoconf
47 BuildRequires:  automake
48 %{?with_javascript:BuildRequires:       bison}
49 %{?with_javascript:BuildRequires:       flex}
50 BuildRequires:  gpm-devel
51 BuildRequires:  ncurses-devel >= 5.1
52 BuildRequires:  openssl-devel >= 0.9.7d
53 BuildRequires:  zlib-devel
54 %if %{with graphics}
55 %{?with_fb:BuildRequires:       DirectFB-devel >= 0.9.17}
56 %{?with_x:BuildRequires:        XFree86-devel}
57 BuildRequires:  libjpeg-devel
58 BuildRequires:  libpng-devel
59 BuildRequires:  libtiff-devel
60 %{?with_svga:BuildRequires:     svgalib-devel}
61 %endif
62 Provides:       webclient
63 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64
65 %description
66 Links is a WWW browser, at first look similiar to Lynx, but somehow
67 different:
68
69 - renders tables and frames,
70 - displays colors as specified in current HTML page,
71 - uses drop-down menu (like in Midnight Commander),
72 - can download files in background.
73
74 %{?with_graphics:This version can work in graphical mode.}
75 %{?with_javascript:This version has support for JavaScript.}
76
77 %description -l es
78 Links es un browser WWW modo texto, similar al Lynx. El links muestra
79 tablas, hace baja archivos en segundo plano, y usa conexiones HTTP/1.1
80 keepalive.
81
82 %description -l pl
83 Links jest przegl±dark± WWW, na pierwszy rzut oka podobn± do Lynksa,
84 ale mimo wszystko inn±:
85
86 - renderuje tabelki i ramki,
87 - wy¶wietla kolory zgodnie z definicjami w ogl±danej stronie HTML,
88 - u¿ywa opuszczanego menu (jak w Midnight Commanderze),
89 - mo¿e ¶ci±gaæ pliki w tle.
90
91 %{?with_graphics:Ta wersja mo¿e pracowaæ w trybie graficznym.}
92 %{?with_javascript:Ta wersja obs³uguje JavaScript.}
93
94 %description -l pt_BR
95 Links é um browser WWW modo texto, similar ao Lynx. O Links exibe
96 tabelas, faz baixa arquivos em segundo plano, e usa as conexões
97 HTTP/1.1 keepalive.
98
99 %description -l ru
100 Links - ÜÔÏ ÔÅËÓÔÏ×ÙÊ WWW ÂÒÏÕÚÅÒ, ÎÁ ÐÅÒ×ÙÊ ×ÚÇÌÑÄ ÐÏÈÏÖÉÊ ÎÁ Lynx,
101 ÎÏ ÎÅÓËÏÌØËÏ ÏÔÌÉÞÁÀÝÉÊÓÑ:
102
103 - ÏÔÏÂÒÁÖÁÅÔ ÔÁÂÌÉÃÙ É (ÓËÏÒÏ) ÆÒÅÊÍÙ,
104 - ÐÏËÁÚÙ×ÁÅÔ Ã×ÅÔÁ ËÁË ÕËÁÚÁÎÏ × HTML ÓÔÒÁÎÉÃÅ,
105 - ÉÓÐÏÌØÚÕÅÔ ×ÙÐÁÄÁÀÝÉÅ ÍÅÎÀ (ËÁË × Midnight Commander),
106 - ÍÏÖÅÔ ÚÁÇÒÕÖÁÔØ ÆÁÊÌÙ × ÆÏÎÅ.
107
108 %description -l uk
109 Links - ÃÅ ÔÅËÓÔÏ×ÉÊ WWW ÂÒÏÕÚÅÒ, ÎÁ ÐÅÒÛÉÊ ÐÏÇÌÑÄ ÓÈÏÖÉÊ ÎÁ Lynx, ÁÌÅ
110 ÔÒÏÈɠצÄͦÎÎÉʠצĠÎØÏÇÏ:
111
112 - ×¦ÄÏÂÒÁÖÁ¤ ÔÁÂÌÉæ ÔÁ (ÎÅÚÁÂÁÒÏÍ) ÆÒÅÊÍÉ,
113 - ÐÏËÁÚÕ¤ ËÏÌØÏÒÉ ÑË ×ËÁÚÁÎÏ × HTML ÓÔÏÒ¦Îæ,
114 - ×ÉËÏÒÉÓÔÏ×Õ¤ ×ÉÐÁÄÁÀÞ¦ ÍÅÎÀ (ÑË × Midnight Commander),
115 - ÍÏÖÅ ÚÁ×ÁÎÔÁÖÕ×ÁÔÉ ÆÁÊÌÉ × ÆÏΦ.
116
117 %prep
118 %setup -q -n links-%{version}
119 %{?with_graphics:%patch0 -p1}
120 %patch1 -p1
121 %patch2 -p1
122 %patch3 -p1
123 %patch4 -p1
124 %patch5 -p1
125 %patch7 -p1
126 %patch8 -p1
127 %patch9 -p1
128 %patch10 -p1
129 %patch11 -p1
130 %patch12 -p1
131 %patch13 -p1
132 %patch14 -p1
133
134 cd intl
135 ./gen-intl
136
137 %build
138 %{__aclocal}
139 %{__automake}
140 %{__autoheader}
141 %{__autoconf}
142 %configure \
143         --program-suffix=2 \
144         %{?with_graphics:--enable-graphics} \
145         %{?with_javascript:--enable-javascript} \
146         %{!?with_svga:--without-svgalib} \
147         %{!?with_x:--without-x} \
148         %{!?with_fb:--without-fb} \
149         %{!?with_pmshell:--without-pmshell} \
150         %{!?with_atheos:--without-atheos}
151 %{__make}
152
153 %install
154 rm -rf $RPM_BUILD_ROOT
155 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
156         $RPM_BUILD_ROOT%{_mandir}/pl/man1
157
158 %{__make} install \
159         DESTDIR=$RPM_BUILD_ROOT
160
161 %if %{with graphics}
162 ln -sf links2 $RPM_BUILD_ROOT%{_bindir}/glinks
163 echo ".so links2.1" > $RPM_BUILD_ROOT%{_mandir}/man1/glinks.1
164 echo ".so links2.1" > $RPM_BUILD_ROOT%{_mandir}/pl/man1/glinks.1
165 install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
166 %endif
167
168 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
169 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1/links2.1
170 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
171
172 %clean
173 rm -rf $RPM_BUILD_ROOT
174
175 %files
176 %defattr(644,root,root,755)
177 %doc AUTHORS BUGS ChangeLog README SITES TODO
178 %attr(755,root,root) %{_bindir}/*
179 %{_desktopdir}/*
180 %{_pixmapsdir}/*
181 %{_mandir}/man*/*
182 %lang(pl) %{_mandir}/pl/man*/*
This page took 0.058695 seconds and 3 git commands to generate.