File xawtv.spec of Package xawtv
#
# spec file for package xawtv (Version 3.95)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xawtv
BuildRequires: aalib-devel alsa-devel freeglut-devel gcc-c++ libdrm-devel libjpeg-devel libpng-devel libv4l-devel lirc-devel ncurses-devel openmotif openmotif-devel recode slang-devel update-desktop-files xorg-x11-devel zvbi-devel
Url: http://bytesex.org/xawtv/
License: GPL v2 or later
Group: Hardware/TV
Requires: v4l-conf, tv-common, tv-fonts, pia
Conflicts: xaw3dd
AutoReqProv: on
Version: 3.95
Release: 210
Summary: Video4Linux TV application (Athena)
Source: http://dl.bytesex.org/releases/xawtv/%{name}-%{version}.tar.bz2
Source1: xawtv.desktop
Source2: motv.desktop
Patch: xawtv-3.95.patch
Patch1: xawtv-strip.patch
Patch2: xawtv-pagemask.patch
Patch3: xawtv.PAGE_SIZE.patch
Patch4: xawtv-xioctl-error.patch
# vvv Patches taken from Fedora (some of which originate from Debian)
Patch5: xawtv-3.95-man.patch
Patch6: xawtv-3.95-fixes.patch
Patch7: xawtv-3.95-no-dga.patch
Patch8: xawtv-3.95-bpl.patch
Patch9: xawtv-3.95-v4l2-old-drop.patch
Patch10: xawtv-3.95-libv4l2.patch
# ^^^
Patch11: xawtv-3.95-missing-fclose.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: permissions
%description
xawtv is an X Window System application for watching TV with your Linux
computer. It supports video4linux devices (for example bttv cards,
various USB webcams, and more). It uses the Athena widgets.
Authors:
--------
Gerd Knorr <kraxel@suse.de>
%package -n motv
License: GPL v2 or later
Summary: Video4Linux TV application (Motif)
Group: Hardware/TV
Requires: v4l-conf, tv-common, tv-fonts, pia
Provides: xawtv:%{_bindir}/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.
Also includes the teletext/videotext viewer mtt.
Authors:
--------
Gerd Knorr <kraxel@suse.de>
%package -n tv-common
License: GPL v2 or later
Summary: Fonts, Tools, and some READMEs for motv and xawtv
Group: Development/Libraries/C and C++
Provides: xawtv:/usr/X11R6/lib/X11/fonts/misc/led-iso8859-1.bdf
%description -n tv-common
This package includes some X Window System fonts used by motv and
xawtv, some utilities for them (xawtv-remote, for example), and some
README files.
Authors:
--------
Gerd Knorr <kraxel@suse.de>
%package -n v4l-conf
License: GPL v2 or later
Summary: Video4linux Configuration Tool
Group: Hardware/TV
Provides: xawtv:%{_bindir}/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.
Authors:
--------
Gerd Knorr <kraxel@suse.de>
%package -n v4l-tools
License: GPL v2 or later
Summary: video4linux terminal / command line utilities
Group: Hardware/TV
Requires: v4l-conf, tv-common
Provides: xawtv:%{_bindir}/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, ...
Authors:
--------
Gerd Knorr <kraxel@suse.de>
%package -n alevtd
License: GPL v2 or later
Summary: http server for teletext pages
Group: Productivity/Networking/Web/Servers
%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.
Authors:
--------
Gerd Knorr <kraxel@suse.de>
Edgar Toernig <froese@gmx.de>
%package -n pia
License: GPL v2 or later
Summary: Simple Movie Player
Group: Productivity/Multimedia/Video/Players
Requires: tv-common
%description -n pia
pia is a simple movie player which can playback AVI and QuickTime
movies recorded by xawtv, motv, and streamer. Other movies might work
as well.
Authors:
--------
Gerd Knorr <kraxel@suse.de>
%prep
%setup -q
%patch
%patch1
%patch2
%patch3 -p1
%patch4
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%{configure}
make
%install
make DESTDIR="%{buildroot}" SUID_ROOT="" install
gzip %{buildroot}%{_mandir}/man*/*
%suse_update_desktop_file %{SOURCE1} AudioVideo TV
%suse_update_desktop_file %{SOURCE2} AudioVideo TV
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m644 %{SOURCE1} %{SOURCE2} %{buildroot}%{_datadir}/applications
install contrib/xawtv48x48.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps/xawtv.xpm
%files
%defattr(-,root,root)
%doc COPYING
%doc Changes TODO README README.*
%doc contrib/frequencies* contrib/vdr.config
%dir %{_mandir}/fr
%dir %{_mandir}/fr/man1
%{_bindir}/xawtv
%{_bindir}/rootv
%{_mandir}/man1/xawtv.1.gz
%{_mandir}/*/man1/xawtv.1.gz
%{_mandir}/man1/rootv.1.gz
%{_mandir}/*/man1/rootv.1.gz
%{_datadir}/X11/app-defaults/Xawtv
%{_datadir}/applications/xawtv.desktop
%{_datadir}/pixmaps/xawtv.xpm
%files -n motv
%defattr(-,root,root)
%doc COPYING
%doc Changes TODO README README.*
%dir %{_datadir}/X11/de
%dir %{_datadir}/X11/de_DE.UTF-8
%dir %{_datadir}/X11/fr
%dir %{_datadir}/X11/it
%{_bindir}/motv
%{_mandir}/man1/motv.1.gz
%{_datadir}/X11/app-defaults/MoTV
%{_datadir}/X11/*/app-defaults
%{_bindir}/mtt
%{_mandir}/man1/mtt.1.gz
%{_datadir}/X11/app-defaults/mtt
%{_datadir}/applications/motv.desktop
%files -n tv-common
%defattr(-,root,root)
%doc COPYING
%{_bindir}/subtitles
%{_mandir}/man1/subtitles.1.gz
%dir %{_mandir}/fr
%dir %{_mandir}/fr/man1
%{_mandir}/*/man1/subtitles.1.gz
%{_bindir}/xawtv-remote
%{_mandir}/man1/xawtv-remote.1.gz
%{_mandir}/*/man1/xawtv-remote.1.gz
%{_bindir}/propwatch
%{_mandir}/man1/propwatch.1.gz
%{_mandir}/man5/xawtvrc.5.gz
%{_mandir}/*/man5/xawtvrc.5.gz
%{_libdir}/xawtv
%{_datadir}/xawtv
%files -n v4l-conf
%defattr(-,root,root)
%doc COPYING
%verify(not mode) %attr(4750,root,video) %{_bindir}/v4l-conf
%{_mandir}/man8/v4l-conf.8.gz
%dir %{_mandir}/es
%dir %{_mandir}/es/man8
%{_mandir}/*/man8/v4l-conf.8.gz
%files -n v4l-tools
%defattr(-,root,root)
%doc COPYING
%dir %{_mandir}/fr
%dir %{_mandir}/fr/man1
%{_bindir}/radio
%{_mandir}/man1/radio.1.gz
%{_bindir}/fbtv
%{_mandir}/man1/fbtv.1.gz
%{_mandir}/*/man1/fbtv.1.gz
%{_bindir}/ttv
%{_mandir}/man1/ttv.1.gz
%{_mandir}/*/man1/ttv.1.gz
%{_bindir}/streamer
%{_mandir}/man1/streamer.1.gz
%{_mandir}/*/man1/streamer.1.gz
%{_bindir}/v4lctl
%{_mandir}/man1/v4lctl.1.gz
%{_mandir}/*/man1/v4lctl.1.gz
%{_bindir}/record
%{_mandir}/man1/record.1.gz
%{_bindir}/dump-mixers
%{_mandir}/man1/dump-mixers.1.gz
%{_bindir}/showriff
%{_mandir}/man1/showriff.1.gz
%{_bindir}/showqt
%{_bindir}/scantv
%{_mandir}/man1/scantv.1.gz
%{_mandir}/*/man1/scantv.1.gz
%{_bindir}/ntsc-cc
%{_mandir}/man1/ntsc-cc.1.gz
%{_bindir}/webcam
%{_mandir}/man1/webcam.1.gz
%{_bindir}/v4l-info
%{_mandir}/man1/v4l-info.1.gz
%files -n alevtd
%defattr(-,root,root)
%doc COPYING
%{_bindir}/alevtd
%{_mandir}/man1/alevtd.1.gz
%files -n pia
%defattr(-,root,root)
%doc COPYING
%doc Changes TODO README README.*
%{_bindir}/pia
%{_mandir}/man1/pia.1.gz
%post -n v4l-conf
%run_permissions
%verifyscript
%verify_permissions -e %{_bindir}/v4l-conf
%clean
test "%{buildroot}" != "" -a "%{buildroot}" != "/" &&\
rm -rf "%{buildroot}"
%changelog