c88ea7b
# by default build the browser plugin
c88ea7b
# use bcond_with to change the default
c88ea7b
%bcond_without mozilla
c88ea7b
0c077fb
Name:           parole
c88ea7b
Version:        0.1.96
ca097e4
Release:        1%{?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
0c077fb
Source0:        http://archive.xfce.org/src/apps/parole/0.1/%{name}-%{version}.tar.bz2
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}
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}
c88ea7b
Requires:       gtk-doc
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
0c077fb
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
0c077fb
make install DESTDIR=$RPM_BUILD_ROOT
0c077fb
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
0c077fb
%find_lang %{name}
0c077fb
0c077fb
desktop-file-install                                    \
0c077fb
  --delete-original                                     \
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,-)
c88ea7b
%doc %{_datadir}/gtk-doc/html/Parole-Plugins/
0c077fb
%{_includedir}/%{name}/
0c077fb
0c077fb
0c077fb
%changelog
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
- Build the browser plugin
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