File kde3-kradio.spec of Package kde3-kradio

#
# spec file for package kradio (Version 1.0beta3b_20060920)
#
# 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:           kde3-kradio
BuildRequires:  flac-devel kdelibs3-devel libsndfile-devel
%if 0%{?suse_version} >= 1030
BuildRequires:  lirc-devel
%else
BuildRequires:  lirc
%endif
License:        GPL-2.0-or-later
Group:          Hardware/Radio
Summary:        Comfortable V4L and V4L2 Radio Application for KDE
Version:        1.0beta3b_20060920
Release:        225
Url:            http://kradio.sourceforge.net
Source0:        kradio-snapshot-2006-09-20.tar.bz2
# update the patch on every release
Patch0:         kradio.diff
Patch1:         kradio-x86-64.patch
Patch2:         kradio-gcc43.diff
Patch3:         kradio-mixer_handle.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       kradio = 1.0beta3b_20060920
Obsoletes:      kradio <= 1.0beta3b_20060920
   
%description
KRadio is a comfortable radio application for KDE with support for V4L
and V4L2 radio card drivers.

KRadio currently provides:

* V4L and V4L2 radio support

* Remote control support (LIRC)

* Alarms and sleep countdown

* Several GUI controls (Docking Menu, Station Quickbar, Radio
   Display)

* Timeshifter capability

* Recording capabilities (mp3, ogg/vorbis, wav, etc.)

* Extendable plug-in architecture

This package also includes a growing collection of station preset files
for many cities around the world contributed by KRadio users.



Authors:
--------
    Ernst Martin Witte <witte@kawo1.rwth-aachen.de>
    Marcus Camen <mcamen@mcamen.de>
    Klas Kalass <klas.kalass@gmx.de>
    Frank Schwanz <schwanz@fh-brandenburg.de>
    Zsolt Rizsanyi <rizsanyi@myrealbox.com>

%prep
%setup -q -n kradio-snapshot_2006_09_20
%patch -P 0
%patch -P 1 -p1
%patch -P 2
%if %{suse_version} >= 1600
%patch -P 3 -p1
%endif
#sed -i 's|if (mixer_handle >= 0)|if (mixer_handle >= nullptr)|g' kradio3/plugins/alsa-sound/alsa-sound.cpp
. /etc/opt/kde3/common_options
update_admin --no-unsermake

%build
. /etc/opt/kde3/common_options
export CFLAGS="$RPM_OPT_FLAGS -ansi"
./configure $configkde --without-gl
sed -i 's|-Wall|-ansi|g' kradio3/plugins/alsa-sound/Makefile
make

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
%find_lang kradio

%files -f kradio.lang
%defattr(-,root,root)
/opt/kde3/bin/*
/opt/kde3/share/appl*/*/*.desktop
/opt/kde3/share/icons/*
/opt/kde3/%_lib/kradio
/opt/kde3/share/apps/kradio

%changelog
* Tue Jun 23 2009 highwaystar.ru@gmail.com
- kradio -> kde3-kradio
* Mon May 25 2009 lnussel@suse.de
- lirc -> lirc-devel in BuildRequires
* Tue Oct 23 2007 stbinner@suse.de
- fix build with gcc 4.3
* Fri May 11 2007 ssommer@suse.de
- fix plugin loading on x86_64 (#217971)
* Tue Oct 31 2006 coolo@suse.de
- update kradio to the latest snapshot after getting advise
  from author
* Tue May 30 2006 adrian@suse.de
- fix build for < 10.1
* Wed Feb 15 2006 stbinner@suse.de
- add GenericName to .desktop file
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Oct 24 2005 stbinner@suse.de
- fix wrong include hints for Qt 3.3.5 compilation
* Thu Oct 06 2005 stbinner@suse.de
- added flac and flac-devel to neededforbuild (required by the new
  libsndfile)
* Tue Aug 30 2005 dmueller@suse.de
- update to 1.0beta3b to make it work with ALSA
* Sat Aug 13 2005 dmueller@suse.de
- update 1.0beta2 which fixes plugin loading and incorporates
  all previous patches (fixes #102926).
* Sat Jul 30 2005 dmueller@suse.de
- update 1.0beta1
* Thu Feb 17 2005 adrian@suse.de
- menu entry moved to xdg dir
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Wed Sep 03 2003 adrian@suse.de
- add AudioVideo Category
* Tue Jul 29 2003 adrian@suse.de
- add Categories
* Sat Jun 14 2003 coolo@suse.de
- package directories
* Fri May 23 2003 coolo@suse.de
- reverting adrian's nonsense
* Fri May 23 2003 adrian@suse.de
- let it build again
* Fri May 02 2003 adrian@suse.de
- update to version 0.2.7a
* Sun Mar 09 2003 adrian@suse.de
- fix .desktop file entries
* Fri Nov 08 2002 coolo@suse.de
- the new kradio maintainer suggests to use CVS for KDE3
  users. Still not many enhancements to the 0.1.2 version
  as far as I can see
* Fri May 24 2002 adrian@suse.de
- use update_admin
* Tue Nov 13 2001 ro@suse.de
- fix for automake 1.5
* Fri Nov 09 2001 adrian@suse.de
- use kde2-devel-packages
* Mon Aug 13 2001 ro@suse.de
- changed neededforbuild <sp_libs> to <sp-devel>
* Fri Aug 10 2001 adrian@suse.de
- autoconf 2.52 fixes
* Thu Jun 21 2001 adrian@suse.de
- make it autoconf 2.50 ready
- disable documentation until kde 2.2
* Thu May 10 2001 adrian@suse.de
- fix wrong Type in desktop file
* Sun Apr 08 2001 adrian@suse.de
- New version 0.1.2
* Sat Apr 07 2001 kukuk@suse.de
- Fix neededforbuild
* Mon Mar 19 2001 adrian@suse.de
- Spec file created from kradio-0.1.tar.bz2 by autospec
openSUSE Build Service is sponsored by