File yast2-tv.spec of Package yast2-tv

#
# spec file for package yast2-tv (Version 2.17.2)
#
# Copyright (c) 2008 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:           yast2-tv
Version:        2.17.2
Release:        1
License:        GPL v2 or later
Group:          System/YaST
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-tv-2.17.2.tar.bz2
Prefix:         /usr
BuildRequires:  perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-testsuite
%ifnarch s390 s390x
BuildRequires:  yast2-sound
%endif
# .modprobe_blacklist agent
Requires:       yast2-core >= 2.16.19
# GetInstArgs::automatic_configuration
Requires:       yast2 >= 2.16.46
Requires:       yast2-sound
Provides:       yast2-config-tv yast2-db-tv
Obsoletes:      yast2-config-tv yast2-db-tv
Provides:       yast2-lib-hardware
Obsoletes:      yast2-lib-hardware
Provides:       yast2-trans-tv
Obsoletes:      yast2-trans-tv
BuildArch:      noarch
Summary:        YaST2 - TV Configuration

%description
This package contains the YaST2 component for TV card configuration.



Authors:
--------
    Jan Holesovsky <kendy@suse.cz>

%prep
%setup -n yast2-tv-2.17.2

%build
%{prefix}/bin/y2tool y2autoconf
%{prefix}/bin/y2tool y2automake
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
%{?suse_update_config:%{suse_update_config -f}}
./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir}
make %{?jobs:-j%jobs}

