File xawtv.spec of Package xawtv

#
# spec file for package xawtv (Version 3.95)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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 lirc 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:        179
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
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

%build
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
* Tue Jul 29 2008 mmarek@suse.cz
- don't print spurious error messages in xioctl() (bnc#404034)
* Tue Aug 07 2007 olh@suse.de
- remove PAGE_SIZE useage and inclusion of asm/page.h
* Sat May 19 2007 coolo@suse.de
- remove translations from desktop files
* Thu Apr 19 2007 ro@suse.de
- added %%{_mandir}/fr directory to filelist
* Fri Mar 30 2007 rguenther@suse.de
- add %%{_mandir}/fr/man1 directory.
* Mon Oct 16 2006 kraxel@suse.de
- fix build failure.
* Thu Aug 17 2006 cthiel@suse.de
- update to version 3.95
  * misc minor fixes collected over time.
  * make it build with gcc4.
- drop xawtv-gcc4.patch
- fix build with X.Org 7.1
* Fri May 19 2006 ro@suse.de
- fix build on ppc64
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006 schwab@suse.de
- Don't strip binaries.
* Wed Oct 12 2005 sbrabec@suse.cz
- Force glib2 using gtk1-compat-devel.
- Enabled DV support.
* Fri Apr 22 2005 ro@suse.de
- hack to build with gcc4
* Fri Nov 19 2004 ro@suse.de
- include icon in file list
* Wed Nov 10 2004 ro@suse.de
- fixed permissions handling for v4l-conf
* Wed Aug 18 2004 kraxel@suse.de
- update to version 3.94.
* Thu Apr 22 2004 kraxel@suse.de
- update to version 3.92.
* Thu Jan 29 2004 kraxel@suse.de
- update to version 3.91.
* Tue Oct 28 2003 kraxel@suse.de
- %%run_permission fixes.
* Mon Oct 27 2003 kraxel@suse.de
- some spec file tweaks to make the package also build on
  older distributions.
