|
|
|
@ -1,13 +1,21 @@
|
|
|
|
|
%define alphatag .20081121svn887051
|
|
|
|
|
|
|
|
|
|
Summary: Multimedia framework api
|
|
|
|
|
Name: phonon
|
|
|
|
|
Version: 4.2.0
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Name: phonon
|
|
|
|
|
Version: 4.2.80
|
|
|
|
|
Release: 0.1%{?alphatag}%{?dist}
|
|
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
URL: http://phonon.kde.org/
|
|
|
|
|
Source0: ftp://ftp.kde.org/pub/kde/stable/phonon/%{version}/phonon-%{version}.tar.bz2
|
|
|
|
|
### SNAPSHOT
|
|
|
|
|
#Source0:VAR svnrel echo $(date +%Y%m%d)svn$(svn info svn://anonsvn.kde.org/home/kde/trunk/kdesupport/phonon | grep 'Rev:' | cut -d" " -f4)
|
|
|
|
|
#Source0:CMD svn export svn://anonsvn.kde.org/home/kde/trunk/kdesupport/phonon phonon-%{version}.%{svnrel}
|
|
|
|
|
#Source0:CMD tar cjf %{_sourcedir}/phonon-%{version}.%{svnrel}.tar.bz2 phonon-%{version}.%{svnrel}
|
|
|
|
|
#Source0:CMD rm -rf phonon-%{version}.%{svnrel}
|
|
|
|
|
Source0: phonon-%{version}%{?alphatag}.tar.bz2
|
|
|
|
|
### Original sources
|
|
|
|
|
#Source0: ftp://ftp.kde.org/pub/kde/stable/phonon/%{version}/phonon-%{version}.tar.bz2
|
|
|
|
|
Source1: http://gstreamer.freedesktop.org/data/images/artwork/gstreamer-logo.svg
|
|
|
|
|
# Make PulseAudio the default again when listed by the backend.
|
|
|
|
|
# Note that this currently only works for the Xine backend. Device selection in
|
|
|
|
@ -16,10 +24,11 @@ Source1: http://gstreamer.freedesktop.org/data/images/artwork/gstreamer-logo.svg
|
|
|
|
|
# "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.0-pulseaudio.patch
|
|
|
|
|
Patch1: phonon-4.2.70-xine-pulseaudio.patch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
BuildRequires: automoc4
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: cmake >= 2.6.0
|
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
|
BuildRequires: gstreamer-devel
|
|
|
|
|
BuildRequires: gstreamer-plugins-base-devel
|
|
|
|
@ -27,6 +36,7 @@ BuildRequires: kde-filesystem
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
BuildRequires: qt4-devel >= 4.4.0
|
|
|
|
|
BuildRequires: ImageMagick
|
|
|
|
|
BuildRequires: xine-lib-devel
|
|
|
|
|
|
|
|
|
|
## hard-code phonon-backend-xine, for now, so yum doesn't choose -gstreamer by default
|
|
|
|
|
Requires: phonon-backend-xine
|
|
|
|
@ -37,7 +47,7 @@ Requires: phonon-backend-xine
|
|
|
|
|
|
|
|
|
|
%package backend-gstreamer
|
|
|
|
|
Summary: Gstreamer phonon backend
|
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Provides: phonon-backend = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-backend-gst < 4.2.0-4
|
|
|
|
@ -47,6 +57,18 @@ Requires(postun): xdg-utils
|
|
|
|
|
%description backend-gstreamer
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%package backend-xine
|
|
|
|
|
Summary: Gstreamer xine backend
|
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Provides: phonon-xine = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-backend-xine < 4.2.0-4
|
|
|
|
|
Provides: %{name}-backend-xine = %{version}-%{release}
|
|
|
|
|
Requires(post): xdg-utils
|
|
|
|
|
Requires(postun): xdg-utils
|
|
|
|
|
%description backend-xine
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Developer files for %{name}
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
@ -58,8 +80,9 @@ Requires: pkgconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%setup -q -n phonon-%{version}%{?alphatag}
|
|
|
|
|
%patch0 -p1 -b .pulseaudio
|
|
|
|
|
%patch1 -p1 -b .xine-pulseaudio
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -68,13 +91,13 @@ pushd %{_target_platform}
|
|
|
|
|
%{cmake} ..
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform} VERBOSE=1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
make install DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
|
|
|
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}-gstreamer.svg
|
|
|
|
|
for i in 16 22 32 48 64 128; do
|
|
|
|
@ -85,11 +108,10 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%post -n %{name}-backend-gstreamer
|
|
|
|
@ -100,7 +122,7 @@ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc COPYING.LIB
|
|
|
|
|
%doc COPYING.LIB
|
|
|
|
|
%{_libdir}/libphonon*.so.*
|
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml
|
|
|
|
|
# kde4-specific dirs
|
|
|
|
@ -114,6 +136,14 @@ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
|
|
|
|
|
%_datadir/icons/hicolor/*/*/*.png
|
|
|
|
|
%_datadir/icons/hicolor/*/*/*.svg
|
|
|
|
|
|
|
|
|
|
%files backend-xine
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_kde4_libdir}/kde4/plugins/phonon_backend/phonon_xine.so
|
|
|
|
|
%{_kde4_datadir}/kde4/services/phononbackends/xine.desktop
|
|
|
|
|
%_datadir/icons/hicolor/*/*/*.png
|
|
|
|
|
%_datadir/icons/hicolor/*/*/*.svg
|
|
|
|
|
%_datadir/icons/oxygen/*/*/*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%dir %{_includedir}/KDE
|
|
|
|
@ -124,6 +154,15 @@ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Nov 21 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 4.2.80-0.1.20081121svn887051
|
|
|
|
|
- Use subversion (4.2.80) snapshot
|
|
|
|
|
- phonon-backend-xine subpkg
|
|
|
|
|
- make VERBOSE=1
|
|
|
|
|
- make install/fast
|
|
|
|
|
- Xine backend is in phonon now, add xine-lib-devel as BR
|
|
|
|
|
- BR cmake >= 2.6.0
|
|
|
|
|
- forward-port xine pulseaudio patch
|
|
|
|
|
|
|
|
|
|
* Tue Sep 30 2008 Than Ngo <than@redhat.com> 4.2.0-7
|
|
|
|
|
- fix tranparent issue by convert
|
|
|
|
|
|
|
|
|
|