File streamtuner.spec of Package streamtuner

#
# spec file for package streamtuner (Version 0.99.99)
#
# 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/
#



Name:           streamtuner
BuildRequires:  curl-devel gtk-doc gtk2-devel intltool libxml2-devel openldap2-devel perl-XML-Parser scrollkeeper taglib-devel update-desktop-files
# For directory ownership:
BuildRequires:  libgnome
Summary:        A GUI Interface for Internet Radio Directories
Version:        0.99.99
Release:        197
License:        GPL v2 or later
Url:            http://streamtuner.sourceforge.net
Group:          Productivity/Networking/Web/Browsers
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.png
Source3:        streamtuner-rpmlintrc
Source4:        COPYING
Patch0:         streamtuner-libtool.diff
Patch1:         streamtuner-basedocdir.patch
Patch2:         streamtuner-no_scrollkeeper_update.diff
Patch3:         streamtuner-0.99.99-live365.diff
Patch4:         streamtuner-0.99.99-pygtk-2.6.diff
Patch5:         streamtuner-type_punning.patch
Patch6:         streamtuner-desktop_no_tuner.diff
Patch7:         streamtuner-codecleanup.diff
Patch8:         streamtuner-desktop_no_icon_extension.patch
Requires:       gtk2 >= 2.2.2, curl >= 7.10.8
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description 
Streamtuner is a stream directory browser. Through the use of a plug-in
system, it offers an intuitive interface to Internet radio directories,
such as SHOUTcast and Live365.



Authors:
--------
    Jean-Yves Lefort <jylefort@brutele.be>

%package      devel
License:        GPL v2 or later
Summary:        Development files for streamtuner
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version} glib2-devel gtk2-devel
Requires:       pkg-config

%description devel
Streamtuner is a stream directory browser. Through the use of a plugin
system, it offers an intuitive interface to Internet radio directories
such as SHOUTcast and Live365.

This package contains the libraries and includes files necessary to
develop applications using, and plugins for, Streamtuner.



Authors:
--------
    Jean-Yves Lefort <jylefort@brutele.be>

%package      doc
License:        BSD 3-Clause
Summary:        A GUI Interface for Internet Radio Directories
Group:          Productivity/Networking/Web/Browsers
Requires:       %{name} = %{version}

%description doc
Streamtuner is a stream directory browser. Through the use of a plug-in
system, it offers an intuitive interface to Internet radio directories,
such as SHOUTcast and Live365.



Authors:
--------
    Jean-Yves Lefort <jylefort@brutele.be>

%prep
%setup -q
%patch
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7
%patch8
# package is now under GPL
cp %{S:4} .

%build
intltoolize --force --copy
autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS -W -Wall -Wno-unused-parameter -fno-strict-aliasing"
%configure
make

%install
make DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_libdir}/%{name}/plugins/*.a
%suse_update_desktop_file %name
%find_lang %{name}

%post
touch var/adm/SuSEconfig/run-scrollkeeper-update

%postun
touch var/adm/SuSEconfig/run-scrollkeeper-update

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-, root, root)
%doc INSTALL README AUTHORS COPYING NEWS TODO
%doc /usr/share/gnome/help/streamtuner/C/streamtuner.xml
%doc /usr/share/gnome/help/streamtuner/C/software-license.xml
%doc /usr/share/gnome/help/streamtuner/C/figures/main-window.png
%doc /usr/share/gnome/help/streamtuner/C/documentation-license.xml
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
%{_bindir}/*
%{_libdir}/%{name}/plugins/*.so
%{_datadir}/omf/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}

%files devel
%defattr(-, root, root)
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/%{name}/plugins/*.*a

%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/streamtuner

%changelog
* Tue May 06 2008 schwab@suse.de
- Don't use libtool before it is created.
* Fri Apr 11 2008 schwab@suse.de
- Work around broken configure script.
* Mon Mar 10 2008 pth@suse.de
- Fix icon name in .desktop file
- Adapt rpmlintrc to new report style
- Compile with -fno-strict-aliasing because of stupid glib (G_LOCK)
* Thu Jan 31 2008 pth@suse.de
- src/plugins/local/local.c is under GPL, so with authors aggreement
  put the whole package under GPL (bnc#357587)
* Wed Jan 30 2008 sbrabec@suse.cz
- Devhelp documentation moved to the separate package (bnc#248813).
* Wed Oct 10 2007 pth@suse.de
- Add openldap2-devel to BuildRequires.
- Add a rpmlintrc file
* Thu Jun 07 2007 sbrabec@suse.cz
- Removed invalid desktop Category "Application" (#254654).
* Wed Jan 31 2007 ro@suse.de
- GNOME moved to /usr
* Sat Oct 07 2006 aj@suse.de
- Cleanup BuildRequires.
* Fri Mar 24 2006 pth@suse.de
- Revert last patch and add Music to Category.
- Remove unneeded lokal variable and the code using it,
* Thu Mar 23 2006 pth@suse.de
- Remove Tuner from Categories in .desktop file as it
  leads to streamtuner being listed as TV app in KDE.
  (#160090)
* Wed Feb 15 2006 pth@suse.de
- Add curl to BuildRequires.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Dec 05 2005 pth@suse.de
- Apply upstream patches for PyGTK and live365
- Reenable Python plugin
- Fix aliasing issues.
* Tue Mar 22 2005 pth@suse.de
- Disable the python plugin as it segfaults with current
  python-gtk.
* Wed Jan 26 2005 pth@suse.de
- Initial package creation
openSUSE Build Service is sponsored by