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)
7 # asm code has 32-bit addressing, so x86_64 ABI is not supported
8 %ifarch pentium3 pentium4 athlon x32
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): Перегляд та запис відеопотоків
20 Group: X11/Applications
21 Source0: https://linuxtv.org/downloads/xawtv/%{name}-%{version}.tar.bz2
22 # Source0-md5: 3c9171aeeda7ca3eb2287f45ca7e86a9
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
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)
69 %define _appdefsdir %{_datadir}/X11/app-defaults
70 %define font_dir tv-fonts-1.1
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
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
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
94 %description -l ru.UTF-8
95 Набор инструментов для работы с видеопотоками по протоколу
97 - xawtv - интерфейс под X11
98 - fbtv - консольный интерфейс
99 - streamer - инструмент для записи (изображение/фильм)
100 - v4lctl - инструмент командной строки для управления v4l устройствами
102 Включает также основанную на ncurses программу работы с радио.
104 %description -l uk.UTF-8
105 Набір інструментів для роботи з відеопотоками по протоколу
107 - xawtv - інтерфейс під X11
108 - fbtv - консольний інтерфейс
109 - streamer - інструмент для запису (зображення/фільм)
110 - v4lctl - інструмент командного рядка для управління v4l пристроями
112 Включає також основану на ncurses програму роботи з радіо.
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
122 This is a ncurses-based radio application.
124 %description radio -l pl.UTF-8
125 Aplikacje radiowe bazujące na ncurses.
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
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).
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).
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
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
161 - showriff - mostra a estrutura de arquivos RIFF (avi, WAV).
164 Summary: HTTP daemon for alevt teletext decoder
165 Summary(pl.UTF-8): Daemon HTTP dla dekodera teletekstu alevt
170 HTTP daemon for alevt teletext decoder
172 %description alevtd -l pl.UTF-8
173 Daemon HTTP dla dekodera teletekstu alevt
176 Summary: ASCII Art TV viewer
177 Summary(pl.UTF-8): Tekstowy program do oglądania TV
178 Group: X11/Applications
181 TV tuner program using ASCII characters to display picture.
183 %description ttv -l pl.UTF-8
184 Program do obsługi tunera TV wyświetlający obraz przy użyciu znaków
187 %package -n fonts-misc-xawtv
189 Summary(pl.UTF-8): Fonty TV
191 Requires(post,postun): fontpostinst
193 %description -n fonts-misc-xawtv
194 This package contains a number of fonts which are useful for TV
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
202 - ets-caption: A font for closed captions.
204 %description -n fonts-misc-xawtv -l pl.UTF-8
205 Ten pakiet zawiera zestaw fontów przydatnych dla aplikacji
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.
225 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
227 %{!?with_aalib:--disable-aalib} \
228 %{!?with_lirc:--disable-lirc} \
229 --enable-mmx%{!?with_mmx:=no} \
231 --disable-quicktime \
232 --disable-silent-rules \
238 %{__make} -j1 -C %{font_dir}
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
246 DESTDIR="$RPM_BUILD_ROOT" \
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}
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
261 rm -rf $RPM_BUILD_ROOT
263 %post -n fonts-misc-xawtv
266 %postun -n fonts-misc-xawtv
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}
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
296 %{_desktopdir}/xawtv.desktop
297 %{_desktopdir}/xawtv-noxv.desktop
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*
327 %defattr(644,root,root,755)
328 %attr(755,root,root) %{_bindir}/radio
329 %{_mandir}/man1/radio.1*
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*
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_bindir}/alevtd
350 %{_mandir}/man1/alevtd.1*
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*
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