]> git.pld-linux.org Git - packages/xawtv.git/blob - xawtv.spec
- updated to 3.107
[packages/xawtv.git] / xawtv.spec
1 #
2 # Conditional build:
3 %bcond_without  aalib   # compile without aalib support
4 %bcond_without  lirc    # compile without lirc remote control support
5 %bcond_with     mmx     # MMX support (if enabled, linear-plugin won't work on non-MMX CPU)
6 #
7 # asm code has 32-bit addressing, so x86_64 ABI is not supported
8 %ifarch pentium3 pentium4 athlon x32
9 %define with_mmx        1
10 %endif
11 Summary:        Video4Linux Stream Capture Viewer
12 Summary(pl.UTF-8):      Aplikacje video dla Linuksa
13 Summary(pt_BR.UTF-8):   Visualizador de fluxos de imagens obtidas através do Video4Linux
14 Summary(ru.UTF-8):      Просмотр и запись видеопотоков
15 Summary(uk.UTF-8):      Перегляд та запис відеопотоків
16 Name:           xawtv
17 Version:        3.107
18 Release:        1
19 License:        GPL v2
20 Group:          X11/Applications
21 Source0:        https://linuxtv.org/downloads/xawtv/%{name}-%{version}.tar.bz2
22 # Source0-md5:  3c9171aeeda7ca3eb2287f45ca7e86a9
23 Source1:        Xawtv.ad-pl
24 Source2:        %{name}.desktop
25 Source3:        %{name}-noxv.desktop
26 Source4:        %{name}-conf_example-PTK
27 Source5:        http://dl.bytesex.org/releases/tv-fonts/tv-fonts-1.1.tar.bz2
28 # Source5-md5:  ae73fc0efd53e53dca7077383cc22b5a
29 Patch0:         %{name}-home_etc.patch
30 Patch1:         %{name}-channels_list-cable_poland_PTK.patch
31 Patch2:         %{name}-fullscreen.patch
32 Patch3:         %{name}-libng_fix.patch
33 Patch4:         %{name}-path-fix.patch
34 Patch5:         %{name}-glibc.patch
35 URL:            https://www.kraxel.org/blog/linux/xawtv/
36 BuildRequires:  OpenGL-devel
37 %{?with_aalib:BuildRequires:    aalib-devel}
38 BuildRequires:  alsa-lib-devel
39 BuildRequires:  autoconf >= 2.50
40 BuildRequires:  fontconfig-devel
41 BuildRequires:  iconv
42 BuildRequires:  libdv-devel
43 BuildRequires:  libjpeg-devel
44 BuildRequires:  libpng-devel
45 BuildRequires:  libv4l-devel
46 %{?with_lirc:BuildRequires:     lirc-devel}
47 BuildRequires:  ncurses-devel >= 5.1
48 BuildRequires:  motif-devel
49 BuildRequires:  pkgconfig
50 BuildRequires:  xorg-app-bdftopcf
51 BuildRequires:  xorg-app-mkfontdir
52 BuildRequires:  xorg-lib-libX11-devel
53 BuildRequires:  xorg-lib-libXaw-devel
54 BuildRequires:  xorg-lib-libXext-devel
55 BuildRequires:  xorg-lib-libXft-devel
56 BuildRequires:  xorg-lib-libXinerama-devel
57 BuildRequires:  xorg-lib-libXmu-devel
58 BuildRequires:  xorg-lib-libXpm-devel
59 BuildRequires:  xorg-lib-libXrandr-devel
60 BuildRequires:  xorg-lib-libXrender-devel
61 BuildRequires:  xorg-lib-libXt-devel
62 BuildRequires:  xorg-lib-libXv-devel
63 BuildRequires:  xorg-lib-libXxf86dga-devel
64 BuildRequires:  xorg-lib-libXxf86vm-devel
65 BuildRequires:  zvbi-devel
66 Requires:       xorg-lib-libXt >= 1.0.0
67 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68
69 %define         _appdefsdir     %{_datadir}/X11/app-defaults
70 %define         font_dir        tv-fonts-1.1
71
72 %description
73 A collection tools for video4linux:
74 - xawtv - X11 TV application
75 - fbtv - console TV application
76 - streamer - capture tool (images / movies)
77 - v4lctl - command line tool to control v4l devices
78
79 %description -l pl.UTF-8
80 Kolekcja narzędzi video dla Linuksa
81 - xawtv - X11 aplikacje TV
82 - fbtv - aplikacje TV pod konsolę
83 - streamer - narzędzie do przechwytywanie obrazu (zdjęcia / filmy)
84 - v4lctl - narzędzie do kontroli urządzeń v4l
85
86 %description -l pt_BR.UTF-8
87 Uma coleção de ferramentas para o video4linux:
88 - xawtv - Visualização de filmes (fluxos de imagens) para o X
89 - fbtv - Versão do xawtv para console com framebuffer
90 - streamer - ferramenta e captura (imagens / filmes)
91 - v4lctl - ferramenta de linha de comando para controlar dispositivos
92   v4l
93
94 %description -l ru.UTF-8
95 Набор инструментов для работы с видеопотоками по протоколу
96 video4linux:
97 - xawtv - интерфейс под X11
98 - fbtv - консольный интерфейс
99 - streamer - инструмент для записи (изображение/фильм)
100 - v4lctl - инструмент командной строки для управления v4l устройствами
101
102 Включает также основанную на ncurses программу работы с радио.
103
104 %description -l uk.UTF-8
105 Набір інструментів для роботи з відеопотоками по протоколу
106 video4linux:
107 - xawtv - інтерфейс під X11
108 - fbtv - консольний інтерфейс
109 - streamer - інструмент для запису (зображення/фільм)
110 - v4lctl - інструмент командного рядка для управління v4l пристроями
111
112 Включає також основану на ncurses програму роботи з радіо.
113
114 %package radio
115 Summary:        radio
116 Summary(es.UTF-8):      xawtv: radio
117 Summary(pl.UTF-8):      radio
118 Summary(pt_BR.UTF-8):   Suporte a rádio no xawtv
119 Group:          Applications/Sound
120
121 %description radio
122 This is a ncurses-based radio application.
123
124 %description radio -l pl.UTF-8
125 Aplikacje radiowe bazujące na ncurses.
126
127 %package misc
128 Summary:        Misc utils related (or not) to xawtv
129 Summary(es.UTF-8):      xawtv: misc
130 Summary(pl.UTF-8):      Różne narzędzia pomocnicze do xawtv
131 Summary(pt_BR.UTF-8):   Ferramentas adicionais do xawtv
132 Group:          X11/Applications
133
134 %description misc
135 This package has a few tools you might find useful. They have not to
136 do very much to do with xawtv. I've used/wrote them for debugging:
137 - propwatch - monitors properties of X11 windows. If you want to know
138   how to keep track of xawtv's _XAWTV_STATION property, look at this.
139 - dump-mixers - dump mixer settings to stdout
140 - record - console sound recorder. Has a simple input level meter
141   which might be useful to trouble shoot sound problems.
142 - showriff - display the structure of RIFF files (avi, WAV).
143
144 %description misc -l pl.UTF-8
145 Ten pakiet zawiera sporo użytecznych narzędzi. Nie mają wiele
146 wspólnego z xawtv. Zostały napisane w celu debagowania xawtv.
147 - propwatch - monitor ustawień
148 - dump-mixers - "Dump" mixer
149 - record - Rejestrator dźwięku.
150 - showriff - Wyświetla strukturę plików RIFF (avi, WAV).
151
152 %description misc -l pt_BR.UTF-8
153 Ferramentas adicionais para depuração dos componentes do pacote xawtv:
154 - propwatch - monitora as propriedades de janelas X11. Se você quiser
155   saber como monitorar a propriedade _XAWTV_STATION use esta ferramenta.
156 - dump-mixers - apresenta as configurações do misturador na saída
157   padrão.
158 - record - gravador de som para o console. Tem um medidor de nível de
159   entrada que deve ser útil para auxiliar na resolução de problemas de
160   som.
161 - showriff - mostra a estrutura de arquivos RIFF (avi, WAV).
162
163 %package alevtd
164 Summary:        HTTP daemon for alevt teletext decoder
165 Summary(pl.UTF-8):      Daemon HTTP dla dekodera teletekstu alevt
166 Group:          Daemons
167 Requires:       alevt
168
169 %description alevtd
170 HTTP daemon for alevt teletext decoder
171
172 %description alevtd -l pl.UTF-8
173 Daemon HTTP dla dekodera teletekstu alevt
174
175 %package ttv
176 Summary:        ASCII Art TV viewer
177 Summary(pl.UTF-8):      Tekstowy program do oglądania TV
178 Group:          X11/Applications
179
180 %description ttv
181 TV tuner program using ASCII characters to display picture.
182
183 %description ttv -l pl.UTF-8
184 Program do obsługi tunera TV wyświetlający obraz przy użyciu znaków
185 ASCII.
186
187 %package -n fonts-misc-xawtv
188 Summary:        TV fonts
189 Summary(pl.UTF-8):      Fonty TV
190 Group:          Fonts
191 Requires(post,postun):  fontpostinst
192
193 %description -n fonts-misc-xawtv
194 This package contains a number of fonts which are useful for TV
195 applications:
196 - led-fixed: This is the big font which xawtv uses by default for the
197   onscreen display in fullscreen mode.
198 - ets-teletext: This is a teletext font. It contains the block graphic
199   characters used by teletext pages. When watching teletext with the mtt
200   teletext browser you'll get much better results with these fonts
201   installed.
202 - ets-caption: A font for closed captions.
203
204 %description -n fonts-misc-xawtv -l pl.UTF-8
205 Ten pakiet zawiera zestaw fontów przydatnych dla aplikacji
206 telewizyjnych:
207 - led-fixed - duży font, używany domyślnie przez xawtv do wyświetlania
208   napisów na ekranie (OSD) w trybie pełnoekranowym
209 - ets-teletext - font dla telegazety; zawiera znaki grafiki blokowej
210   używane na stronach telegazety. Oglądając telegazetę w przeglądarce
211   mtt można uzyskać dużo lepsze efekty mając zainstalowane te fonty.
212 - ets-caption - font do napisów.
213
214 %prep
215 %setup -q -a 5
216 %patch0 -p1
217 %patch1 -p1
218 %patch2 -p1
219 %patch3 -p1
220 %patch4 -p1
221 %patch5 -p1
222
223 %build
224 %{__autoconf}
225 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
226 %configure \
227         %{!?with_aalib:--disable-aalib} \
228         %{!?with_lirc:--disable-lirc} \
229         --enable-mmx%{!?with_mmx:=no} \
230         --enable-motif \
231         --disable-quicktime \
232         --disable-silent-rules \
233         --enable-xfree-ext \
234         --enable-xvideo
235 %{__make} \
236         verbose=yes
237
238 %{__make} -j1 -C %{font_dir}
239
240 %install
241 rm -rf $RPM_BUILD_ROOT
242 install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_fontsdir}/misc} \
243         $RPM_BUILD_ROOT%{_datadir}/X11/pl/app-defaults
244
245 %{__make} install \
246         DESTDIR="$RPM_BUILD_ROOT" \
247         SUID_ROOT=""
248
249 %{__mv} $RPM_BUILD_ROOT%{_datadir}/X11/{de_DE.UTF-8,de}
250 %{__mv} $RPM_BUILD_ROOT%{_datadir}/X11/{fr_FR.UTF-8,fr}
251 %{__mv} $RPM_BUILD_ROOT%{_datadir}/X11/{it_IT.UTF-8,it}
252 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/X11/pl/app-defaults/Xawtv
253 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
254 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
255 install %{SOURCE4} .
256
257 cp -p %{font_dir}/*.pcf.gz $RPM_BUILD_ROOT%{_fontsdir}/misc
258 cp -p %{font_dir}/fonts.alias $RPM_BUILD_ROOT%{_fontsdir}/misc/fonts.alias.xawtv
259
260 %clean
261 rm -rf $RPM_BUILD_ROOT
262
263 %post -n fonts-misc-xawtv
264 fontpostinst misc
265
266 %postun -n fonts-misc-xawtv
267 fontpostinst misc
268
269 %files
270 %defattr(644,root,root,755)
271 %doc Changes README* xawtv-conf_example-*
272 %attr(4755,root,root) %{_bindir}/v4l-conf
273 %attr(755,root,root) %{_bindir}/fbtv
274 %attr(755,root,root) %{_bindir}/streamer
275 %attr(755,root,root) %{_bindir}/xawtv-remote
276 %attr(755,root,root) %{_bindir}/xawtv
277 %attr(755,root,root) %{_bindir}/v4lctl
278 %attr(755,root,root) %{_bindir}/rootv
279 %attr(755,root,root) %{_bindir}/webcam
280 %attr(755,root,root) %{_bindir}/scantv
281 %attr(755,root,root) %{_bindir}/showqt
282 %attr(755,root,root) %{_bindir}/pia
283 %attr(755,root,root) %{_bindir}/v4l-info
284 %attr(755,root,root) %{_bindir}/motv
285 %attr(755,root,root) %{_bindir}/mtt
286 %attr(755,root,root) %{_libdir}/%{name}
287
288 %{_appdefsdir}/Xawtv
289 %{_appdefsdir}/MoTV
290 %{_appdefsdir}/mtt
291 %lang(pl) %{_datadir}/X11/pl/app-defaults/Xawtv
292 %lang(de) %{_datadir}/X11/de/app-defaults/MoTV
293 %lang(fr) %{_datadir}/X11/fr/app-defaults/MoTV
294 %lang(it) %{_datadir}/X11/it/app-defaults/MoTV
295
296 %{_desktopdir}/xawtv.desktop
297 %{_desktopdir}/xawtv-noxv.desktop
298
299 %{_datadir}/%{name}
300
301 %{_mandir}/man1/fbtv.1*
302 %{_mandir}/man1/v4l-info.1*
303 %{_mandir}/man1/v4lctl.1*
304 %{_mandir}/man1/xawtv-remote.1*
305 %{_mandir}/man1/xawtv.1*
306 %{_mandir}/man1/webcam.1*
307 %{_mandir}/man1/rootv.1*
308 %{_mandir}/man1/scantv.1*
309 %{_mandir}/man1/streamer.1*
310 %{_mandir}/man1/pia.1*
311 %{_mandir}/man1/mtt.1*
312 %{_mandir}/man1/motv.1*
313 %{_mandir}/man5/xawtvrc.5*
314 %{_mandir}/man8/v4l-conf.8*
315 %lang(es) %{_mandir}/es/man1/fbtv.1*
316 %lang(es) %{_mandir}/es/man1/rootv.1*
317 %lang(es) %{_mandir}/es/man1/scantv.1*
318 %lang(es) %{_mandir}/es/man1/streamer.1*
319 %lang(es) %{_mandir}/es/man1/v4lctl.1*
320 %lang(es) %{_mandir}/es/man1/xawtv-remote.1*
321 %lang(es) %{_mandir}/es/man1/xawtv.1*
322 %lang(es) %{_mandir}/es/man5/xawtvrc.5*
323 %lang(es) %{_mandir}/es/man8/v4l-conf.8*
324 %lang(fr) %{_mandir}/fr/man1/xawtv.1*
325
326 %files radio
327 %defattr(644,root,root,755)
328 %attr(755,root,root) %{_bindir}/radio
329 %{_mandir}/man1/radio.1*
330
331 %files misc
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_bindir}/dump-mixers
334 %attr(755,root,root) %{_bindir}/propwatch
335 %attr(755,root,root) %{_bindir}/record
336 %attr(755,root,root) %{_bindir}/showriff
337 %attr(755,root,root) %{_bindir}/ntsc-cc
338 %attr(755,root,root) %{_bindir}/subtitles
339 %{_mandir}/man1/propwatch.1*
340 %{_mandir}/man1/showriff.1*
341 %{_mandir}/man1/dump-mixers.1*
342 %{_mandir}/man1/ntsc-cc.1*
343 %{_mandir}/man1/record.1*
344 %{_mandir}/man1/subtitles.1*
345 %lang(es) %{_mandir}/es/man1/subtitles.1*
346
347 %files alevtd
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_bindir}/alevtd
350 %{_mandir}/man1/alevtd.1*
351
352 %if %{with aalib}
353 %files ttv
354 %defattr(644,root,root,755)
355 %attr(755,root,root) %{_bindir}/ttv
356 %{_mandir}/man1/ttv.1*
357 %lang(es) %{_mandir}/es/man1/ttv.1*
358 %endif
359
360 %files -n fonts-misc-xawtv
361 %defattr(644,root,root,755)
362 %{_fontsdir}/misc/caption.pcf.gz
363 %{_fontsdir}/misc/captioni.pcf.gz
364 %{_fontsdir}/misc/led-iso8859-*.pcf.gz
365 %{_fontsdir}/misc/led-iso10646-1.pcf.gz
366 %{_fontsdir}/misc/led-koi8-r.pcf.gz
367 %{_fontsdir}/misc/teletext*.pcf.gz
368 %{_fontsdir}/misc/fonts.alias.xawtv
This page took 0.213509 seconds and 4 git commands to generate.