aboutsummaryrefslogtreecommitdiffstats
path: root/xawtv.spec.in
diff options
context:
space:
mode:
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)
v3.68
Diffstat (limited to 'xawtv.spec.in')
-rw-r--r--xawtv.spec.in233
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
-Copyright: GNU GENERAL PUBLIC LICENSE
-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}
%description
-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.
%prep
-%setup
+%setup -q
%build
-mkdir build
-cd build
-CFLAGS="$RPM_OPT_FLAGS" ../configure --prefix=%{prefix}
+export CFLAGS="$RPM_OPT_FLAGS"
+./configure --prefix=/usr/X11R6
make depend
-make
+make all
%install
-cd build
-make DESTDIR="$RPM_BUILD_ROOT" SUID_ROOT="" install
-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
%defattr(-,root,root)
-%attr(4711,root,root) %{prefix}/bin/v4l-conf
-%doc README Changes COPYING Programming-FAQ
-%doc README.* UPDATE_TO_v3.0
+%doc COPYING
+%doc Changes TODO README README.*
+%doc Programming-FAQ UPDATE_TO_v3.0
%doc contrib/dot.lircrc contrib/frequencies*
+/usr/X11R6/bin/xawtv
+/usr/X11R6/man/man1/xawtv.1.gz
+/usr/X11R6/bin/rootv
+/usr/X11R6/man/man1/rootv.1.gz
-%files radio -f build/rpm.radio
+%files -n motv -f appdefaults.motv
%defattr(-,root,root)
+%doc COPYING
+%doc Changes TODO README README.*
+/usr/X11R6/bin/motv
+/usr/X11R6/man/man1/motv.1.gz
-%files misc -f build/rpm.misc
+%files -n tv-common
%defattr(-,root,root)
-%doc tools/README
-
-%files webcam -f build/rpm.webcam
+%doc COPYING
+/usr/X11R6/bin/subtitles
+/usr/X11R6/man/man1/subtitles.1.gz
+/usr/X11R6/bin/xawtv-remote
+/usr/X11R6/man/man1/xawtv-remote.1.gz
+/usr/X11R6/bin/propwatch
+/usr/X11R6/man/man1/propwatch.1.gz
+/usr/X11R6/man/man5/xawtvrc.5.gz
+/usr/X11R6/lib/X11/fonts/misc/led*
+/usr/X11R6/lib/xawtv/*.so
+
+%files -n v4l-conf
%defattr(-,root,root)
-%doc webcam/webcam.cgi
+%doc COPYING
+%attr(4711,root,root) /usr/X11R6/bin/v4l-conf
+/usr/X11R6/man/man8/v4l-conf.8.gz
-%files -n alevtd -f build/rpm.alevtd
+%files -n v4l-tools
+%defattr(-,root,root)
+%doc COPYING
+/usr/X11R6/bin/radio
+/usr/X11R6/man/man1/radio.1.gz
+/usr/X11R6/bin/fbtv
+/usr/X11R6/man/man1/fbtv.1.gz
+/usr/X11R6/bin/ttv
+/usr/X11R6/man/man1/ttv.1.gz
+/usr/X11R6/bin/streamer
+/usr/X11R6/man/man1/streamer.1.gz
+/usr/X11R6/bin/v4lctl
+/usr/X11R6/man/man1/v4lctl.1.gz
+/usr/X11R6/bin/record
+/usr/X11R6/man/man1/record.1.gz
+/usr/X11R6/bin/dump-mixers
+/usr/X11R6/man/man1/dump-mixers.1.gz
+/usr/X11R6/bin/showriff
+/usr/X11R6/man/man1/showriff.1.gz
+/usr/X11R6/bin/scantv
+/usr/X11R6/man/man1/scantv.1.gz
+/usr/X11R6/bin/webcam
+/usr/X11R6/man/man1/webcam.1.gz
+
+%files -n alevtd
%defattr(-,root,root)
+%doc COPYING
+/usr/X11R6/bin/alevtd
+/usr/X11R6/man/man1/alevtd.1.gz
%clean
-rm -rf $RPM_BUILD_ROOT
-
-%post
-cd /usr/X11R6/lib/X11/fonts/misc
-mkfontdir
-xset fp rehash || true
+if test "%{buildroot}" != ""; then
+ rm -rf "%{buildroot}"
+fi

Privacy Policy