File parole.spec of Package parole

#
# spec file for package parole
#
# Copyright (c) 2011 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:           parole
Version:        0.2.0.6
Release:        1
License:        GPLv2+
Summary:        Modern, Simple Media Player for the Xfce Desktop Environment
Url:            http://goodies.xfce.org/projects/applications/parole
Group:          Productivity/Multimedia/Video/Players
Source:         %{name}-%{version}.tar.bz2
Patch0:         parole-0.2.0.2-fix-lib-linking-order.patch
# PATCH-FIX-UPSTREAM parole-fix-linking.patch gber@opensuse.org -- Fixes an underlinking issue
Patch2:         parole-fix-linking.patch
# PATCH-FEATURE-UPSTREAM parole-0.2.0.2-add-uri-scheme-handler-support.patch gber@opensuse.org -- Adds support for URI scheme handlers
Patch3:         parole-0.2.0.2-add-uri-scheme-handler-support.patch
BuildRequires:  gcc-c++
BuildRequires:  gstreamer-0_10-plugins-base-devel
BuildRequires:  intltool
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gstreamer-0.10)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libxfce4util-1.0)
BuildRequires:  pkgconfig(libxfcegui4-1.0)
BuildRequires:  taglib-devel
BuildRequires:  gtk-doc
BuildRequires:  update-desktop-files
BuildRequires:  xfce4-dev-tools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       gstreamer010
Requires:       gstreamer010-plugins-base
Requires:       gstreamer010-plugins-good

%description
Parole is a modern simple media player based on the GStreamer framework and
written to fit well in the Xfce desktop. Parole features playback of local
media files, DVD/CD and live streams.  Parole is extensible via plugins, for a
complete how to write a plugin for Parole see the Plugins API documentation and
the plugins directory which contains some useful examples.

%package devel
License:        GPLv2+
Summary:        Development Files for Parole
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
This package contains development files for developing plugins for parole.

%prep
%setup -q
%patch0 -p1
%patch2 -p1
%patch3 -p1

%build
xdt-autogen
%configure --enable-gtk-doc
make %{?_smp_mflags} V=1

%install
%make_install
rm -f %{buildroot}%{_libdir}/parole-0/*.la
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name}
%suse_update_desktop_file %{name}

%if 0%{?suse_version} >= 1140

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
%{_bindir}/parole
%dir %{_libdir}/parole-0
%{_libdir}/parole-0/*.so
%{_datadir}/applications/parole.desktop
%{_datadir}/icons/hicolor/*/apps/parole.png
%{_datadir}/icons/hicolor/scalable/apps/parole.svg
%{_datadir}/parole
%{_datadir}/parole/pixmaps
%{_datadir}/parole/pixmaps/parole.png

%files devel
%defattr(-,root,root)
%{_includedir}/parole/
%{_datadir}/gtk-doc/html/Parole-Plugins

%changelog
openSUSE Build Service is sponsored by