mirror of
https://abf.rosa.ru/djam/xawtv.git
synced 2025-02-23 18:22:50 +00:00
Update BuildRequires, spec cleanup
This commit is contained in:
parent
f87418a087
commit
e457e99f35
1 changed files with 200 additions and 182 deletions
382
xawtv.spec
382
xawtv.spec
|
@ -5,85 +5,41 @@
|
|||
Summary: A X11 program for watching TV
|
||||
Name: xawtv
|
||||
Version: 3.102
|
||||
Release: 2
|
||||
Release: 3
|
||||
Group: Video
|
||||
License: GPL
|
||||
License: GPLv2+
|
||||
#OLD_STILL_VALID_URLs: http://www.strusel007.de/linux/xawtv/
|
||||
#http://bytesex.org/xawtv/
|
||||
URL: http://linux.bytesex.org/xawtv/
|
||||
Url: http://linux.bytesex.org/xawtv/
|
||||
Source0: http://linuxtv.org/downloads/xawtv/%{name}-%{version}.tar.bz2
|
||||
Source2: %{name}
|
||||
Patch31: xawtv-3.100-glibc.patch
|
||||
BuildRequires: recode
|
||||
BuildRequires: x11-server-common
|
||||
BuildRequires: aalib-devel
|
||||
BuildRequires: gpm-devel
|
||||
BuildRequires: pkgconfig(glu)
|
||||
BuildRequires: lesstif-devel
|
||||
BuildRequires: pkgconfig(alsa)
|
||||
BuildRequires: jpeg-devel
|
||||
BuildRequires: libzvbi-devel >= 0.2.1
|
||||
BuildRequires: pkgconfig(ncurses)
|
||||
BuildRequires: recode
|
||||
BuildRequires: lesstif-devel
|
||||
BuildRequires: slang-devel
|
||||
BuildRequires: xpm-devel
|
||||
BuildRequires: pkgconfig(xaw7)
|
||||
BuildRequires: pkgconfig(x11)
|
||||
BuildRequires: pkgconfig(alsa)
|
||||
BuildRequires: pkgconfig(fontconfig)
|
||||
BuildRequires: pkgconfig(glu)
|
||||
BuildRequires: pkgconfig(libdv)
|
||||
BuildRequires: pkgconfig(libfs)
|
||||
BuildRequires: pkgconfig(liblircclient0)
|
||||
BuildRequires: pkgconfig(libv4l1)
|
||||
BuildRequires: pkgconfig(ncurses)
|
||||
BuildRequires: pkgconfig(x11)
|
||||
BuildRequires: pkgconfig(xaw7)
|
||||
BuildRequires: pkgconfig(xinerama)
|
||||
BuildRequires: pkgconfig(xp)
|
||||
BuildRequires: pkgconfig(xpm)
|
||||
BuildRequires: pkgconfig(xrandr)
|
||||
BuildRequires: pkgconfig(xv)
|
||||
BuildRequires: pkgconfig(xxf86dga)
|
||||
BuildRequires: pkgconfig(xrandr)
|
||||
BuildRequires: pkgconfig(libdv)
|
||||
BuildRequires: pkgconfig(liblircclient0)
|
||||
BuildRequires: libv4l-devel
|
||||
BuildRequires: x11-server-common
|
||||
BuildRequires: pkgconfig(xp)
|
||||
|
||||
BuildRequires: pkgconfig(zvbi-0.2)
|
||||
Requires: common-licenses
|
||||
Requires: xawtv-common = %{version}
|
||||
|
||||
%package common
|
||||
Summary: Common files for fbtv/motv/ttv/xawtv
|
||||
Group: Video
|
||||
Requires: tv-fonts
|
||||
|
||||
%package control
|
||||
Summary: Control video4linux devices
|
||||
Group: Video
|
||||
|
||||
%package -n fbtv
|
||||
Summary: A console program for watching TV
|
||||
Group: Video
|
||||
Requires: xawtv-common = %{version}
|
||||
|
||||
%package misc
|
||||
Summary: Xawtv miscellous stuff
|
||||
Group: Video
|
||||
Requires: xawtv-common = %{version}
|
||||
|
||||
%package -n radio
|
||||
Summary: Console radio application
|
||||
Group: Sound
|
||||
Provides: xawtv-radio
|
||||
|
||||
%package -n streamer
|
||||
Summary: Record audio and/or video streams
|
||||
Group: Video
|
||||
Requires: xawtv-common = %{version}
|
||||
|
||||
%package -n motv
|
||||
Summary: A Motif program for watching TV
|
||||
Group: Video
|
||||
Requires: xawtv-common = %{version}
|
||||
|
||||
%package -n ttv
|
||||
Summary: Display TV/video on a tty
|
||||
Group: Video
|
||||
Requires: xawtv-common = %{version}
|
||||
|
||||
%package web
|
||||
Summary: Videotext pages webserver & images capture/upload to a webserver
|
||||
Group: Networking/WWW
|
||||
Requires: xawtv-common = %{version}
|
||||
Requires: xawtv-common = %{EVRD}
|
||||
|
||||
%description
|
||||
Xawtv is a Video4Linux Stream Capture Viewer, that is a X11 program for
|
||||
|
@ -92,13 +48,76 @@ watching TV.
|
|||
It uses the Athena widgets.
|
||||
MoTV has a nicer GUI which use lesstif (motif) widgets.
|
||||
|
||||
%description common
|
||||
%files
|
||||
%config(noreplace) %{tvtuner_launcher}/%{name}.desktop
|
||||
%config(noreplace) %{webcam_launcher}/%{name}.desktop
|
||||
%config(noreplace) %{_sysconfdir}/X11/app-defaults/Xawtv
|
||||
%{_bindir}/xawtv
|
||||
%{_bindir}/XawTV
|
||||
%{_mandir}/man1/xawtv.1*
|
||||
%{_mandir}/fr/man1/xawtv.1*
|
||||
%{_datadir}/applications/mandriva-%{name}.desktop
|
||||
/usr/lib/X11/app-defaults/Xawtv*
|
||||
%{_datadir}/%{name}
|
||||
|
||||
%post
|
||||
update-alternatives --install %{webcam_launcher}/gnome.desktop webcam.gnome.dynamic %{webcam_launcher}/%{name}.desktop 20
|
||||
update-alternatives --install %{webcam_launcher}/kde.desktop webcam.kde.dynamic %{webcam_launcher}/%{name}.desktop 20
|
||||
update-alternatives --install %{tvtuner_launcher}/kde.desktop tvtuner.kde.dynamic %{tvtuner_launcher}/%{name}.desktop 20
|
||||
update-alternatives --install %{tvtuner_launcher}/gnome.desktop tvtuner.gnome.dynamic %{tvtuner_launcher}/%{name}.desktop 20
|
||||
|
||||
%postun
|
||||
if [ $1 = 0 ]; then
|
||||
update-alternatives --remove webcam.kde.dynamic %{webcam_launcher}/%{name}.desktop
|
||||
update-alternatives --remove webcam.gnome.dynamic %{webcam_launcher}/%{name}.desktop
|
||||
update-alternatives --remove tvtuner.kde.dynamic %{tvtuner_launcher}/%{name}.desktop
|
||||
update-alternatives --remove tvtuner.gnome.dynamic %{tvtuner_launcher}/%{name}.desktop
|
||||
fi
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package common
|
||||
Summary: Common files for fbtv/motv/ttv/xawtv
|
||||
Group: Video
|
||||
Requires: tv-fonts
|
||||
|
||||
%description common
|
||||
These are common files for fbtv, motv, ttv and xawtv.
|
||||
They are:
|
||||
* scantv: small text program that look for tv channels
|
||||
* streamer - capture tool (images / movies)
|
||||
|
||||
%description control
|
||||
%files common
|
||||
%attr(4711,root,root) %{_bindir}/v4l-conf
|
||||
%{_bindir}/rootv
|
||||
%{_bindir}/scantv
|
||||
%{_bindir}/subtitles
|
||||
%{_bindir}/v4l-info
|
||||
%lang(es) %{_mandir}/es/man1/rootv.*
|
||||
%lang(es) %{_mandir}/es/man1/scantv.*
|
||||
%lang(es) %{_mandir}/es/man1/subtitles.*
|
||||
%lang(es) %{_mandir}/es/man1/xawtv.*
|
||||
%lang(es) %{_mandir}/es/man5/xawtvrc.*
|
||||
%lang(es) %{_mandir}/es/man8/v4l-conf.*
|
||||
%{_mandir}/man1/rootv.1*
|
||||
%{_mandir}/man1/scantv.1*
|
||||
%{_mandir}/man1/subtitles*
|
||||
%{_mandir}/man5/xawtvrc*
|
||||
%{_mandir}/man8/v4l*
|
||||
%{_mandir}/man1/v4l-info.*
|
||||
%dir %{_libdir}/%{name}
|
||||
%{_libdir}/%{name}/*
|
||||
%doc Changes README*
|
||||
%doc README*
|
||||
%doc contrib/frequencies*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package control
|
||||
Summary: Control video4linux devices
|
||||
Group: Video
|
||||
|
||||
%description control
|
||||
Xawtv-remote and v4lctl can be used to control a video4linux driven TV card.
|
||||
|
||||
Xawtv-remote passes the command to a already running xawtv or motv instance
|
||||
|
@ -106,7 +125,22 @@ using X11 properties.
|
|||
|
||||
V4lctl is a command line tool that sets the parameters directly.
|
||||
|
||||
%description -n fbtv
|
||||
%files control
|
||||
%{_bindir}/v4lctl
|
||||
%{_bindir}/xawtv-remote
|
||||
%{_mandir}/man1/v4lctl.1*
|
||||
%lang(es) %{_mandir}/es/man1/v4lctl.*
|
||||
%{_mandir}/man1/xawtv-remote.1*
|
||||
%lang(es) %{_mandir}/es/man1/xawtv-remote.*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n fbtv
|
||||
Summary: A console program for watching TV
|
||||
Group: Video
|
||||
Requires: xawtv-common = %{EVRD}
|
||||
|
||||
%description -n fbtv
|
||||
Fbtv is a program for watching TV with your linux box.
|
||||
It runs on top of a graphic framebuffer device (/dev/fb0).
|
||||
|
||||
|
@ -117,8 +151,19 @@ application.
|
|||
|
||||
Check the xawtv(1) manpage for details about the config file format.
|
||||
|
||||
%files -n fbtv
|
||||
%{_bindir}/fbtv
|
||||
%{_mandir}/man1/fbtv*
|
||||
%lang(es) %{_mandir}/es/man?/fbtv.*
|
||||
|
||||
%description misc
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package misc
|
||||
Summary: Xawtv miscellous stuff
|
||||
Group: Video
|
||||
Requires: xawtv-common = %{version}
|
||||
|
||||
%description misc
|
||||
This package has a few tools you might find useful. They
|
||||
have not to do very much to do with xawtv. They were written
|
||||
for debugging:
|
||||
|
@ -134,8 +179,32 @@ for debugging:
|
|||
shoot sound problems.
|
||||
* showriff - display the structure of RIFF files (avi, wav).
|
||||
|
||||
%files misc
|
||||
%config(noreplace) /etc/X11/app-defaults/mtt
|
||||
%{_bindir}/dump-mixers
|
||||
%{_bindir}/mtt
|
||||
%{_bindir}/ntsc-cc
|
||||
%{_bindir}/pia
|
||||
%{_bindir}/propwatch
|
||||
%{_bindir}/record
|
||||
%{_bindir}/showqt
|
||||
%{_bindir}/showriff
|
||||
%{_mandir}/man1/dump-mixers*
|
||||
%{_mandir}/man1/mtt*
|
||||
%{_mandir}/man1/ntsc*
|
||||
%{_mandir}/man1/pia*
|
||||
%{_mandir}/man1/record*
|
||||
%{_mandir}/man1/propwatch*
|
||||
%{_mandir}/man1/showriff.1*
|
||||
|
||||
%description -n motv
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n motv
|
||||
Summary: A Motif program for watching TV
|
||||
Group: Video
|
||||
Requires: xawtv-common = %{EVRD}
|
||||
|
||||
%description -n motv
|
||||
This is a motv-based Video4Linux capture viewer.
|
||||
|
||||
It is basically xawtv with a more user-friendly GUI.
|
||||
|
@ -143,19 +212,68 @@ It has the same features, uses the same config file, has the same command
|
|||
line switches, you can control it using xawtv-remote.
|
||||
Most keyboards shortcuts are identical too.
|
||||
|
||||
%description -n radio
|
||||
This is a ncurses-based radio application
|
||||
%files -n motv
|
||||
%{_bindir}/motv
|
||||
%{_mandir}/man1/motv*
|
||||
%{_datadir}/applications/mandriva-motv.desktop
|
||||
%config(noreplace) %{_sysconfdir}/X11/app-defaults/MoTV
|
||||
%config(noreplace) %{_sysconfdir}/X11/*/app-defaults/MoTV
|
||||
|
||||
%description -n streamer
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n radio
|
||||
Summary: Console radio application
|
||||
Group: Sound
|
||||
Provides: xawtv-radio
|
||||
|
||||
%description -n radio
|
||||
This is a ncurses-based radio application.
|
||||
|
||||
%files -n radio
|
||||
%{_bindir}/radio
|
||||
%{_mandir}/man1/radio*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n streamer
|
||||
Summary: Record audio and/or video streams
|
||||
Group: Video
|
||||
Requires: xawtv-common = %{EVRD}
|
||||
|
||||
%description -n streamer
|
||||
streamer reads audio and/or video data from /dev/video0 and /dev/dsp
|
||||
and writes the data to the disk.
|
||||
Various output formats are supported.
|
||||
Start streamer with '-h' for a list of options and supported output formats.
|
||||
|
||||
%description -n ttv
|
||||
%files -n streamer
|
||||
%{_bindir}/streamer
|
||||
%{_mandir}/man1/streamer*
|
||||
%lang(es) %{_mandir}/es/man1/streamer.*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n ttv
|
||||
Summary: Display TV/video on a tty
|
||||
Group: Video
|
||||
Requires: xawtv-common = %{version}
|
||||
|
||||
%description -n ttv
|
||||
Ttv displays TV/video on a terminal, rendering the images using aalib.
|
||||
|
||||
%description web
|
||||
%files -n ttv
|
||||
%{_bindir}/ttv
|
||||
%{_mandir}/man1/ttv*
|
||||
%lang(es) %{_mandir}/es/man1/ttv.*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package web
|
||||
Summary: Videotext pages webserver & images capture/upload to a webserver
|
||||
Group: Networking/WWW
|
||||
Requires: xawtv-common = %{EVRD}
|
||||
|
||||
%description web
|
||||
Webcam captures images from a video4linux device like bttv,
|
||||
annotates them and and uploads them to a webserver using ftp
|
||||
in a endless loop.
|
||||
|
@ -169,6 +287,14 @@ or http://localhost:5654/<page>/<subpage>.html) or in ASCII text format
|
|||
(http://localhost:5654/<page>/<subpage>.txt).
|
||||
Subpage "00" can be used for pages without subpages.
|
||||
|
||||
%files web
|
||||
%{_bindir}/alevtd
|
||||
%{_bindir}/webcam
|
||||
%{_mandir}/man1/alevtd.1*
|
||||
%{_mandir}/man1/webcam.1*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch31 -p0
|
||||
|
@ -250,111 +376,3 @@ Icon=video_section
|
|||
Type=Application
|
||||
EOF
|
||||
|
||||
|
||||
%post
|
||||
update-alternatives --install %{webcam_launcher}/gnome.desktop webcam.gnome.dynamic %{webcam_launcher}/%{name}.desktop 20
|
||||
update-alternatives --install %{webcam_launcher}/kde.desktop webcam.kde.dynamic %{webcam_launcher}/%{name}.desktop 20
|
||||
update-alternatives --install %{tvtuner_launcher}/kde.desktop tvtuner.kde.dynamic %{tvtuner_launcher}/%{name}.desktop 20
|
||||
update-alternatives --install %{tvtuner_launcher}/gnome.desktop tvtuner.gnome.dynamic %{tvtuner_launcher}/%{name}.desktop 20
|
||||
|
||||
%postun
|
||||
if [ $1 = 0 ]; then
|
||||
update-alternatives --remove webcam.kde.dynamic %{webcam_launcher}/%{name}.desktop
|
||||
update-alternatives --remove webcam.gnome.dynamic %{webcam_launcher}/%{name}.desktop
|
||||
update-alternatives --remove tvtuner.kde.dynamic %{tvtuner_launcher}/%{name}.desktop
|
||||
update-alternatives --remove tvtuner.gnome.dynamic %{tvtuner_launcher}/%{name}.desktop
|
||||
fi
|
||||
|
||||
%files
|
||||
%config(noreplace) %{tvtuner_launcher}/%{name}.desktop
|
||||
%config(noreplace) %{webcam_launcher}/%{name}.desktop
|
||||
%config(noreplace) %{_sysconfdir}/X11/app-defaults/Xawtv
|
||||
%{_bindir}/xawtv
|
||||
%{_bindir}/XawTV
|
||||
%{_mandir}/man1/xawtv.1*
|
||||
%{_mandir}/fr/man1/xawtv.1*
|
||||
%{_datadir}/applications/mandriva-%{name}.desktop
|
||||
/usr/lib/X11/app-defaults/Xawtv*
|
||||
%{_datadir}/%{name}
|
||||
|
||||
%files common
|
||||
%attr(4711,root,root) %{_bindir}/v4l-conf
|
||||
%{_bindir}/rootv
|
||||
%{_bindir}/scantv
|
||||
%{_bindir}/subtitles
|
||||
%{_bindir}/v4l-info
|
||||
%lang(es) %{_mandir}/es/man1/rootv.*
|
||||
%lang(es) %{_mandir}/es/man1/scantv.*
|
||||
%lang(es) %{_mandir}/es/man1/subtitles.*
|
||||
%lang(es) %{_mandir}/es/man1/xawtv.*
|
||||
%lang(es) %{_mandir}/es/man5/xawtvrc.*
|
||||
%lang(es) %{_mandir}/es/man8/v4l-conf.*
|
||||
%{_mandir}/man1/rootv.1*
|
||||
%{_mandir}/man1/scantv.1*
|
||||
%{_mandir}/man1/subtitles*
|
||||
%{_mandir}/man5/xawtvrc*
|
||||
%{_mandir}/man8/v4l*
|
||||
%{_mandir}/man1/v4l-info.*
|
||||
%dir %{_libdir}/%{name}
|
||||
%{_libdir}/%{name}/*
|
||||
%doc Changes README*
|
||||
%doc README*
|
||||
%doc contrib/frequencies*
|
||||
|
||||
%files control
|
||||
%{_bindir}/v4lctl
|
||||
%{_bindir}/xawtv-remote
|
||||
%{_mandir}/man1/v4lctl.1*
|
||||
%lang(es) %{_mandir}/es/man1/v4lctl.*
|
||||
%{_mandir}/man1/xawtv-remote.1*
|
||||
%lang(es) %{_mandir}/es/man1/xawtv-remote.*
|
||||
|
||||
%files -n fbtv
|
||||
%{_bindir}/fbtv
|
||||
%{_mandir}/man1/fbtv*
|
||||
%lang(es) %{_mandir}/es/man?/fbtv.*
|
||||
|
||||
%files misc
|
||||
%config(noreplace) /etc/X11/app-defaults/mtt
|
||||
%{_bindir}/dump-mixers
|
||||
%{_bindir}/mtt
|
||||
%{_bindir}/ntsc-cc
|
||||
%{_bindir}/pia
|
||||
%{_bindir}/propwatch
|
||||
%{_bindir}/record
|
||||
%{_bindir}/showqt
|
||||
%{_bindir}/showriff
|
||||
%{_mandir}/man1/dump-mixers*
|
||||
%{_mandir}/man1/mtt*
|
||||
%{_mandir}/man1/ntsc*
|
||||
%{_mandir}/man1/pia*
|
||||
%{_mandir}/man1/record*
|
||||
%{_mandir}/man1/propwatch*
|
||||
%{_mandir}/man1/showriff.1*
|
||||
|
||||
%files -n motv
|
||||
%{_bindir}/motv
|
||||
%{_mandir}/man1/motv*
|
||||
%{_datadir}/applications/mandriva-motv.desktop
|
||||
%config(noreplace) %{_sysconfdir}/X11/app-defaults/MoTV
|
||||
%config(noreplace) %{_sysconfdir}/X11/*/app-defaults/MoTV
|
||||
|
||||
%files -n radio
|
||||
%{_bindir}/radio
|
||||
%{_mandir}/man1/radio*
|
||||
|
||||
%files -n streamer
|
||||
%{_bindir}/streamer
|
||||
%{_mandir}/man1/streamer*
|
||||
%lang(es) %{_mandir}/es/man1/streamer.*
|
||||
|
||||
%files -n ttv
|
||||
%{_bindir}/ttv
|
||||
%{_mandir}/man1/ttv*
|
||||
%lang(es) %{_mandir}/es/man1/ttv.*
|
||||
|
||||
%files web
|
||||
%{_bindir}/alevtd
|
||||
%{_bindir}/webcam
|
||||
%{_mandir}/man1/alevtd.1*
|
||||
%{_mandir}/man1/webcam.1*
|
||||
|
|
Loading…
Add table
Reference in a new issue