File streamtuner.spec of Package streamtuner

#
# spec file for package streamtuner
#
# Copyright (c) 2013 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
BuildRequires:  gtk-doc
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libxml2-devel
BuildRequires:  openldap2-devel
BuildRequires:  perl-XML-Parser
BuildRequires:  scrollkeeper
BuildRequires:  taglib-devel
BuildRequires:  update-desktop-files
# For directory ownership:
BuildRequires:  libgnome
BuildRequires:  libtool
Summary:        A GUI Interface for Internet Radio Directories
License:        GPL-2.0+
Group:          Productivity/Networking/Web/Browsers
Version:        0.99.99
Release:        0
Url:            http://www.nongnu.org/streamtuner/
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:       curl >= 7.10.8
Requires:       gtk2 >= 2.2.2
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.

%package      devel
Summary:        Development files for streamtuner
License:        GPL-2.0+
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       glib2-devel
Requires:       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.

%package      doc
Summary:        A GUI Interface for Internet Radio Directories
License:        BSD-3-Clause
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.

%prep
%setup -q
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7
%patch8
%patch9 -p1
# package is now under GPL
cp %{S:4} .
# fix build with automake-1.13
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac

%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}

%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
%dir %{_datadir}/omf
%{_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
openSUSE Build Service is sponsored by