]> git.pld-linux.org Git - packages/links2.git/blob - links2.spec
- updated pl-update patch
[packages/links2.git] / links2.spec
1 #
2 # Conditional build:
3 %bcond_without  graphics        # graphics support
4 %bcond_without  fb              # Linux Framebuffer graphics driver
5 %bcond_with     directfb        # DirrectFB graphics driver
6 %bcond_with     sdl             # SDL graphics driver [disabled in sources]
7 %bcond_with     svga            # svgalib graphics driver
8 %bcond_without  x               # X Window System graphics driver
9 #
10 Summary:        Lynx-like WWW browser
11 Summary(es.UTF-8):      El links es un browser para modo texto, similar a lynx
12 Summary(pl.UTF-8):      Podobna do Lynksa przeglądarka WWW
13 Summary(pt_BR.UTF-8):   O links é um browser para modo texto, similar ao lynx
14 Summary(ru.UTF-8):      Текстовый WWW броузер типа Lynx
15 Summary(uk.UTF-8):      Текстовий WWW броузер типу Lynx
16 Name:           links2
17 Version:        2.28
18 Release:        1
19 Epoch:          1
20 License:        GPL v2
21 Group:          Applications/Networking
22 Source0:        http://links.twibright.com/download/links-%{version}.tar.bz2
23 # Source0-md5:  915c45777f0c9d8e6ec85438cbd7d3df
24 Source1:        %{name}.desktop
25 Source2:        %{name}.1.pl
26 Source3:        %{name}.png
27 Source4:        glinks.desktop
28 Patch0:         %{name}-links-g_if_glinks.patch
29 Patch1:         %{name}-pkgconfig.patch
30 Patch2:         %{name}-img.patch
31 Patch3:         %{name}-convert-old-bookmarks.patch
32 Patch5:         %{name}-config-dirs.patch
33 Patch6:         %{name}-gzip_fallback.patch
34 Patch10:        %{name}-pl-update.patch
35 Patch17:        ac_config_headers.patch
36 Patch18:        ac_prog_cxx.patch
37 URL:            http://links.twibright.com/
38 BuildRequires:  autoconf >= 2.59-9
39 BuildRequires:  automake
40 BuildRequires:  bzip2-devel
41 BuildRequires:  fontconfig-devel
42 BuildRequires:  freetype-devel >= 2
43 BuildRequires:  gpm-devel
44 BuildRequires:  libbrotli-devel
45 BuildRequires:  libbsd-devel
46 BuildRequires:  libevent-devel
47 BuildRequires:  libgomp-devel
48 BuildRequires:  lzlib-devel
49 BuildRequires:  ncurses-devel >= 5.1
50 BuildRequires:  openssl-devel >= 0.9.7d
51 BuildRequires:  pkgconfig
52 BuildRequires:  xz-devel
53 BuildRequires:  zlib-devel
54 BuildRequires:  zstd-devel
55 %if %{with graphics}
56 %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.17}
57 %{?with_sdl:BuildRequires:      SDL-devel >= 1.2.0}
58 BuildRequires:  cairo-devel
59 BuildRequires:  libgomp-devel
60 BuildRequires:  libjpeg-devel
61 BuildRequires:  libpng-devel >= 1.0.0
62 BuildRequires:  librsvg-devel >= 2.0.0
63 BuildRequires:  libtiff-devel
64 BuildRequires:  libwebp-devel
65 %{?with_svga:BuildRequires:     svgalib-devel}
66 %{?with_x:BuildRequires:        xorg-lib-libX11-devel}
67 %endif
68 Provides:       webclient
69 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70
71 %description
72 Links is a WWW browser, at first look similiar to Lynx, but somehow
73 different:
74
75 - renders tables and frames,
76 - displays colors as specified in current HTML page,
77 - uses drop-down menu (like in Midnight Commander),
78 - can download files in background.
79
80 %{?with_graphics:This version can work in graphical mode.}
81
82 %description -l es.UTF-8
83 Links es un browser WWW modo texto, similar al Lynx. El links muestra
84 tablas, hace baja archivos en segundo plano, y usa conexiones HTTP/1.1
85 keepalive.
86
87 %description -l pl.UTF-8
88 Links jest przeglądarką WWW, na pierwszy rzut oka podobną do Lynksa,
89 ale mimo wszystko inną:
90
91 - renderuje tabelki i ramki,
92 - wyświetla kolory zgodnie z definicjami w oglądanej stronie HTML,
93 - używa opuszczanego menu (jak w Midnight Commanderze),
94 - może ściągać pliki w tle.
95
96 %{?with_graphics:Ta wersja może pracować w trybie graficznym.}
97
98 %description -l pt_BR.UTF-8
99 Links é um browser WWW modo texto, similar ao Lynx. O Links exibe
100 tabelas, faz baixa arquivos em segundo plano, e usa as conexões
101 HTTP/1.1 keepalive.
102
103 %description -l ru.UTF-8
104 Links - это текстовый WWW броузер, на первый взгляд похожий на Lynx,
105 но несколько отличающийся:
106
107 - отображает таблицы и (скоро) фреймы,
108 - показывает цвета как указано в HTML странице,
109 - использует выпадающие меню (как в Midnight Commander),
110 - может загружать файлы в фоне.
111
112 %description -l uk.UTF-8
113 Links - це текстовий WWW броузер, на перший погляд схожий на Lynx, але
114 трохи відмінний від нього:
115
116 - відображає таблиці та (незабаром) фрейми,
117 - показує кольори як вказано в HTML сторінці,
118 - використовує випадаючі меню (як в Midnight Commander),
119 - може завантажувати файли в фоні.
120
121 %prep
122 %setup -q -n links-%{version}
123 %{?with_graphics:%patch0 -p1}
124 %patch1 -p1
125 %patch2 -p1
126 %patch3 -p1
127 %patch5 -p1
128 %patch6 -p1
129 %patch10 -p1
130 %patch17 -p1
131 %patch18 -p1
132
133 cd intl
134 ./gen-intl
135
136 %build
137 %{__aclocal}
138 %{__automake}
139 %{__autoconf}
140 %{__autoheader}
141 %configure \
142         --program-suffix=2 \
143         %{?with_graphics:--enable-graphics} \
144         %{!?with_directfb:--without-directfb} \
145         %{!?with_fb:--without-fb} \
146         %{!?with_sdl:--without-sdl} \
147         %{!?with_svga:--without-svgalib} \
148         %{!?with_x:--without-x} \
149         --with-ssl
150
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 ChangeLog README SITES
178 %attr(755,root,root) %{_bindir}/glinks
179 %attr(755,root,root) %{_bindir}/links2
180 %{_desktopdir}/glinks.desktop
181 %{_desktopdir}/links2.desktop
182 %{_pixmapsdir}/links2.png
183 %{_mandir}/man1/glinks.1*
184 %{_mandir}/man1/links2.1*
185 %lang(pl) %{_mandir}/pl/man1/glinks.1*
186 %lang(pl) %{_mandir}/pl/man1/links2.1*
This page took 0.108677 seconds and 3 git commands to generate.