4890a3f
%define libv4l	0%{!?_without_libv4l:1}
4890a3f
7b7260c
Summary: TV applications for video4linux compliant devices
7b7260c
Name: xawtv
Mauro Carvalho Chehab 281ee1c
Version: 3.100
Mauro Carvalho Chehab 88a4f85
Release: 1%{?dist}
7b7260c
Group: Applications/Multimedia
f9f1c29
License: GPLv2+
Mauro Carvalho Chehab 88a4f85
URL: http://git.linuxtv.org/xawtv3.git
7b7260c
Mauro Carvalho Chehab 88a4f85
Source0: http://linuxtv.org/downloads/xawtv/%{name}-%{version}.tar.bz2
7b7260c
Source1: xawtv.desktop
7b7260c
7b7260c
BuildRequires: mesa-libGL-devel, libXaw-devel, libXext-devel
Mauro Carvalho Chehab 281ee1c
BuildRequires: libXft-devel, libXinerama-devel
7b7260c
BuildRequires: libXpm-devel, libXrandr-devel, libXt-devel
7b7260c
BuildRequires: libXxf86dga-devel, libXv-devel
7b7260c
7b7260c
BuildRequires: ncurses-devel, fileutils, libjpeg-devel, libpng-devel
03a2935
BuildRequires: alsa-lib-devel
03a2935
%ifnarch s390 s390x
03a2935
BuildRequires: libdv-devel
03a2935
%endif
21d936b
BuildRequires: zvbi-devel, aalib-devel
21d936b
BuildRequires: gpm-devel, slang-devel
7b7260c
BuildRequires: autoconf, desktop-file-utils
4890a3f
%{!?_without_libv4l:BuildRequires: libv4l-devel}
7b7260c
909eba0
Requires: usermode xorg-x11-fonts-ISO8859-1-75dpi urw-fonts
7b7260c
7b7260c
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7b7260c
7b7260c
7b7260c
%description
7b7260c
Xawtv is a simple xaw-based TV program which uses the bttv driver or
7b7260c
video4linux. Xawtv contains various command-line utilities for
7b7260c
grabbing images and .avi movies, for tuning in to TV stations, etc.
7b7260c
Xawtv also includes a grabber driver for vic.
7b7260c
7b7260c
7b7260c
%prep
7b7260c
%setup -q
7b7260c
7b7260c
autoconf
7b7260c
autoheader
7b7260c
7b7260c
7b7260c
%build
7b7260c
7b7260c
export CFLAGS="$RPM_OPT_FLAGS -Wno-pointer-sign"
7b7260c
Mauro Carvalho Chehab 88a4f85
%configure --disable-motif --disable-quicktime
Mauro Carvalho Chehab 88a4f85
make verbose=yes
7b7260c
7b7260c
for man in `find man -name "*.[1-9]" -print`
7b7260c
do
7b7260c
    iconv -f ISO8859-1 -t UTF-8 <$man >$man.new && mv -f $man.new $man
7b7260c
done
7b7260c
7b7260c
7b7260c
%install
7b7260c
rm -rf $RPM_BUILD_ROOT
7b7260c
Mauro Carvalho Chehab 4cfe57e
make STRIP_FLAG=-s DESTDIR=$RPM_BUILD_ROOT resdir=$RPM_BUILD_ROOT%{_datadir}/X11 SUID_ROOT="" install
7b7260c
7b7260c
#  we have no motif support
7b7260c
rm -f $RPM_BUILD_ROOT%{_mandir}/*/motv.*
7b7260c
rm -f $RPM_BUILD_ROOT%{_mandir}/*/mtt.*
7b7260c
#  we have no quicktime support
7b7260c
rm -f $RPM_BUILD_ROOT%{_bindir}/showqt
7b7260c
7b7260c
7b7260c
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
7b7260c
install -p -m 0644 contrib/xawtv*.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps
7b7260c
7b7260c
desktop-file-install --vendor fedora		\
7b7260c
  --dir $RPM_BUILD_ROOT%{_datadir}/applications	\
7b7260c
  %{SOURCE1}
7b7260c
 
7b7260c
7b7260c
#   v4l-conf  stuff
7b7260c
7b7260c
mkdir -p $RPM_BUILD_ROOT%{_sbindir} \
7b7260c
	$RPM_BUILD_ROOT%{_sysconfdir}/pam.d \
7b7260c
	$RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps \
