File tvtime.spec of Package tvtime

#
# spec file for package tvtime (Version 1.0.2)
#
# 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:           tvtime
BuildRequires:  SDL-devel freetype2-devel gcc-c++ libpng-devel libxml2-devel update-desktop-files
Version:        1.0.2
Release:        158
Summary:        High Quality Television Application
Group:          Hardware/TV
License:        GPL v2 or later
Url:            http://tvtime.net
Source:         %{name}-%{version}.tar.bz2
Patch:          tvtime-gcc41.patch
Patch1:         tvtime-1.0.2-videoinput.patch
Patch2:         tvtime.linux-compiler.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
tvtime is a high quality television application for use with video
capture cards.	tvtime processes the input from a capture card and
displays it on a computer monitor or projector.  Unlike other
television applications, tvtime focuses on high visual quality.

tvtime supports: * Deinterlaced output at a full interlaced rate of
   59.94 frames per second for NTSC source or 50 frames per second
   for PAL sources. This gives smoothness of motion and high visual
   quality.

* Multiple deinterlacing algorithms for finding the optimal mode for
   your video content and available processor speed.

* 16:9 aspect ratio mode for the highest available resolution when
   processing input from an external DVD player or digital satellite
   receiver.

* A super-slick on-screen display for the complete television
   experience, with a feature-rich menu system.

* 2-3 Pulldown detection for optimal quality viewing of film content
   from NTSC sources.

You can find more information at http://tvtime.net/.



Authors:
--------
    Billy Biggs <vektor@dumbterm.net>
    Doug Bell <drbell@users.sourceforge.net>
    Achim Schneider <batchall@mordor.ch>
    Alexandr S. Belov <asbel@sice.ru>

%prep
%setup -q
%patch
%patch1 -p1
%patch2 -p1

%build
autoreconf -i -f
%ifarch %ix86
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mmmx"
export CXXFLAGS="-mmmx"
%endif
export CFLAGS="$RPM_OPT_FLAGS"
%configure --with-pic 
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
%suse_update_desktop_file -i net-tvtime AudioVideo TV
%find_lang %{name}

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-, root, root)
%doc NEWS AUTHORS COPYING INSTALL ChangeLog README docs/html
%doc data/COPYING*
%{_bindir}/*
%dir %{_sysconfdir}/tvtime
%config(noreplace) %{_sysconfdir}/tvtime/*
%{_datadir}/tvtime
%{_datadir}/applications/net-tvtime.desktop
%{_datadir}/icons/hicolor/
%{_datadir}/pixmaps/tvtime.*
%{_mandir}/*/*

%changelog
* Sun Feb 24 2008 crrodriguez@suse.de
- use find_lang macro to create a proper language list
* Mon Aug 06 2007 olh@suse.de
- remove inclusion of linux/compiler.h
* Wed Mar 14 2007 anschneider@suse.de
- tvtime-1.0.2-videoinput.patch:
  VIDIOC_DQBUF called without setting cur_buf.memory
* Tue Oct 17 2006 ro@suse.de
- remove DirectFB from BuildRequires (unused)
* Mon Jan 30 2006 hvogel@suse.de
- fix buildrequires again
* Fri Jan 27 2006 hvogel@suse.de
- add libpng-devel and freetype2-devel to buildrequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 19 2006 hvogel@suse.de
- update to version 1.0.2
* Fri Jan 13 2006 hvogel@suse.de
- update to version 1.0.1
* Mon Oct 17 2005 hvogel@suse.de
- removed some extra qualifications to make gcc happy again
* Thu Jun 23 2005 hvogel@suse.de
- mark config file as noreplace
* Wed May 18 2005 hvogel@suse.de
- also use -mmmx for c++
* Tue May 17 2005 ro@suse.de
- add -mmmx on x86
* Mon May 09 2005 hvogel@suse.de
- Update to version 0.99
* Thu Apr 14 2005 sbrabec@suse.cz
- Added audiofile-devel to neededforbuild.
* Fri Nov 05 2004 hvogel@suse.de
- update to version 0.9.15
* Thu Oct 07 2004 hvogel@suse.de
- update version to 0.9.13
* Thu Jan 29 2004 hvogel@suse.de
- mark config files as config
- mark man pages as documentation
- use bzip2 for the source
* Thu Jan 08 2004 hvogel@suse.de
- remove localstatedir/fifogroup usage
- stop moving desktop file around
* Mon Dec 01 2003 hvogel@suse.de
- readd part of the non intel patch
* Wed Nov 26 2003 hvogel@suse.de
- update to version 0.9.12
* Sat Nov 15 2003 meissner@suse.de
- do not do Intel specific stuff on non-i386 (loading of
  windows dlls, ioperm() and inb()).
- 2 pointer accesses (and probably more) are not 64bit clean.
- fixed destdir patch.
* Thu Nov 13 2003 hvogel@suse.de
- dont build as root
* Mon Oct 13 2003 hvogel@suse.de
- Initial package version 0.9.10