File streamtuner.spec of Package streamtuner

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



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:        255
License:        GPLv2+
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
Patch9:         streamtuner-0.99.99-shoutcast.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:        GPLv2+
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:        BSD3c(or similar)
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
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7
%patch8
%patch9 -p1
# 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