%install
make install DESTDIR="$RPM_BUILD_ROOT"
[ -e "%{prefix}/share/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="$RPM_BUILD_ROOT/usr/share/YaST2" make check DESTDIR="$RPM_BUILD_ROOT"
for f in `find $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/ -name "*.desktop"` ; do
    d=${f##*/}
    %suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop}
done

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%dir /usr/share/YaST2/include/tv
/usr/share/YaST2/include/tv/*
/usr/share/YaST2/clients/*.ycp
/usr/share/YaST2/modules/*.*
%{prefix}/share/applications/YaST2/*.desktop
/usr/share/YaST2/scrconf/*.scr
/usr/share/YaST2/data/*.ycp
%doc %{prefix}/share/doc/packages/yast2-tv
%changelog
* Mon Oct 06 2008 visnov@suse.cz
- adapt to new Confirm::Detection API (bnc #431276)
- 2.17.2
* Fri Sep 26 2008 lslezak@suse.cz
- fixed Gnome desktop detection (bnc#418685)
- updated the TV card DB (kernel-2.6.27-rc6-7)
- 2.17.1
* Thu Jun 19 2008 lslezak@suse.cz
- added "Hauppauge WinTV Nova-DT" to the DVB card DB (bnc#398320)
- build the tuner database also for cx88xx driver (bnc#397804)
- 2.17.0
* Mon Jun 16 2008 lslezak@suse.cz
- OK/Cancel buttons in the main dialog (bnc#398490)
* Mon May 19 2008 lslezak@suse.cz
- install "motv", "zapping" has been dropped (bnc#390300)
- check also for kdelibs4 package when detecting a KDE system
- 2.16.6
* Fri May 16 2008 jsrain@suse.cz
- added categories Settings and System into desktop file
  (bnc #382778)
* Fri Apr 25 2008 lslezak@suse.cz
- updated TV card DB
- 2.16.5
* Fri Apr 04 2008 locilka@suse.cz
- Improved user-feedback during automatic installation.
- Adjusted RPM dependencies.
- 2.16.4
* Mon Mar 17 2008 jsrain@suse.cz
- added 'StartupNotify=true' to the desktop file (bnc #304964)
* Fri Jan 11 2008 lslezak@suse.cz
- testsuite update
- 2.16.3
* Thu Jan 10 2008 lslezak@suse.cz
- fixed a typo
- 2.16.2
* Thu Jan 10 2008 lslezak@suse.cz
- remove the configured card from the blacklist, a blacklisted card
  is not automatically configured (bug #330109)
- added key shortcuts, use Label::
- 2.16.1
* Fri Oct 12 2007 lslezak@suse.cz
- fixed state of the buttons in the expert dialog in Gtk UI
  (#327492), don't recreate the table if not necessary
- 2.16.0
* Thu Aug 23 2007 lslezak@suse.cz
- don't read/write hwcfg files, remove the old files from
  previous versions (#303713)
- fixed build (FindStaticHWConfig() has been removed from
  yast2-sound)
- 2.15.7
* Wed Jun 06 2007 lslezak@suse.cz
- support for ivtv based TV cards (#130098)
- install firmware/packages before loading drivers
- updated DVB card DB (#222806, #223188)
- 2.15.6
* Mon Jun 04 2007 lslezak@suse.cz
- tv card DB updated to kernel-default-2.6.21-12
- respect "fw_install" flag in DVB card DB (do not install the
  firmware if the card doesn't need it)
- 2.15.5
* Mon Jun 04 2007 lslezak@suse.cz
- check whether lirc service and /etc/sysconfig/lirc are available
  when reading/writing the configuration (#211901)
* Fri May 25 2007 jsrain@suse.cz
- removed outdated translations from .desktop-files (#271209)
* Thu Mar 22 2007 lslezak@suse.cz
- updated TV card DB (linux-2.6.21-rc4-git5-2)
- removed dependency to yast2-packager (#253958)
- 2.15.4
* Tue Feb 13 2007 lslezak@suse.cz
- fixed build - Mode::test() is working now
- updated TV card DB (kernel-2.6.20-2)
- 2.15.3
* Thu Jan 18 2007 jsuchome@suse.cz
- detect list of suported TV norms (#231147)
- 2.15.2
* Wed Dec 06 2006 lslezak@suse.cz
- use Progress::set()
* Thu Nov 30 2006 lslezak@suse.cz
- update of testsuite (build fix)
- use Progress::set()
- disable TV channel setup for DVB cards (not implemented)
- 2.15.1
* Wed Nov 29 2006 lslezak@suse.cz
- search for DVB drivers also in analog driver directory (#140468)
- the main dialog: display an icon, use unified label (#211566)
- 2.15.0
* Fri Nov 10 2006 lslezak@suse.cz
- fixed path to 'scantv' utility (/usr/X11R6/bin -> /usr/bin)
  (#214134)
- 2.14.0
* Wed Jun 28 2006 lslezak@suse.cz
- don't install TV applications when X11 is not installed
  (minimal/text mode installation) (#170000)
- updated Tv card database and database generator
- 2.13.9
* Mon Apr 03 2006 lslezak@suse.cz
- fixed paths: search extra drivers in "updates" subdirectory,
  store firmware in "/lib/firmware" directory (#154171)
- 2.13.8
* Thu Mar 02 2006 lslezak@suse.cz
- removed yast2-devel-packages macro from .spec file
- 2.13.7
* Mon Jan 23 2006 lslezak@suse.cz
- merged proofread texts
- 2.13.6
* Mon Dec 19 2005 jsuchome@suse.cz
- merged proofread texts
- 2.13.5
* Fri Dec 16 2005 jsuchome@suse.cz
- use Package module instead of Require
- 2.13.4
* Thu Oct 20 2005 lslezak@suse.cz
- activate the configured TV/DVB cards (#129307)
- don't ask for firmware file if it's already installed
- 2.13.3
* Tue Oct 18 2005 lslezak@suse.cz
- use /dev/{videoN,vbiN} for scanning analog TV channels (#119246)
- fixed temporary module loading (build correct module options)
- 2.13.2
* Fri Oct 07 2005 lslezak@suse.cz
- close the module by "X" window manager button (#118233)
- lirc generic config file has been renamed to
  linux-input-layer-lircd.conf
- 2.13.1
* Wed Sep 21 2005 lslezak@suse.cz
- added cx88 cards into the database
- 2.13.0
* Mon Sep 05 2005 lslezak@suse.cz
- 'skystar2' kernel module has been renamed to 'b2c2-flexcop-pci'
  (#115262)
- 2.12.7
* Fri Aug 26 2005 lslezak@suse.cz
- offer also ivtv* and saa71* kernel drivers from extra directory
  in manual configuration (#113195)
- 2.12.6
* Thu Aug 25 2005 lslezak@suse.cz
- updated the TV card database, improved the database
  generator (#112710)
- 2.12.5
* Mon Aug 22 2005 lslezak@suse.cz
- edit or delete just manually configured TV card (#106092)
- 2.12.4
* Fri Aug 12 2005 lslezak@suse.cz
- removed Abort button in IRC test popup (#102540)
- 2.12.3
* Tue Aug 09 2005 lslezak@suse.cz
- write configuration also to sysconfig/hardware/hwcfg-*
  file (#103027)
- use WizardHW:: formatting functions
- merged proofread texts
- 2.12.2
* Fri Jul 29 2005 lslezak@suse.cz
- replaced the first dialog - use WizardHW module
- 2.12.1
* Wed Jun 15 2005 lslezak@suse.cz
- merged proof read texts
- 2.12.0
* Mon Mar 14 2005 lslezak@suse.cz
- fixed IRC configuration during installation (#66898),
  reload sysconfig file after lirc package installation
- 2.11.3
* Mon Feb 07 2005 lslezak@suse.cz
- merged proofread texts
- version 2.11.2
* Fri Dec 03 2004 lslezak@suse.cz
- extended firmware database (offset, md5sum, support more
  versions), firmware installation updated (#46636)
- version 2.11.1
* Mon Nov 22 2004 lslezak@suse.cz
- Mode::, lookup&select fixes
- version 2.11.0
* Wed Oct 06 2004 lslezak@suse.cz
- fixed removing of new manually configured card (#46795)
* Fri Oct 01 2004 lslezak@suse.cz
- updated DVB cards and firmware database (#46636)
- version 2.10.7
* Fri Sep 24 2004 lslezak@suse.cz
- separate firmware database
- DVB: edit both frontend & core kernel modules
- store module options for each kernel module separately
- testsuite update
- better support for unknown DVB cards
- version 2.10.6
* Mon Sep 20 2004 lslezak@suse.cz
- make clean: remove only generated database
- fixed datatypes
- testsuite update
- use 212 DVB major number (#43786)
- version 2.10.5
* Fri Sep 10 2004 lslezak@suse.cz
- use "dvb" initscript for unknown cards
- install all required kernel modules/packages (#44394)
- DVB cards - skip channel and IRC config dialogs
- version 2.10.4
* Fri Sep 03 2004 lslezak@suse.cz
- remove DVB cards
- firmware status in summary
- small fixes
- remove DVB card config
- TV/DVB suffix in summary table
- testsuite update
- version 2.10.3
* Wed Sep 01 2004 lslezak@suse.cz
- ask for firmware file (firmware installation)
- testsuite update
- version 2.10.2
* Wed Aug 25 2004 lslezak@suse.cz
- DVB card database
- read DVB kernel modules
- edit DVB module parameters
* Mon Aug 23 2004 lslezak@suse.cz
- added DVB card detection
- version 2.10.1
* Tue Aug 10 2004 jsuchome@suse.cz
- merged proofread texts
* Fri Jun 18 2004 jsuchome@suse.cz
- enhanced command-line interface: set,show.irc,modules,cards
* Wed Jun 16 2004 jsuchome@suse.cz
- remove configuration from /etc/modprobe.conf, when it was
  written to /etc/modprobe.d/tv (new modprobe_tv agent)
- updated testsuite
- 2.10.0
* Wed May 05 2004 jsuchome@suse.cz
- 2.9.10
* Tue May 04 2004 jsuchome@suse.cz
- merged in proofread text
* Mon Apr 05 2004 jsuchome@suse.cz
- do not touch destination /etc/lircd.conf file
  (could break later configuration)
- 2.9.9
* Fri Apr 02 2004 jsuchome@suse.cz
- changed license to GPL
- 2.9.8
* Mon Mar 29 2004 jsuchome@suse.cz
- testsuite fix: check only Tv module related files
- 2.9.7
* Tue Mar 09 2004 jsuchome@suse.cz
- LIRC fixes for 2.6 kernel (use new modules)
- updated list of saa7134 cards
- 2.9.6
* Mon Mar 08 2004 jsuchome@suse.cz
- more type fixes
- set desktop icon
* Fri Mar 05 2004 jsuchome@suse.cz
- fix of type info
- use Sequnecer module
* Mon Mar 01 2004 jsuchome@suse.cz
- more type information
* Mon Mar 01 2004 jsuchome@suse.cz
- merged texts from proofread
- add type information
- 2.9.5
* Thu Feb 26 2004 jsuchome@suse.cz
- helptext for TV channels scan
* Thu Feb 26 2004 jsuchome@suse.cz
- drop yast2-packager from NFB
* Mon Feb 23 2004 jsuchome@suse.cz
- minor fixes for NI
* Sun Feb 08 2004 arvin@suse.de
- removed config files (*.y2cc)
* Wed Feb 04 2004 jsuchome@suse.cz
- fixed testsuite
* Tue Dec 02 2003 jsuchome@suse.cz
- syntax fixes for new interpreter
- 2.9.3
* Tue Nov 18 2003 jsuchome@suse.cz
- fixed button label in helptext (#33076)
- used UI:: builtins for file selection widgets
- 2.9.2
* Fri Oct 31 2003 jsuchome@suse.cz
- basic command-line interface
- 2.9.1
* Thu Oct 23 2003 jsuchome@suse.cz
- LIRC: check if autedetected card uses lirc_gpio (using subdevice
  and sebvendor id's)
- LIRC: show modinfo description on demand
- fix in manual dialog (cards with same number but different module)
- some code cleanup (common ui functions to misc.ycp)
- adapted testsuite
* Fri Oct 17 2003 jsuchome@suse.cz
- initial configuration of LIRC (linux infra red control)
- initial support for TV programs editing/scaning
- 2.9.0
* Wed Sep 10 2003 jsuchome@suse.cz
- return empty list of cards when detection is skipped (#30394)
- 2.8.7
* Tue Sep 02 2003 jsuchome@suse.cz
- fixed testsuite (constructor was changed in imported module)
- 2.8.6
* Thu Aug 28 2003 jsuchome@suse.de
- confirm hardware detection in manual mode (#26515)
- 2.8.5
* Mon Aug 25 2003 jsuchome@suse.cz
- more packages to install: alevt, nxtvepg (#29217)
* Wed Aug 20 2003 jsuchome@suse.de
- removed redundant "initialization dialog" (#28779)
- 2.8.4
* Wed Aug 13 2003 jsuchome@suse.de
- updated card database for new kernel
- 2.8.3
* Mon Aug 11 2003 jsuchome@suse.de
- proofread texts, 1st round
- 2.8.2
* Mon Aug 04 2003 jsuchome@suse.de
- added desktop files to file list
* Fri Jun 20 2003 msvec@suse.de
- converted to new popups and labels
- updated testsuite
- 2.8.1
* Mon Mar 31 2003 jsuchome@suse.de
- show currently selected tuner
- correctly focus to vendor/card when editing
* Thu Mar 20 2003 jsuchome@suse.de
- propose different applications for TV view / radio listen (#25277)
- proposing application: "do not ask again" checkbox
- write data only when modified
- 2.8.0
* Thu Mar 13 2003 jsuchome@suse.de
- do not check for kwintv if kde is not installed (#25277)
- 2.7.5
* Fri Mar 07 2003 jsuchome@suse.de
- fix: bug with reset button for radio module values (#24850)
* Fri Feb 28 2003 jsuchome@suse.de
- fixed testsuite (didn't build on s390)
- fixed: using empty values for autodetected cards in modules.conf
  (bug #24132)
- updated CARDLIST.bttv
- 2.7.4
* Wed Feb 19 2003 jsuchome@suse.de
- error output of rpm to /dev/null (#23808)
* Tue Feb 11 2003 arvin@suse.de
- fixed testsuite
* Mon Feb 03 2003 jsuchome@suse.cz
- fix of bug #23228 (bad use of modules agent)
- 2.7.3
* Wed Jan 29 2003 jsuchome@suse.cz
- merged proofreaded texts
* Mon Jan 20 2003 jsuchome@suse.de
- fixed shortcuts
- 2.7.2
* Fri Jan 17 2003 jsuchome@suse.de
- added ncurses f-keys shortcuts
* Tue Jan 14 2003 jsuchome@suse.de
- fixed testsuite
* Tue Jan 07 2003 jsuchome@suse.de
- fixed testsuite
* Fri Dec 13 2002 jsuchome@suse.de
- updated to new modules agent interface
- 2.7.1
* Fri Oct 25 2002 jsuchome@suse.cz
- radio card support
- fixed bug with writing the sound volume (nothing was written)
- module UniqueKeys renamed to ModulesComments
  (/var/lib/yast/unique is obsolete)
- require.ycp included only when needed (->faster start of module)
- added some cards to CARDLIST.saa7134
- adapted testsuite to the changes
- 2.7.0
* Wed Sep 25 2002 jsuchome@suse.cz
- corrected bug 20091 (empty name instead of "user defined")
* Tue Sep 10 2002 jsuchome@suse.cz
- hacked cards selection in ncurses (first card selected if not
  correctly pressed enter)
* Mon Sep 09 2002 jsuchome@suse.cz
- added "alias char-major-81-* off" to modules conf (bug #19122)
* Fri Sep 06 2002 jsuchome@suse.cz
- added test before reading modules.options
* Tue Aug 20 2002 jsuchome@suse.cz
- again adapted testsuite to extern changes
* Fri Aug 16 2002 jsuchome@suse.cz
- new default entry to modules.conf (#18033)
* Mon Aug 12 2002 arvin@suse.de
- fixed testsuite
* Tue Aug 06 2002 arvin@suse.de
- adapted testsuite to new /etc/install.inf agent
* Fri Jul 26 2002 jsuchome@suse.cz
- removed yast2-runlevel from Required and needforbuild
* Wed Jul 24 2002 jsuchome@suse.cz
- executed v4l-conf instead of kv4lsetup
* Fri Jul 12 2002 arvin@suse.de
- use proper namespace for Args and CallFunction (#16776)
* Tue Jul 09 2002 mvidner@suse.cz
- Provides/Obsoletes yast2-lib-hardware (UniqueKeys.ycp)
* Mon Jul 08 2002 arvin@suse.de
- moved non binary files to /usr/share/YaST2
* Wed Jul 03 2002 jsuchome@suse.cz
- bugfix 13772: some y2debug() logs changed to y2milestone()
- added some tests
- some changes in "Manual selection" dialog
* Mon Jul 01 2002 msvec@suse.cz
- Rename to yast2-tv
- Merged with yast2-db-tv
- 2.6.3
* Mon Jun 10 2002 msvec@suse.cz
- finally fixed testsuite
- 2.6.2
* Fri May 31 2002 msvec@suse.cz
- use y2autoconf and create-spec
- fixed testsuite
- new config file
- 2.6.1
* Mon Mar 04 2002 kendy@suse.cz
- v. 2.5.13
- bugfix 14080,14246: It was impossible to choose a tuner in proposal.
* Wed Feb 27 2002 kendy@suse.cz
- v. 2.5.12
- bugfix 13981: No write when nothing was proposed.
* Fri Feb 22 2002 kendy@suse.cz
- v. 2.5.11
- Use interface provided by Sound:: to be able to cooperate with sound
  proposal
- bugfix 13433: wrong correspondence between vendors and models
- bugfix 13631: Display warning, that the user has to select a card from
  list, one dialog later
- Unmute sound cards only if there is a TV card
- bugfix 13773: Saving of modules.conf was failing for the fully
  autodeteced cards
* Mon Feb 18 2002 kendy@suse.cz
- v. 2.5.10
- Store the configuration status (to be used at the boot time)
* Fri Feb 15 2002 kendy@suse.cz
- v. 2.5.9
- Testmode uses Mode::test
- Does a real proposal now
- Forget settings if `back pressed in AskUser
* Wed Feb 13 2002 kendy@suse.cz
- v. 2.5.8
- bugfix 13177: Do not ask to manually configure the card, when all
  autodetected info is available
* Fri Feb 08 2002 kendy@suse.cz
- v. 2.5.7
- fixed #neededforbuild
* Thu Feb 07 2002 kendy@suse.cz
- v. 2.5.6
- tests allowed (libycp with Y2ALLGLOBAL is in abuild)
- bugfix 13078: improved speed of the module start-up
- proposal should work
* Mon Jan 21 2002 kendy@suse.cz
- v. 2.5.5
- prepared for autoinstallation
- tv_summary.ycp redone to proposal_tv.ycp to be compatible with
  the new proposal scheme.
- fixes
* Fri Jan 11 2002 kendy@suse.cz
- v. 2.5.4
- Huge internal changes:
  - changed to be based on a Tv:: module, the Tv:: itself
  - uses Report::, Progress::, UniqueKeys::, Summary::, ...
  - minor UI changes (progress bar during startup and saving, ...)
  - y2tool: y2autoconf, create-spec, ...
  - some optimizations
* Tue Nov 13 2001 kendy@suse.cz
- v. 2.5.3
- Use Wizard:: and Wizard_hw::
- Third parameters for lookup()s
* Tue Oct 16 2001 kendy@suse.cz
- Migration to the yast2 devtools
* Mon Oct 15 2001 kendy@suse.cz
- Adapted to the new database (with vendor and model parts)
- The "Manual" screen adapted to that change (both bug 10067)
* Mon Oct 08 2001 kendy@suse.cz
- Preselect the first sound card, if installed (bugzilla #11137)
- Version 2.5.0
* Tue Sep 18 2001 kendy@suse.cz
- Name of the icon changed to tv.ycp (bugzilla #10656)
* Fri Sep 14 2001 kendy@suse.cz
- Do not write the configuration after [Finish] if it was not
  changed (bugzilla #10664).
* Tue Sep 11 2001 kendy@suse.cz
- Do you want to install kwintv? Prossibilities: [Yes] [No]
  in stead of [Continue] [Cancel] (bugzilla #10331)
- Initialize kv4lsetup if kwintv is installed
* Fri Aug 31 2001 kendy@suse.cz
- Writing "# YaST2 configured TV card" to modules.conf in front
  of each char-major-81-x
* Wed Aug 29 2001 kendy@suse.cz
- added libycp-devel to # neededforbuild
* Mon Aug 27 2001 kendy@suse.cz
- When editing a detected card, add it to the list in the Manual
  screen and preselect it.
- Preselect sound card when editing.
- Check for KWinTV after the configuration and try to install it.
- More small fixes...
* Tue Aug 21 2001 kendy@suse.cz
- UI(`Blah()) and SCR(`Bleh()) changed to UI::Blah() and SCR::Bleh()
- Preselect tuner in the Manual screen
* Mon Aug 20 2001 kendy@suse.cz
- Added a summary module (tv_summary.ycp)
- More tests
- Fixes in audio setting (and more minor fixes)
* Mon Aug 13 2001 kendy@suse.cz
- Detection of TV cards
- Manual configuration: Details
- Reading/writing parameters works
- Editing a TV card
- Working testsuite and lots of tests
- Improved menuentry
* Mon Jul 30 2001 kendy@suse.cz
- Help texts
- Deleting a TV card
- Connection to .audio and Sound module (not working too much)
- Beginning of Manual configuration: details (connection to ag_modinfo)
- Selection of tuner
* Mon Jul 23 2001 kendy@suse.cz
- Basic workflow is implemented
- Manual configuration is possible
* Fri Jul 13 2001 kendy@suse.cz
- initial version
openSUSE Build Service is sponsored by