88d9f65
# by default build the browser plugin
88d9f65
# use bcond_with to change the default
88d9f65
%bcond_without mozilla
c88ea7b
0c077fb
Name:           parole
0066690
Version:        0.2.0.2
8811244
Release:        3%{?dist}
0c077fb
Summary:        Media player for the Xfce desktop
0c077fb
0c077fb
Group:          Applications/Multimedia
0c077fb
License:        GPLv2+
0c077fb
URL:            http://goodies.xfce.org/projects/applications/parole
ad4bc1a
Source0:        http://archive.xfce.org/src/apps/parole/0.2/%{name}-%{version}.tar.bz2
c7649b8
# Upstream bug: http://bugzilla.xfce.org/show_bug.cgi?id=6244
c7649b8
Patch1:		parole-0.2.0.2-dsofix.patch
0c077fb
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
0c077fb
0c077fb
BuildRequires:  gtk2-devel >= 2.16.0
0c077fb
BuildRequires:  gstreamer-plugins-base-devel >= 0.10.11
0c077fb
BuildRequires:  dbus-devel >= 0.60
0c077fb
BuildRequires:  dbus-glib-devel >= 0.70
0c077fb
BuildRequires:  libxfcegui4-devel >= 4.6.0
0c077fb
BuildRequires:  libnotify-devel >= 0.4.1
0c077fb
BuildRequires:  taglib-devel >= 1.4
0c077fb
BuildRequires:  desktop-file-utils
0c077fb
BuildRequires:  gettext 
0c077fb
BuildRequires:  intltool
c88ea7b
%if %{with mozilla}
c88ea7b
BuildRequires:  xulrunner-devel
c88ea7b
%endif
c88ea7b
BuildRequires:  gtk-doc
0c077fb
Requires:       gstreamer-plugins-good
0c077fb
0c077fb
%description
0c077fb
Parole is a modern simple media player based on the GStreamer framework and 
0c077fb
written to fit well in the Xfce desktop. Parole features playback of local 
0c077fb
media files, DVD/CD and live streams. Parole is extensible via plugins.
0c077fb
0c077fb
The project still in its early developments stage, but already contains the 
0c077fb
following features:
0c077fb
* Audio playback
0c077fb
* Video playback with optional subtitle
0c077fb
* Playback of live sources
0c077fb
0c077fb
c88ea7b
%if %{with mozilla}
c88ea7b
%package        mozplugin
c88ea7b
Summary:        Browser plugin for for %{name}
c88ea7b
Requires:       %{name} = %{version}-%{release}
16f3cd7
Requires:       mozilla-filesystem
c88ea7b
c88ea7b
%description    mozplugin
c88ea7b
Parole is a modern simple media player based on the GStreamer framework and 
c88ea7b
written to fit well in the Xfce desktop. This plugin allows it to be embedded
c88ea7b
in a web browser.
c88ea7b
%endif
c88ea7b
c88ea7b
0c077fb
%package        devel
0c077fb
Summary:        Development files for %{name}
0c077fb
Group:          Development/Libraries
0c077fb
Requires:       %{name} = %{version}-%{release}
0c077fb
0c077fb
%description    devel
0c077fb
The %{name}-devel package contains header files for developing plugins for 
0c077fb
%{name}.
0c077fb
0c077fb
0c077fb
%prep
0c077fb
%setup -q
c7649b8
%patch1 -p1 
0c077fb
0c077fb
%build
c88ea7b
%configure --disable-static --enable-gtk-doc \
c88ea7b
%if %{with mozilla}
c88ea7b
  --enable-browser-plugin
c88ea7b
%else
c88ea7b
  --disable-browser-plugin
c88ea7b
%endif
0c077fb
make %{?_smp_mflags} V=1
0c077fb
0c077fb
0c077fb
%install
0c077fb
rm -rf $RPM_BUILD_ROOT
88d9f65
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
0c077fb
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
0c077fb
%find_lang %{name}
0c077fb
0c077fb
desktop-file-install                                    \
0c077fb
  --delete-original                                     \
8811244
  --remove-mime-type=video/x-totem-stream               \
0c077fb
  --dir=%{buildroot}%{_datadir}/applications            \
