File parole.spec of Package parole

#
# spec file for package parole
#
# 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:           parole
Version:        0.5.2
Release:        0
Summary:        Modern, Simple Media Player for the Xfce Desktop Environment
License:        GPL-2.0+
Group:          Productivity/Multimedia/Video/Players
Url:            http://goodies.xfce.org/projects/applications/parole
Source:         http://archive.xfce.org/src/apps/parole/0.5/%{name}-%{version}.tar.bz2
# PATCH-FEATURE-UPSTREAM parole-add-uri-scheme-handler-support.patch gber@opensuse.org -- Adds support for URI scheme handlers
Patch1:         parole-add-uri-scheme-handler-support.patch
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(glib-2.0) >= 2.32
BuildRequires:  pkgconfig(gmodule-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
%if 0%{?suse_version} < 1230
BuildRequires:  pkgconfig(gstreamer-0.10)
BuildRequires:  pkgconfig(gstreamer-base-0.10)
BuildRequires:  pkgconfig(gstreamer-interfaces-0.10)
BuildRequires:  pkgconfig(gstreamer-pbutils-0.10)
BuildRequires:  pkgconfig(gstreamer-video-0.10)
%else
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gstreamer-base-1.0)
BuildRequires:  pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:  pkgconfig(gstreamer-video-1.0)
%endif
BuildRequires:  pkgconfig(gthread-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libxfce4ui-1)
BuildRequires:  pkgconfig(libxfce4util-1.0)
BuildRequires:  pkgconfig(libxfconf-0)
BuildRequires:  pkgconfig(taglib)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Recommends:     %{name}-lang = %{version}
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
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.

%lang_package

%prep
%setup -q
%patch1 -p1

%build
# the plugin documentation does not build
%configure \
    --enable-gtk-doc \
%if 0%{?suse_version} < 1230
    --with-gstreamer=0.10
%else
    --with-gstreamer=1.0
%endif
make %{?_smp_mflags} V=1

%install
%make_install

rm -f %{buildroot}%{_libdir}/parole-0/*.la

%suse_update_desktop_file %{name}

rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}

%find_lang %{name} %{?no_lang_C}

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%clean
rm -rf %{buildroot}

%files
%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 lang -f %{name}.lang

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

%changelog
openSUSE Build Service is sponsored by