* Fri Oct 17 2003 kraxel@suse.de
- updated to version 3.90
* Fri Sep 12 2003 kraxel@suse.de
- added bugfix for a segfault.
- added conflicts: xaw3dd to xawtv (#12466).
* Fri Aug 29 2003 kukuk@suse.de
- Change group to video for v4l-conf (like /etc/permissions has)
* Thu Aug 21 2003 kraxel@suse.de
- more file list fixes.
* Sat Aug 16 2003 adrian@suse.de
- add desktop files from kappfinder
* Thu Aug 14 2003 kraxel@suse.de
- fixup file lists (#28805).
* Wed Jun 18 2003 kraxel@suse.de
- fixup file lists.
* Mon May 26 2003 kraxel@suse.de
- fixup file lists.
* Wed Apr 16 2003 kraxel@suse.de
- updated to version 3.88
* Tue Apr 15 2003 kraxel@suse.de
- updated to version 3.87
* Mon Mar 31 2003 ro@suse.de
- use mesa-devel-packages in neededforbuild
* Wed Mar 26 2003 kraxel@suse.de
- updates to version 3.86
* Thu Feb 20 2003 kraxel@suse.de
- fix two segfaults in motv (one of them being bug #23958).
* Mon Feb 10 2003 kraxel@suse.de
- updated to version 3.85
* Fri Feb 07 2003 kraxel@suse.de
- updated to version 3.84
* Fri Jan 17 2003 kraxel@suse.de
- updated to version 3.83
* Tue Dec 10 2002 kraxel@suse.de
- updated to version 3.81
* Fri Nov 15 2002 kraxel@suse.de
- updated to version 3.79
* Fri Aug 16 2002 kraxel@suse.de
- added alevtd bugfix.
* Wed Jul 24 2002 kraxel@suse.de
- updated to version 3.76
- more neededforbuild fixes (alsa, mesa, lirc).
* Fri Jun 21 2002 ro@suse.de
- added xf86 and libjpeg to neededforbuild
- added glib,glib-devel to neededforbuild (for libquicktime)
- added openmotif,openmotif-devel (for motv)
- added aalib,aalib-devel,slang,slang-devel (for ttv)
* Thu Jun 20 2002 kraxel@suse.de
- updated to version 3.75
* Mon Mar 18 2002 kraxel@suse.de
- one-liner Fix for ppm snapshots.
* Fri Feb 22 2002 kraxel@suse.de
- updated to version 3.72
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Mon Jan 28 2002 kraxel@suse.de
- updated to version 3.68
* Tue Sep 11 2001 kraxel@suse.de
- fixed bugzilla #10420
- merged another one-liner fix for a segfault from current
  xawtv tree.
* Mon Sep 03 2001 kraxel@suse.de
- updated to version 3.61
* Fri Aug 31 2001 ro@suse.de
- added slang to neededforbuild (for aalib)
* Wed Aug 15 2001 kraxel@suse.de
- updated to version 3.60
* Mon Jul 30 2001 kraxel@suse.de
- updated to version 3.57
* Fri Jul 20 2001 kraxel@suse.de
- splitted into multiple, smaller packages.
* Tue Jul 17 2001 kraxel@suse.de
- updated to version 3.56
* Wed Jul 11 2001 kraxel@suse.de
- updated to version 3.55
* Mon Jun 25 2001 kraxel@suse.de
- updated to version 3.53
* Mon Apr 30 2001 kraxel@suse.de
- Deleted the %%post script with mkfontdir.  It's not required as
  /sbin/conf.d/SuSEconfig.fonts does that and causes problems
  at install time [bug #7425]
* Mon Apr 09 2001 kraxel@suse.de
- updated to version 3.43
- fixed %%post script
* Fri Apr 06 2001 kraxel@suse.de
- updated to version 3.42
- build with quicktime4linux lib and xfree4
- created new subpackage for alevtd
* Thu Apr 05 2001 uli@suse.de
- removed lx_suse from neededforbuild
* Thu Jan 11 2001 ro@suse.de
- fixed doc list
* Mon Jan 08 2001 mt@suse.de
- renamed consolefont lat1-16.psf* to lat1-16.psfu* in fbtools.c
* Sun Aug 27 2000 mt@suse.de
- added xf86_3x and xdevel3 to #needforbuild
* Wed Jul 05 2000 mt@suse.de
- update to 3.17 (works really fine with lx_suse >= 2.2.16-7)
- kradio is not a part of the xawtv source any more
* Mon Sep 27 1999 bs@suse.de
- fixed requirements for sub packages
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Sep 09 1999 bs@suse.de
- fixed call of Check at the end of %%install section
* Sat Jul 17 1999 mt@suse.de
- updated to 2.46 (bug fixes version)
- added some security patches
* Wed Jun 02 1999 mt@suse.de
- fixed ChannelEditor PopDown-Action (Close Button)
* Wed Jun 02 1999 mt@suse.de
- updated to 2.45
- adapted security fixes/checks by marc from previous releases
* Mon Apr 05 1999 bs@suse.de
- fixed date strings in .changes.
* Thu Mar 25 1999 mt@suse.de
- security fixes/checks by marc
* Fri Mar 19 1999 mt@suse.de
- fixed filelist in spec
* Fri Mar 19 1999 mt@suse.de
- new version 2.38
* Mon Nov 16 1998 mt@suse.de
- new version 2.29
* Wed Oct 07 1998 ro@suse.de
- detect which directory contains QT
* Mon Jul 13 1998 mt@suse.de
- added /usr/bin/radio, changed /dev/radio to /dev/bttv-fm (c,81,64)
* Sat Jul 11 1998 bs@suse.de
- fixed neededforbuild
* Fri Jul 10 1998 mt@suse.de
- new version 2.14 with v4l interface
openSUSE Build Service is sponsored by