c34a73
c34a73
Summary: Gstreamer phonon backend 
c34a73
Name:    phonon-backend-gstreamer
c34a73
Epoch:   2
ae9a5e
Version: 4.6.1
3ca66d
Release: 3%{?dist}
c34a73
Group:   System Environment/Libraries
c34a73
License: LGPLv2+
c34a73
URL:     http://phonon.kde.org/
91de01
%if 0%{?snap}
e97030
Source0: phonon-backend-gstreamer-%{version}-%{snap}.tar.bz2
c34a73
# run this script to generate a snapshot tarball
c34a73
Source1: phonon-gstreamer_snapshot.sh
91de01
%else
3596e6
Source0: ftp://ftp.kde.org/pub/kde/stable/phonon/phonon-backend-gstreamer/%{version}/src/phonon-backend-gstreamer-%{version}.tar.xz
91de01
%endif
c34a73
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c34a73
3ca66d
## upstream patches
3ca66d
Patch101: 0001-introduce-bool-to-track-whether-abouttofinish-is-run.patch
3ca66d
Patch102: 0002-only-set-skipgapless-and-wake-the-condition-iff-abou.patch
3ca66d
Patch103: 0003-only-handle-setNextSource-iff-abouttofinish-is-activ.patch
3ca66d
Patch104: 0004-warning.patch
3ca66d
c34a73
BuildRequires: automoc4
c34a73
BuildRequires: cmake
8f70aa
BuildRequires: pkgconfig(gstreamer-0.10) 
8f70aa
BuildRequires: pkgconfig(gstreamer-app-0.10) pkgconfig(gstreamer-audio-0.10) pkgconfig(gstreamer-video-0.10)
8f70aa
BuildRequires: pkgconfig(phonon) >= 4.5.50
8f70aa
BuildRequires: pkgconfig(QtOpenGL)
c34a73
e97030
%global phonon_version %(pkg-config --modversion phonon 2>/dev/null || echo 4.5.0)
c34a73
c34a73
Provides: phonon-backend%{?_isa} = %{phonon_version}
c34a73
c34a73
Obsoletes: phonon-backend-gst < 4.2.0-4
c34a73
Provides:  phonon-backend-gst = %{version}-%{release}
c34a73
c34a73
Obsoletes: phonon-gstreamer < 4.4.4-0.2
c34a73
Provides:  phonon-gstreamer = %{version}-%{release}
c34a73
205e8f
# provide upgrade path for deprecated/removed -xine backend
205e8f
Obsoletes: phonon-backend-xine < 4.5.0
205e8f
c34a73
Requires: gstreamer-plugins-good
3ee183
# not *strictly* required, but strongly recommended by upstream when built
3ee183
# with USE_INSTALL_PLUGIN
a34b6c
#Requires: PackageKit-gstreamer-plugin
c34a73
Requires: phonon%{?_isa} => %{phonon_version}
c34a73
Requires: qt4%{?_isa} >= %{_qt4_version}
c34a73
c34a73
%description
c34a73
%{summary}.
c34a73
c34a73
c34a73
%prep
91de01
%setup -q -n phonon-backend-gstreamer-%{version}
c34a73
3ca66d
%patch101 -p1 -b .0001
3ca66d
%patch102 -p1 -b .0002
3ca66d
%patch103 -p1 -b .0003
3ca66d
%patch104 -p1 -b .0004
3ca66d
c34a73
c34a73
%build
c34a73
mkdir -p %{_target_platform}
c34a73
pushd %{_target_platform}
c34a73
%{cmake} \
3ee183
  -DUSE_INSTALL_PLUGIN:BOOL=ON \
c34a73
  ..
c34a73
popd
c34a73
c34a73
make %{?_smp_mflags} -C %{_target_platform}
c34a73
c34a73
c34a73
%install
c34a73
rm -rf %{buildroot}
c34a73
c34a73
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
c34a73
c34a73
c34a73
%clean
c34a73
rm -rf %{buildroot}
c34a73
c34a73
c34a73
%post
c34a73
touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
c34a73
c34a73
%postun
c34a73
if [ $1 -eq 0 ] ; then
c34a73
  touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