0c077fb
  %{buildroot}/%{_datadir}/applications/%{name}.desktop
0c077fb
0c077fb
0c077fb
%clean
0c077fb
rm -rf $RPM_BUILD_ROOT
0c077fb
0c077fb
0c077fb
%post
0c077fb
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
0c077fb
update-mime-database %{_datadir}/mime &> /dev/null || :
0c077fb
0c077fb
0c077fb
%postun
0c077fb
if [ $1 -eq 0 ] ; then
0c077fb
  touch --no-create %{_datadir}/icons/hicolor &>/dev/null
0c077fb
  gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
0c077fb
fi
0c077fb
update-mime-database %{_datadir}/mime &> /dev/null || :
0c077fb
0c077fb
0c077fb
%posttrans
0c077fb
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
0c077fb
0c077fb
0c077fb
%files -f %{name}.lang
0c077fb
%defattr(-,root,root,-)
0c077fb
%doc AUTHORS COPYING README TODO THANKS
0c077fb
%{_bindir}/%{name}
0c077fb
%dir %{_libdir}/%{name}-0/
0c077fb
%{_libdir}/%{name}-0/*.so
0c077fb
%{_datadir}/applications/%{name}.desktop
c88ea7b
%{_datadir}/icons/hicolor/*/apps/%{name}.*
0c077fb
%{_datadir}/%{name}/
0c077fb
0c077fb
c88ea7b
%if %{with mozilla}
c88ea7b
%files mozplugin
c88ea7b
%defattr(-,root,root,-)
c88ea7b
%{_libexecdir}/%{name}-media-plugin
c88ea7b
%{_libdir}/mozilla/plugins/%{name}-player.so
c88ea7b
%endif
c88ea7b
c88ea7b
0c077fb
%files devel
0c077fb
%defattr(-,root,root,-)
8811244
%doc %{_datadir}/gtk-doc/
0c077fb
%{_includedir}/%{name}/
0c077fb
0c077fb
0c077fb
%changelog
8811244
* Sat Sep 18 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.0.2-3
8811244
- Remove mime-type "video/x-totem-stream" (#633304)
ed60953
- Make parole-devel no longer require gtk-doc (#604409)
8811244
c7649b8
* Thu Feb 18 2010 Kevin Fenzi <kevin@tummy.com> - 0.2.0.2-2
c7649b8
- Add patch to fix DSO issue. Fixes bug #565207
c7649b8
0066690
* Mon Jan 25 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.0.2-1
0066690
- Update to 0.2.0.2
0066690
b2b1289
* Thu Jan 14 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.0.1-1
b2b1289
- Update to 0.2.0.1
b2b1289
ad4bc1a
* Tue Jan 05 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.0-1
ad4bc1a
- Update to 0.2.0
ad4bc1a
23c277a
* Tue Dec 01 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.99-1
23c277a
- Update to 0.1.99 and drop all patches
16f3cd7
- Make the plugin require mozilla-filesystem
23c277a
88d9f65
* Sun Nov 29 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.98-1
88d9f65
- Update to 0.1.98
88d9f65
- Cherry pick some patches to build the browser plugin with xulrunner 1.9.2
88d9f65
c88ea7b
* Wed Nov 25 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.96-1
c88ea7b
- Update to 0.1.96
c88ea7b
- Build gtk-doc files
c88ea7b
c88ea7b
* Wed Nov 25 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.95-1
c88ea7b
- Update to 0.1.95
c88ea7b
ca097e4
* Fri Oct 30 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.91-1
c88ea7b
- Update to 0.1.91
ca097e4
1459c43
* Thu Oct 08 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.90-3
1459c43
- Set locale before loading the GtkBuilder interface definition for dialogs
1459c43
- Translation updates
1459c43
0c077fb
* Thu Oct 08 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.90-2
0c077fb
- BuildRequire taglib-devel and fix libnotify requirement
0c077fb
0c077fb
* Wed Oct 07 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.90-1
0c077fb
- Update to 0.1.90
0c077fb
- Loads of additional translations
0c077fb
0c077fb
* Fri Sep 18 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1-0.1
0c077fb
- Initial package