|
|
@ -1,57 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
%define phonon_version_major 4.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Multimedia framework api
|
|
|
|
Summary: Multimedia framework api
|
|
|
|
Name: phonon
|
|
|
|
Name: phonon
|
|
|
|
Version: 4.3.1
|
|
|
|
Version: 4.3.1
|
|
|
|
Release: 12%{?dist}
|
|
|
|
Release: 101%{?dist}
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: LGPLv2+
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://phonon.kde.org/
|
|
|
|
URL: http://phonon.kde.org/
|
|
|
|
Source0: ftp://ftp.kde.org/pub/kde/stable/4.2.1/phonon-%{version}.tar.bz2
|
|
|
|
Source0: ftp://ftp.kde.org/pub/kde/stable/4.2.1/phonon-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
|
|
# build only the xine backend
|
|
|
|
Source10: http://gstreamer.freedesktop.org/data/images/artwork/gstreamer-logo.svg
|
|
|
|
Patch0: phonon-4.3.1-xineonly.patch
|
|
|
|
Source11: hi16-phonon-gstreamer.png
|
|
|
|
# bump PulseAudio's priority in the xine backend
|
|
|
|
Source12: hi22-phonon-gstreamer.png
|
|
|
|
|
|
|
|
Source13: hi32-phonon-gstreamer.png
|
|
|
|
|
|
|
|
Source14: hi48-phonon-gstreamer.png
|
|
|
|
|
|
|
|
Source15: hi64-phonon-gstreamer.png
|
|
|
|
|
|
|
|
Source16: hi128-phonon-gstreamer.png
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Make PulseAudio the default when listed by the backend.
|
|
|
|
|
|
|
|
# Note that this currently only works for the Xine backend. Device selection in
|
|
|
|
|
|
|
|
# the GStreamer backend is weird: there is a setting for "sink" which cannot be
|
|
|
|
|
|
|
|
# set through systemsettings, and listed devices are only those supported by the
|
|
|
|
|
|
|
|
# "sink". So it never lists "PulseAudio" as a supported device, you have to pick
|
|
|
|
|
|
|
|
# it as a "sink", and then the device setting is ignored entirely.
|
|
|
|
|
|
|
|
Patch0: phonon-4.2.96-pulseaudio.patch
|
|
|
|
Patch1: phonon-4.2.96-xine-pulseaudio.patch
|
|
|
|
Patch1: phonon-4.2.96-xine-pulseaudio.patch
|
|
|
|
# make InitialPreference=9
|
|
|
|
Patch2: qt-x11-opensource-src-4.5.2-gst-pulsaudio.patch
|
|
|
|
Patch2: phonon-4.3.1-xine-InitialPreference.patch
|
|
|
|
|
|
|
|
|
|
|
|
## define to build phonon-backend-xine only
|
|
|
|
|
|
|
|
#define xine_only 1
|
|
|
|
|
|
|
|
Patch10: phonon-4.3.1-xineonly.patch
|
|
|
|
|
|
|
|
|
|
|
|
## Upstream patches
|
|
|
|
## Upstream patches
|
|
|
|
|
|
|
|
Patch100: phonon-4.3.2-gstreamer-utf8-url.patch
|
|
|
|
|
|
|
|
Patch101: phonon-4.3.2-gstreamer-volumefader.patch
|
|
|
|
# fix for non-ascii filenames in xine backend
|
|
|
|
# fix for non-ascii filenames in xine backend
|
|
|
|
Patch100: phonon-4.3.2-kdebug#172242.patch
|
|
|
|
Patch102: phonon-4.3.2-kdebug#172242.patch
|
|
|
|
# escape '#' too
|
|
|
|
# escape '#' too
|
|
|
|
Patch101: phonon-4.3.2-kdebug#172242-2.patch
|
|
|
|
Patch103: phonon-4.3.2-kdebug#172242-2.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: automoc4 >= 0.9.86
|
|
|
|
BuildRequires: automoc4 >= 0.9.86
|
|
|
|
BuildRequires: cmake >= 2.6.0
|
|
|
|
BuildRequires: cmake >= 2.6.0
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
|
|
|
|
BuildRequires: gstreamer-devel
|
|
|
|
|
|
|
|
BuildRequires: gstreamer-plugins-base-devel
|
|
|
|
BuildRequires: kde-filesystem
|
|
|
|
BuildRequires: kde-filesystem
|
|
|
|
BuildRequires: libxcb-devel
|
|
|
|
BuildRequires: libxcb-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: qt4-devel >= 4.5.1
|
|
|
|
BuildRequires: qt4-devel >= 4.4.0
|
|
|
|
BuildRequires: xine-lib-devel
|
|
|
|
BuildRequires: xine-lib-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Requires: phonon-backend%{?_isa} >= %{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## can switch to Requires instead of Conflicts once bootstrapping is done
|
|
|
|
|
|
|
|
#Requires: qt4%{?_isa} >= %{_qt4_version}
|
|
|
|
|
|
|
|
Conflicts: qt4 < 4.5.2-21
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
|
|
|
Summary: Developer files for %{name}
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: qt4-devel
|
|
|
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
%package backend-xine
|
|
|
|
%package backend-xine
|
|
|
|
Summary: Xine phonon backend
|
|
|
|
Summary: xine phonon backend
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Provides: phonon-backend%{?_isa} = %{version}-%{release}
|
|
|
|
Provides: phonon-backend%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: phonon%{?_isa} >= %{phonon_version_major}
|
|
|
|
|
|
|
|
%description backend-xine
|
|
|
|
%description backend-xine
|
|
|
|
%{summary}.
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package backend-gstreamer
|
|
|
|
|
|
|
|
Summary: Gstreamer phonon backend
|
|
|
|
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
|
|
|
|
Epoch: 2
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: phonon-backend%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Obsoletes: %{name}-backend-gst < 4.2.0-4
|
|
|
|
|
|
|
|
Provides: %{name}-backend-gst = %{version}-%{release}
|
|
|
|
|
|
|
|
%description backend-gstreamer
|
|
|
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n phonon-%{version}%{?alphatag}
|
|
|
|
%setup -q -n phonon-%{version}%{?alphatag}
|
|
|
|
%patch0 -p1 -b .xineonly
|
|
|
|
%patch0 -p1 -b .pulseaudio
|
|
|
|
%patch1 -p1 -b .xine-pulseaudio
|
|
|
|
%patch1 -p1 -b .xine-pulseaudio
|
|
|
|
%patch100 -p1 -b .xine_nonascii
|
|
|
|
%patch2 -p4 -b .gst-pulseaudio
|
|
|
|
%patch101 -p1 -b .xine_nonascii-2
|
|
|
|
%patch100 -p0 -b .gstreamer-utf8-url
|
|
|
|
|
|
|
|
%patch101 -p0 -b .gstreamer-volumefader
|
|
|
|
|
|
|
|
%patch102 -p1 -b .xine_nonascii
|
|
|
|
|
|
|
|
%patch103 -p1 -b .xine_nonascii-2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# not working? use -C .../xine hack below instead for now -- Rex
|
|
|
|
|
|
|
|
%if 0%{?xine_only}
|
|
|
|
|
|
|
|
%patch10 -p1 -b .xineonly
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
@ -60,39 +111,90 @@ pushd %{_target_platform}
|
|
|
|
%{cmake} ..
|
|
|
|
%{cmake} ..
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}%{?xine_only:/xine}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}%{?xine_only:/xine}
|
|
|
|
|
|
|
|
|
|
|
|
# move the oxygen-only phonon-xine icons to hicolor
|
|
|
|
# move the oxygen-only phonon-xine icons to hicolor
|
|
|
|
mv %{buildroot}%{_datadir}/icons/oxygen \
|
|
|
|
mv %{buildroot}%{_datadir}/icons/oxygen \
|
|
|
|
%{buildroot}%{_datadir}/icons/hicolor
|
|
|
|
%{buildroot}%{_datadir}/icons/hicolor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if ! 0%{?xine_only}
|
|
|
|
|
|
|
|
# gstreamer icons
|
|
|
|
|
|
|
|
install -D -m 0644 %{SOURCE10} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/phonon-gstreamer.svg
|
|
|
|
|
|
|
|
install -D -m 0644 %{SOURCE11} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/phonon-gstreamer.png
|
|
|
|
|
|
|
|
install -D -m 0644 %{SOURCE12} %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/phonon-gstreamer.png
|
|
|
|
|
|
|
|
install -D -m 0644 %{SOURCE13} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/phonon-gstreamer.png
|
|
|
|
|
|
|
|
install -D -m 0644 %{SOURCE14} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/phonon-gstreamer.png
|
|
|
|
|
|
|
|
install -D -m 0644 %{SOURCE15} %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/phonon-gstreamer.png
|
|
|
|
|
|
|
|
install -D -m 0644 %{SOURCE16} %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/phonon-gstreamer.png
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post backend-xine
|
|
|
|
%if ! 0%{?xine_only}
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%posttrans backend-xine
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
|
|
|
|
|
|
|
|
%post backend-gstreamer
|
|
|
|
|
|
|
|
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun backend-gstreamer
|
|
|
|
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
|
|
|
|
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
|
|
|
|
|
|
|
|
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%posttrans backend-gstreamer
|
|
|
|
|
|
|
|
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post backend-xine
|
|
|
|
|
|
|
|
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
|
|
|
|
|
|
|
|
|
|
|
|
%postun backend-xine
|
|
|
|
%postun backend-xine
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
|
|
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%posttrans backend-xine
|
|
|
|
|
|
|
|
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
|
|
|
|
|
|
|
|
|
|
|
|
%files backend-xine
|
|
|
|
%if ! 0%{?xine_only}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING.LIB
|
|
|
|
%doc COPYING.LIB
|
|
|
|
|
|
|
|
%{_libdir}/libphonon*.so.4*
|
|
|
|
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml
|
|
|
|
|
|
|
|
# kde4-specific dirs
|
|
|
|
|
|
|
|
%dir %{_kde4_libdir}/kde4/plugins/phonon_backend/
|
|
|
|
|
|
|
|
%dir %{_kde4_datadir}/kde4/services/phononbackends/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%dir %{_includedir}/KDE
|
|
|
|
|
|
|
|
%{_includedir}/KDE/Phonon/
|
|
|
|
|
|
|
|
%{_includedir}/phonon/
|
|
|
|
|
|
|
|
%{_libdir}/pkgconfig/phonon.pc
|
|
|
|
|
|
|
|
%{_libdir}/libphonon*.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files backend-gstreamer
|
|
|
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%{_kde4_libdir}/kde4/plugins/phonon_backend/phonon_gstreamer.so
|
|
|
|
|
|
|
|
%{_kde4_datadir}/kde4/services/phononbackends/gstreamer.desktop
|
|
|
|
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/phonon-gstreamer.*
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files backend-xine
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_kde4_libdir}/kde4/plugins/phonon_backend/phonon_xine.so
|
|
|
|
%{_kde4_libdir}/kde4/plugins/phonon_backend/phonon_xine.so
|
|
|
|
%{_kde4_datadir}/kde4/services/phononbackends/xine.desktop
|
|
|
|
%{_kde4_datadir}/kde4/services/phononbackends/xine.desktop
|
|
|
@ -100,6 +202,11 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Sep 29 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.3.1-101
|
|
|
|
|
|
|
|
- revert to kde/phonon
|
|
|
|
|
|
|
|
- inflate to Release: 101
|
|
|
|
|
|
|
|
- -backend-gstreamer: Epoch: 2
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.1-12
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.1-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|