c34a73
  gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
c34a73
fi
c34a73
c34a73
%posttrans
c34a73
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
c34a73
c34a73
%files
c34a73
%defattr(-,root,root,-)
c34a73
%doc COPYING.LIB
c34a73
%{_kde4_libdir}/kde4/plugins/phonon_backend/phonon_gstreamer.so
c34a73
%{_kde4_datadir}/kde4/services/phononbackends/gstreamer.desktop
c34a73
%{_datadir}/icons/hicolor/*/apps/phonon-gstreamer.*
c34a73
c34a73
c34a73
%changelog
3ca66d
* Thu Jul 26 2012 Rex Dieter <rdieter@fedoraproject.org> 2:4.6.1-3
3ca66d
- upstream fixes for gapless/repeat issues seen in amarok (#841941)
3ca66d
c8ff02
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:4.6.1-2
c8ff02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c8ff02
ae9a5e
* Thu Jul 12 2012 Rex Dieter <rdieter@fedoraproject.org> 4.6.1-1
ae9a5e
- 4.6.1
ae9a5e
3596e6
* Fri Feb 17 2012 Rex Dieter <rdieter@fedoraproject.org> 4.6.0-1
3596e6
- 4.6.0
3596e6
e7638c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:4.5.90-5
e7638c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e7638c
a34b6c
* Tue Nov 15 2011 Rex Dieter <rdieter@fedoraproject.org> 2:4.5.90-4
a34b6c
- drop hard dep on PackageKit-gstreamer-plugin
a34b6c
205e8f
* Tue Oct 04 2011 Rex Dieter <rdieter@fedoraproject.org> 2:4.5.90-3
205e8f
- Obsoletes: phonon-backend-xine < 4.5.0
205e8f
8f70aa
* Fri Sep 23 2011 Rex Dieter <rdieter@fedoraproject.org> 2:4.5.90-2
8f70aa
- 4.5.90
8f70aa
- pkgconfig-style deps
8f70aa
6f2854
* Mon Jun 06 2011 Rex Dieter <rdieter@fedoraproject.org> 2:4.5.1-2
6f2854
- drop old flac_mimetype patch, no longer needed
6f2854
f3b720
* Fri May 06 2011 Rex Dieter <rdieter@fedoraproject.org> 2:4.5.1-1
f3b720
- 4.5.1
f3b720
e97030
* Fri May 06 2011 Rex Dieter <rdieter@fedoraproject.org> 2:4.5.1-0.1.20110505
e97030
- 20110505 snapshot
e97030
ac1c96
* Sun Apr 10 2011 Rex Dieter <rdieter@fedoraproject.org> 2:4.5.0-1
ac1c96
- 4.5.0
ac1c96
52fc57
* Tue Feb 15 2011 Rex Dieter <rdieter@fedoraproject.org> 2:4.4.4-3
52fc57
- upstream patch for better(working) dvd playback
52fc57
2a673c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:4.4.4-2
2a673c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2a673c
91de01
* Fri Jan 21 2011 Rex Dieter <rdieter@fedoraproject.org> 4.4.4-1
91de01
- phonon-backend-gstreamer-4.4.4
91de01
3ee183
* Fri Jan 07 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:4.4.4-0.4.20110104
3ee183
- Requires: PackageKit-gstreamer-plugin , avoids potential crashers elsewhere 
3ee183
  when built with USE_INSTALL_PLUGIN (kde#262308)
3ee183
c34a73
* Wed Jan 05 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:4.4.4-0.3.20110104
c34a73
- %%doc COPYING.LIB
c34a73
- add comment on pnonon-gstreamer_snapshot.sh usage
c34a73
c34a73
* Wed Jan 05 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:4.4.4-0.2.20110104
c34a73
- phonon-backend-gstreamer
c34a73
c34a73
* Tue Jan 04 2011 Rex Dieter <rdieter@fedoraproject.org> - 4.4.4-0.1.20110104
c34a73
- phonon-gstreamer-4.4.4-20110104 snapshot
c34a73