aboutsummaryrefslogtreecommitdiffstats
path: root/xawtv.spec.in
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:35 (GMT)
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:35 (GMT)
commitcd7382baf50d1f055264748ac67f13c98d2f4205 (patch)
tree83470b86a32c893fa73b353036b4f91d01977ceb /xawtv.spec.in
parentfc44df6ca9cad3b3e154f38c3a43397afacbc82b (diff)
v3.27
Diffstat (limited to 'xawtv.spec.in')
-rw-r--r--xawtv.spec.in80
1 files changed, 51 insertions, 29 deletions
diff --git a/xawtv.spec.in b/xawtv.spec.in
index 79f0b3a..bf8e485 100644
--- a/xawtv.spec.in
+++ b/xawtv.spec.in
@@ -1,13 +1,19 @@
-# Installs in /usr/X11R6/bin
+%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: @XAWTV_VERSION@
Release: 1
-Source0: xawtv-%{version}.tar.gz
+Source0: xawtv_%{version}.tar.gz
Group: X11/Applications
Copyright: GNU GENERAL PUBLIC LICENSE
-URL: http://www.in-berlin.de/User/kraxel/v4l/xawtv-%{version}.tar.gz
-Vendor: Gerd Knorr <kraxel@goldbach.in-berlin.de>
+URL: http://www.strusel007.de/linux/xawtv/xawtv_%{version}.tar.gz
BuildRoot: /var/tmp/xawtv-%{version}.root
%package radio
@@ -18,6 +24,14 @@ Group: Applications/Sound
Summary: misc
Group: X11/Applications
+%package webcam
+Summary: webcam
+Group: Graphics
+
+%package -n alevtd
+Summary: alevtd
+Group: Applications/Internet
+
%description
A collection tools for video4linux:
* xawtv - X11 TV application
@@ -41,50 +55,59 @@ them for debugging:
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.
+
%prep
%setup
%build
mkdir build
cd build
-CFLAGS="$RPM_OPT_FLAGS" ../configure --prefix=/usr/X11R6
+CFLAGS="$RPM_OPT_FLAGS" ../configure --prefix=%{prefix}
make
%install
cd build
make ROOT="$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
-%files
-%attr(4711,root,root) /usr/X11R6/bin/v4l-conf
+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
%defattr(-,root,root)
-/usr/X11R6/bin/fbtv
-/usr/X11R6/bin/streamer
-/usr/X11R6/bin/xawtv-remote
-/usr/X11R6/bin/xawtv
-/usr/X11R6/bin/v4lctl
-/usr/X11R6/man/man1/fbtv.1
-/usr/X11R6/man/man1/v4l-conf.1
-/usr/X11R6/man/man1/v4lctl.1
-/usr/X11R6/man/man1/xawtv-remote.1
-/usr/X11R6/man/man1/xawtv.1
-/usr/X11R6/lib
+%attr(4711,root,root) %{prefix}/bin/v4l-conf
%doc README Changes COPYING Programming-FAQ Trouble-Shooting Sound-FAQ
-%doc README.lirc README.bttv UPDATE_TO_v3.0
+%doc README.* UPDATE_TO_v3.0
+%doc contrib/dot.lircrc contrib/frequencies*
-%files radio
+%files radio -f build/rpm.radio
%defattr(-,root,root)
-/usr/X11R6/bin/radio
-/usr/X11R6/man/man1/radio.1
-%files misc
+%files misc -f build/rpm.misc
%defattr(-,root,root)
-/usr/X11R6/bin/dump-mixers
-/usr/X11R6/bin/propwatch
-/usr/X11R6/bin/record
-/usr/X11R6/bin/showriff
-/usr/X11R6/man/man1/propwatch.1
%doc tools/README
+%files webcam -f build/rpm.webcam
+%defattr(-,root,root)
+%doc webcam/webcam.cgi
+
+%files -n alevtd -f build/rpm.alevtd
+%defattr(-,root,root)
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -92,4 +115,3 @@ rm -rf $RPM_BUILD_ROOT
cd /usr/X11R6/lib/X11/fonts/misc
mkfontdir
xset fp rehash || true
-

Privacy Policy