7b7260c
7b7260c
cat >v4l-conf.pam <
7b7260c
#%PAM-1.0
9ba38bc
auth		sufficient	pam_rootok.so
9ba38bc
auth		required	pam_console.so
9ba38bc
account		required	pam_permit.so
9ba38bc
session		required	pam_permit.so
9ba38bc
session		optional	pam_xauth.so
7b7260c
!
7b7260c
install -m 0644 v4l-conf.pam $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/v4l-conf
7b7260c
7b7260c
cat >v4l-conf.apps <
7b7260c
SESSION=true
7b7260c
USER=root
7b7260c
PROGRAM=%{_sbindir}/v4l-conf
7b7260c
!
7b7260c
install -m 0644 v4l-conf.apps $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/v4l-conf
7b7260c
7b7260c
mv $RPM_BUILD_ROOT%{_bindir}/v4l-conf $RPM_BUILD_ROOT%{_sbindir}/
7b7260c
ln -s consolehelper $RPM_BUILD_ROOT%{_bindir}/v4l-conf
7b7260c
7b7260c
7b7260c
%clean
7b7260c
rm -fr $RPM_BUILD_ROOT
7b7260c
7b7260c
7b7260c
%files
7b7260c
%defattr(-,root,root,-)
7b7260c
%config(noreplace) %{_sysconfdir}/pam.d/v4l-conf
7b7260c
%config(noreplace) %{_sysconfdir}/security/console.apps/v4l-conf
7b7260c
%{_bindir}/*
7b7260c
%{_sbindir}/*
7b7260c
%{_libdir}/xawtv
7b7260c
%{_datadir}/xawtv
7b7260c
%{_datadir}/X11/app-defaults/*
7b7260c
%{_datadir}/pixmaps/*
7b7260c
%{_datadir}/applications/*
7b7260c
%{_mandir}/man?/*
7b7260c
%lang(es) %{_mandir}/es/*/*
7b7260c
%lang(fr) %{_mandir}/fr/*/*
4890a3f
%doc COPYING README TODO contrib/frequencies*
7b7260c
7b7260c
7b7260c
%changelog
Mauro Carvalho Chehab 281ee1c
* Wed Mar  2 2011 Mauro Carvalho Chehab <mchehab@redhat.com> 3.100
Mauro Carvalho Chehab 281ee1c
- Update to Xawtv version 3.100
Mauro Carvalho Chehab 281ee1c
Mauro Carvalho Chehab 4cfe57e
* Tue Feb 01 2011 Mauro Carvalho Chehab <mchehab@redhat.com> 3.99.rc2.1
Mauro Carvalho Chehab 4cfe57e
- Update to Xawtv version 3.99.rc2
Mauro Carvalho Chehab 4cfe57e
- All other patches from Fedora are now upstream
Mauro Carvalho Chehab 4cfe57e
Mauro Carvalho Chehab 88a4f85
* Thu Jan 28 2011 Mauro Carvalho Chehab <mchehab@redhat.com> 3.99.rc1.1
Mauro Carvalho Chehab 88a4f85
- Update to Xawtv version 3.99.rc1
Mauro Carvalho Chehab 88a4f85
- Removed V4L1 support
Mauro Carvalho Chehab 88a4f85
- Applied some fixes upstream fixing radio application and also some
Mauro Carvalho Chehab 88a4f85
  improvements from other patches that were found on Fedora.
Mauro Carvalho Chehab 88a4f85
ab446ef
* Wed Nov 17 2010 Hans de Goede <hdegoede@redhat.com> 3.95-14
ab446ef
- Protect the exit code from being called twice. This fixes a double
ab446ef
  free error when the user tries to exit twice when xawtv is stuck (#608344)
ab446ef
909eba0
* Fri Mar 12 2010 Hans de Goede <hdegoede@redhat.com> 3.95-13
909eba0
- Fix xawtv not starting due to it not finding its fonts
909eba0
e7fe3f8
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.95-12.1
e7fe3f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e7fe3f8
03a2935
* Thu May 07 2009 Karsten Hopp <karsten@redhat.com> 3.95-11.1
03a2935
- we have no libdv on mainframe, don't require that on s390(x)
03a2935
e544c57
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.95-11
e544c57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e544c57
4890a3f
* Tue Aug 26 2008 Dmitry Butskoy <Dmitry@Butskoy.name> - 3.95-10
4890a3f
- fix some typos in manuals  (patch7, derived from Debian)
4890a3f
- fix recording from oss  (patch8, derived from Debian)
4890a3f
- allow scantv to use another card's input  (patch9, derived from Debian)
4890a3f
- some v4l2 code fixes  (patch10, Hans de Goede <j.w.r.degoede@hhs.nl>)
4890a3f
- skip dga automatically when not available  (patch11, Hans de Goede)
4890a3f
- specifying of bpl pitch for v4l-conf  (patch12, Hans de Goede)
4890a3f
- drop drv0-v4l2-old.so driver (assume not needed anyway now)
4890a3f
- optional (default yes) build with libv4l wrapper library
4890a3f
  (patch100, Hans de Goede <j.w.r.degoede@hhs.nl>)
4890a3f
65368fe
* Mon Jul 21 2008 Dmitry Butskoy <Dmitry@Butskoy.name> - 3.95-9
65368fe
- rebuild for new gpm
563cecc
- update strip patch
65368fe
fd53e38
* Tue Feb 19 2008 Dmitry Butskoy <Dmitry@Butskoy.name> - 3.95-8
21d936b
- add gpm-devel and slang-devel to BuildRequires
fd53e38
- rebuild for GCC 4.3
77e851b
e7cfaec
* Thu Aug 30 2007 Dmitry Butskoy <Dmitry@Butskoy.name> - 3.95-7
4890a3f
- add patch for "open(2) call now is a macro" issue (#265081).
e7cfaec
182e89b
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 3.95-6
182e89b
- Rebuild for selinux ppc32 issue.
182e89b
f9f1c29
* Fri Aug 17 2007 Dmitry Butskoy <Dmitry@Butskoy.name>
f9f1c29
- Change License tag to GPLv2+
f9f1c29
6311b26
* Wed Jul 25 2007 Jeremy Katz <katzj@redhat.com> - 3.95-5
6311b26
- rebuild for toolchain bug
6311b26
9ba38bc
* Tue Jul 24 2007 Dmitry Butskoy <Dmitry@Butskoy.name> - 3.95-4
9ba38bc
- don't assume v4l-conf as system config util (#249130)
9ba38bc
91477c2
* Tue Jun 26 2007 Dmitry Butskoy <Dmitry@Butskoy.name>
91477c2
- drop X-Fedora category from desktop file
91477c2
f95a691
* Mon Jun 25 2007 Dmitry Butskoy <Dmitry@Butskoy.name> - 3.95-3
83eb102
- add patch for use getpagesize() instead of a kernel headers macro
83eb102
7b7260c
* Thu Jun 21 2007 Dmitry Butskoy <Dmitry@Butskoy.name> - 3.95-1
7b7260c
- spec file cleanup
7b7260c
- accepted for Fedora (review by Jason Tibbitts <tibbs@math.uh.edu>)
7b7260c
7b7260c
* Thu Mar  1 2007 Dmitry Butskoy <Dmitry@Butskoy.name> - 3.95-0
7b7260c
- upgrade to 3.95
7b7260c
- adapt for Fedora Extras, spec file cleanups
7b7260c
- add UTF-8 support for console apps
7b7260c
- drop tv-fonts package (you can use zvbi-fonts package for that purpose),
7b7260c
  bitstream-vera is now a default for "big" fullscreen-mode fonts.
7b7260c
- add desktop entry and icons
7b7260c
- add ALEVTD_REGION environment to change default teletext's region
7b7260c
7b7260c
7b7260c
* Tue Oct 21 2003 Florian La Roche <Florian.LaRoche@redhat.de>
7b7260c
- add BuildReq for fontconfig-devel and freetype-devel, these seem
7b7260c
  to get picked up
7b7260c
7b7260c
* Mon Sep 01 2003 Than Ngo <than@redhat.com> 3.88-5
7b7260c
- Added missing BuildRequires for libpng-devel (bug #103447)
7b7260c
7b7260c
* Tue Jun 17 2003 Than Ngo <than@redhat.com> 3.88-4
7b7260c
- fixed permission problem (bug #90921)
7b7260c
7b7260c
* Tue Jun 17 2003 Than Ngo <than@redhat.com> 3.88-3
7b7260c
- rebuilt
7b7260c
7b7260c
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
7b7260c
- rebuilt
7b7260c
7b7260c
* Tue May  6 2003 Than Ngo <than@redhat.com> 3.88-1
7b7260c
- 3.88
7b7260c
7b7260c
* Thu Mar  3 2003 Than Ngo <than@redhat.com> 3.85-1
7b7260c
- 3.85, (#85557, #81588, #74684, #61717)
7b7260c
- own /usr/lib/xawtv, (bug #73981)
7b7260c
- dependency on libjpeg-devel, (bug #48925)
7b7260c
- include alevtd daemon (bug #53878)
7b7260c
- create default configuration by install (bug #73270) 
7b7260c
7b7260c
* Sun Feb 10 2003 Than Ngo <than@redhat.com> 3.81-6
7b7260c
- install correct pam file, #83820
7b7260c
7b7260c
* Mon Jan 27 2003 Than Ngo <than@redhat.com> 3.81-5
7b7260c
- fix #81791
7b7260c
7b7260c
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
7b7260c
- rebuilt
7b7260c
7b7260c
* Tue Jan 21 2003 Than Ngo <than@redhat.com> 3.81-3
7b7260c
- fix #81851
7b7260c
7b7260c
* Mon Dec 16 2002 Than Ngo <than@redhat.com> 3.81-2
7b7260c
- rebuild
7b7260c
7b7260c
* Fri Dec 13 2002 Than Ngo <than@redhat.com> 3.81-1
7b7260c
- update 3.81
7b7260c
- move bitmap fonts to bitmap-fonts package
7b7260c
7b7260c
* Tue Nov 12 2002 Nalin Dahyabhai <nalin@redhat.com> 3.78-2
7b7260c
- adjust PAM configuration to not use absolute paths so that the right module
7b7260c
  set gets used for the current arch on multilib systems
7b7260c
7b7260c
* Thu Nov  7 2002 Than Ngo <than@redhat.com> 3.78-1
7b7260c
- 3.78
7b7260c
7b7260c
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
7b7260c
- automated rebuild
7b7260c
7b7260c
* Thu Jun 20 2002 Than Ngo <than@redhat.com> 3.74-3
7b7260c
- Don't forcibly strip binaries
7b7260c
7b7260c
* Sun May 26 2002 Tim Powers <timp@redhat.com>
7b7260c
- automated rebuild
7b7260c
7b7260c
* Thu May 23 2002 Harald Hoyer <harald@redhat.de>
7b7260c
- 3.74
7b7260c
7b7260c
* Sun Apr 07 2002 han Ngo <than@redhat.com> 3.73-3
7b7260c
- remove motv manpage (#62771)
7b7260c
7b7260c
* Tue Apr  2 2002 Than Ngo <than@redhat.com> 3.73-2
7b7260c
- get rid of openmotif
7b7260c
7b7260c
* Sun Mar 24 2002 Than Ngo <than@redhat.com> 3.73-1
7b7260c
- update
7b7260c
- fix bug #61719
7b7260c
7b7260c
* Fri Mar 22 2002 Tim Powers <timp@redhat.com>
7b7260c
- rebuilt motv against new openmotif-2.2.2
7b7260c
7b7260c
* Tue Feb 26 2002 Than Ngo <than@redhat.com> 3.72-1
7b7260c
- update to 3.72
7b7260c
7b7260c
* Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 3.71-1
7b7260c
- 3.71
7b7260c
7b7260c
* Fri Jan 18 2002 Than Ngo <than@redhat.com> 3.68-1
7b7260c
- update to 3.68
7b7260c
- enable XFree extensions
7b7260c
- fix Url
7b7260c
- add missing plugins
7b7260c
7b7260c
* Wed Dec  5 2001 Than Ngo <than@redhat.com> 3.65-1
7b7260c
- update to 3.65
7b7260c
- fix build on ia64
7b7260c
7b7260c
* Wed Nov 14 2001 Than Ngo <than@redhat.com> 3.64-1
7b7260c
- update to 3.64
7b7260c
7b7260c
* Mon Sep 17 2001 Than Ngo <than@redhat.com> 3.62-1
7b7260c
- update to 3.62 (bug #53711 #52847)
7b7260c
7b7260c
* Tue Aug 28 2001 Than Ngo <than@redhat.com> 3.54-5
7b7260c
- fix spec file bug (Bug #52675)
7b7260c
7b7260c
* Fri Aug 10 2001 Than Ngo <than@redhat.com> 3.54-4
7b7260c
- add requires usermode (bug #51474)
7b7260c
7b7260c
* Sun Aug  5 2001 Nalin Dahyabhai <nalin@redhat.com> 3.54-3
7b7260c
- tweak PAM setup so that v4l-conf can access the display properly
7b7260c
7b7260c
* Tue Jul 10 2001 Elliot Lee <sopwith@redhat.com> 3.54-2
7b7260c
- Rebuild to remove libXv/libXxf86dga deps
7b7260c
7b7260c
* Mon Jul 02 2001 Than Ngo <than@redhat.com>
7b7260c
- update to 3.54
7b7260c
7b7260c
* Fri Jun 22 2001 Than Ngo <than@redhat.com>
7b7260c
- update to 3.53
7b7260c
- add buildprereq
7b7260c
- remove some uneeeded patches
7b7260c
7b7260c
* Tue Jun 19 2001 Karsten Hopp <karsten@redhat.de>
7b7260c
- excludearch s390 s390x
7b7260c
7b7260c
* Wed Jun 13 2001 Than Ngo <than@redhat.com>
7b7260c
- update to 3.51
7b7260c
7b7260c
* Thu Jun 07 2001 Than Ngo <than@redhat.com>
7b7260c
- update to 3.50
7b7260c
7b7260c
* Thu May 31 2001 Than Ngo <than@redhat.com>
7b7260c
- udate to 3.49
7b7260c
7b7260c
* Tue May 22 2001 Than Ngo <than@redhat.com>
7b7260c
- update to 3.48
7b7260c
7b7260c
* Mon May 21 2001 Tim Powers <timp@redhat.com>
7b7260c
- built for the distro
7b7260c
7b7260c
* Wed May 18 2001 Karsten Hopp <karsten@redhat.de>
7b7260c
- make xawtv work with kernel-2.4
7b7260c
7b7260c
* Wed May 16 2001 Than Ngo <than@redhat.com>
7b7260c
- update to 3.47
7b7260c
7b7260c
* Mon May 07 2001 Than Ngo <than@redhat.com>
7b7260c
- update to 3.45
7b7260c
- add missing fonts
7b7260c
7b7260c
* Tue Feb 13 2001 Than Ngo <than@redhat.com>
7b7260c
- update to 3.34
7b7260c
- use consolehelper for v4l-conf
7b7260c
- add excludearch sparc, bdftopcf is broken on sparc
7b7260c
7b7260c
* Wed Jan 24 2001 Than Ngo <than@redhat.com>
7b7260c
- updated to 3.30
7b7260c
- use /dev/video0 instead /dev/video (bug #24871)
7b7260c
- fixed dependencies (Bug #24881)
7b7260c
 
7b7260c
* Sun Nov 19 2000 Than Ngo <than@redhat.com>
7b7260c
- update to 3.24
7b7260c
- add missing tools (rootv,scantv)
7b7260c
- add missing prereq on xset and mkfontdir
7b7260c
7b7260c
* Fri Nov 3 2000 Than Ngo <than@redhat.com>
7b7260c
- update to 3.23
7b7260c
7b7260c
* Wed Aug 23 2000 Tim Powers <timp@redhat.com>
7b7260c
- rebuilt against new XFree86 to fix DGA problems
7b7260c
7b7260c
* Mon Aug 21 2000 Than Ngo <than@redhat.com>
7b7260c
- update to 3.18 (Bugfix release)
7b7260c
- option -nodga to disable DGA (Bug #16577, #15702)
7b7260c
- compress fonts with gzip
7b7260c
7b7260c
* Mon Aug 07 2000 Tim Powers <timp@redhat.com>
7b7260c
- fixed bug #15435
7b7260c
7b7260c
* Mon Aug 07 2000 Than Ngo <than@redhat.de>
7b7260c
- rebuilt against the new DGA
7b7260c
- fixed in post and postun, so that it does not
7b7260c
  emits to console (Bug #15436)
7b7260c
7b7260c
7b7260c
* Sat Jul 29 2000 Than Ngo <than@redhat.de>
7b7260c
- update to 3.17
7b7260c
7b7260c
* Mon Jul 24 2000 Prospector <prospector@redhat.com>
7b7260c
- rebuilt
7b7260c
7b7260c
* Wed Jul 12 2000 Than Ngo <than@redhat.de>
7b7260c
- FHS fixes
7b7260c
7b7260c
* Mon Jul 03 2000 Prospector <bugzilla@redhat.com>
7b7260c
- automatic rebuild
7b7260c
7b7260c
* Sun May 28 2000 Ngo Than <than@redhat.de>
7b7260c
- update to 3.14 for 7.0
7b7260c
- put man page in correct place
7b7260c
- add webcam
7b7260c
- bzip2 source
7b7260c
- cleanup specfile
7b7260c
7b7260c
* Wed Jan 19 2000 Preston Brown <pbrown@redhat.com>
7b7260c
- font fix (#8610) in post and postun
7b7260c
- add missing files in bin
7b7260c
7b7260c
* Sun Jan 16 2000 Preston Brown <pbrown@redhat.com>
7b7260c
- whoops! 3.07 already bugfix release
7b7260c
7b7260c
* Fri Jan 14 2000 Ngo Than <than@redhat.de>
7b7260c
- updated to 3.06
7b7260c
7b7260c
* Mon Jul 26 1999 Tim Powers <timp@redhat.com>
7b7260c
- updated to 2.46
7b7260c
- built for 6.1
7b7260c
7b7260c
* Wed Apr 28 1999 Preston Brown <pbrown@redhat.com>
7b7260c
- initial build for Powertools 6.0