path: root/xawtv.spec.in
diff options
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:38 (GMT)
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:38 (GMT)
commit54705a2f70386897bf3d186cdc4b7c47b3082444 (patch)
tree7815adeec6eb6647217cc802f92e458875b7a419 /xawtv.spec.in
parentfdd6d37352122375fe9521724cbdd397225812c9 (diff)
Diffstat (limited to 'xawtv.spec.in')
1 files changed, 135 insertions, 98 deletions
diff --git a/xawtv.spec.in b/xawtv.spec.in
index 3303a14..65914fa 100644
--- a/xawtv.spec.in
+++ b/xawtv.spec.in
@@ -1,118 +1,155 @@
-%define prefix /usr/X11R6
-# workaround a bug in rpm 3.0.4:
-# by default it modifies the files installed by my %install
-# scriptlet (compresses the man-pages), but failes to update
-# the %files section too.
-%define __os_install_post true
-Summary: Video4Linux Stream Capture Viewer
-Name: xawtv
-Version: @VERSION@
-Release: 1
-Source0: xawtv_%{version}.tar.gz
-Group: X11/Applications
-URL: http://www.strusel007.de/linux/xawtv/xawtv_%{version}.tar.gz
-BuildRoot: /var/tmp/xawtv-%{version}.root
-%package radio
-Summary: radio
-Group: Applications/Sound
-%package misc
-Summary: misc
-Group: X11/Applications
-%package webcam
-Summary: webcam
-Group: Graphics
-%package -n alevtd
-Summary: alevtd
-Group: Applications/Internet
+Name: xawtv
+Group: Applications/Multimedia
+Requires: v4l-conf, tv-common
+Autoreqprov: on
+Version: @VERSION@
+Release: 0
+License: GPL
+Summary: Video4Linux TV application (Athena)
+Source: http://bytesex.org/xawtv/%{name}_%{version}.tar.gz
+Buildroot: /var/tmp/root.%{name}-%{version}
-A collection tools for video4linux:
- * xawtv - X11 TV application
- * fbtv - console TV application
- * streamer - capture tool (images / movies)
- * v4lctl - command line tool to control v4l devices
-%description radio
-This is a ncurses-based radio application
-%description misc
-This package has a few tools you might find useful. They
-have not to do very much to do with xawtv. I've used/wrote
-them for debugging:
- * propwatch - monitors properties of X11 windows. If you
- want to know how to keep track of xawtv's
- _XAWTV_STATION property, look at this.
- * dump-mixers - dump mixer settings to stdout
- * record - console sound recorder. Has a simple input
- level meter which might be useful to trouble
- shoot sound problems.
- * showriff - display the structure of RIFF files (avi, wav).
-%description webcam
-webcam captures images from a video4linux device like bttv,
-annotates them and and uploads them to a webserver using ftp
-in a endless loop.
-%description -n alevtd
-http daemon which serves videotext pages as HTML.
+xawtv is a X11 application for watching TV with your linux box. It
+supports video4linux devices (for example bttv cards, various USB
+webcams, ...). It uses the Athena widgets.
+%package -n motv
+Summary: Video4Linux TV application (Motif)
+Group: Applications/Multimedia
+Requires: v4l-conf, tv-common
+Provides: xawtv:/usr/X11R6/bin/motv
+%description -n motv
+motv is a X11 application for watching TV with your Linux box. It
+supports video4linux devices (for example bttv cards, various USB
+webcams, ...). It's based on xawtv's code, but uses Motif to provide a
+better GUI.
+%package -n tv-common
+Summary: fonts, tools and some README's for motv and xawtv
+Group: Applications/Multimedia
+Provides: xawtv:/usr/X11R6/lib/X11/fonts/misc/led-iso8859-1.bdf
+%description -n tv-common
+This package includes some X11 fonts used by motv and xawtv, some
+utilities for them (xawtv-remote for example), and some README files.
+%package -n v4l-conf
+Summary: video4linux configuration tool
+Group: Applications/Multimedia
+Provides: xawtv:/usr/X11R6/bin/v4l-conf
+%description -n v4l-conf
+This is a small utility used to configure video4linux device drivers
+(bttv for example). xawtv, motv and fbtv need it.
+%package -n v4l-tools
+Summary: video4linux terminal / command line utilities.
+Group: Applications/Multimedia
+Requires: v4l-conf, tv-common
+Provides: xawtv:/usr/X11R6/bin/v4lctl
+%description -n v4l-tools
+This package includes a bunch of command line utilities: v4lctl to
+control video4linux devices; streamer to record movies; fbtv to
+watch TV on the framebuffer console; ttv to watch tv on any ttv (powered
+by aalib), webcam for capturing and uploading images, a curses radio
+application, ...
+%package -n alevtd
+Summary: http server for teletext pages
+Group: Networking/Daemons
+%description -n alevtd
+alevtd reads the teletext pages from /dev/vbi and allows to fetch them
+via http, i.e. you can read the teletext pages with a web browser.
+%setup -q
-mkdir build
-cd build
-CFLAGS="$RPM_OPT_FLAGS" ../configure --prefix=%{prefix}
+./configure --prefix=/usr/X11R6
make depend
+make all
-cd build
-find "$RPM_BUILD_ROOT" -type f -print \
- | sed -e "s|$RPM_BUILD_ROOT||" \
- | grep -v "^/usr/doc" \
- > rpm.all
-egrep -e "/radio" rpm.all > rpm.radio
-egrep -e "/(dump-mixers|record|showriff|propwatch)" rpm.all > rpm.misc
-egrep -e "/webcam" rpm.all > rpm.webcam
-egrep -e "/alevtd" rpm.all > rpm.alevtd
-egrep -ve "/(radio|dump-mixers|record|showriff|propwatch|webcam|alevtd|v4l-conf)" \
- rpm.all > rpm.xawtv
-%files -f build/rpm.xawtv
+make DESTDIR="%{buildroot}" SUID_ROOT="" install
+gzip -v %{buildroot}/usr/X11R6/man/man*/*
+find %{buildroot} -name Xawtv -print |\
+ sed -e 's|%{buildroot}||' > appdefaults.xawtv
+find %{buildroot} -name MoTV -print |\
+ sed -e 's|%{buildroot}||' > appdefaults.motv
+%files -f appdefaults.xawtv
-%attr(4711,root,root) %{prefix}/bin/v4l-conf
-%doc README Changes COPYING Programming-FAQ
-%doc README.* UPDATE_TO_v3.0
+%doc Changes TODO README README.*
+%doc Programming-FAQ UPDATE_TO_v3.0
%doc contrib/dot.lircrc contrib/frequencies*
-%files radio -f build/rpm.radio
+%files -n motv -f appdefaults.motv
+%doc Changes TODO README README.*
-%files misc -f build/rpm.misc
+%files -n tv-common
-%doc tools/README
-%files webcam -f build/rpm.webcam
+%files -n v4l-conf
-%doc webcam/webcam.cgi
+%attr(4711,root,root) /usr/X11R6/bin/v4l-conf
-%files -n alevtd -f build/rpm.alevtd
+%files -n v4l-tools
+%files -n alevtd
-cd /usr/X11R6/lib/X11/fonts/misc
-xset fp rehash || true
+if test "%{buildroot}" != ""; then
+ rm -rf "%{buildroot}"

Privacy Policy