|
@@ -6,22 +6,37 @@
|
|
|
|
|
|
%global pulseaudio_version %(pkg-config --modversion libpulse 2>/dev/null || echo 0.9.15)
|
|
%global pulseaudio_version %(pkg-config --modversion libpulse 2>/dev/null || echo 0.9.15)
|
|
|
|
|
|
|
|
+
|
|
|
|
+#define bootstrap 1
|
|
|
|
+
|
|
Name: phonon
|
|
Name: phonon
|
|
Summary: Multimedia framework api
|
|
Summary: Multimedia framework api
|
|
Summary(ja): マルチメディアフレームワーク API
|
|
Summary(ja): マルチメディアフレームワーク API
|
|
-Version: 4.8.2
|
|
+Version: 4.9.0
|
|
-Release: 2%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
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/phonon/4.7.1/src/phonon-%{version}.tar.xz
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+
|
|
|
|
+Provides: phonon-experimental = %{version}-%{release}
|
|
|
|
+%if 0%{?bootstrap}
|
|
|
|
+Provides: phonon-backend%{?_isa} = 4.7
|
|
|
|
+%else
|
|
|
|
+Requires: phonon-backend%{?_isa} => 4.7
|
|
|
|
+%endif
|
|
|
|
|
|
-Patch1: phonon-4.7.1-no_rpath.patch
|
|
+Source0: http://download.kde.org/stable/phonon/%{version}/phonon-%{version}.tar.xz
|
|
|
|
|
|
## Upstream patches
|
|
## Upstream patches
|
|
|
|
|
|
|
|
+## upstreamable patches
|
|
|
|
+Patch10: phonon-rpath_use_link_path.patch
|
|
|
|
+Patch11: phonon-DEFAULT_SOURCE.patch
|
|
|
|
+
|
|
## Vine patches
|
|
## Vine patches
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
@@ -34,9 +49,11 @@ BuildRequires: libxml2-devel
|
|
BuildRequires: qt4-devel >= 4.6.0
|
|
BuildRequires: qt4-devel >= 4.6.0
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: pulseaudio-libs-devel >= 0.9.15
|
|
BuildRequires: pulseaudio-libs-devel >= 0.9.15
|
|
|
|
+BuildRequires: extra-cmake-modules
|
|
|
|
+BuildRequires: pkgconfig(Qt5DBus) pkgconfig(Qt5Designer) pkgconfig(Qt5OpenGL) pkgconfig(Qt5Widgets)
|
|
|
|
+BuildRequires: pkgconfig(Qt5Declarative)
|
|
|
|
|
|
# TODO: enable the following Requires in next release
|
|
# TODO: enable the following Requires in next release
|
|
-Requires: phonon-backend >= 4.4
|
|
|
|
Requires: pulseaudio-libs >= %{pulseaudio_version}
|
|
Requires: pulseaudio-libs >= %{pulseaudio_version}
|
|
Requires: qt4 >= %{_qt4_version}
|
|
Requires: qt4 >= %{_qt4_version}
|
|
|
|
|
|
@@ -50,15 +67,42 @@ used.
|
|
Summary: Development files for phonon
|
|
Summary: Development files for phonon
|
|
Summary(ja): phonon の開発用ファイル
|
|
Summary(ja): phonon の開発用ファイル
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
|
|
+Provides: phonon-experimental-devel = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: qt4-devel >= %{_qt4_version}
|
|
Requires: qt4-devel >= %{_qt4_version}
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
Header files for developing applications using phonon
|
|
Header files for developing applications using phonon
|
|
|
|
|
|
|
|
+%package qt5
|
|
|
|
+Summary: phonon for Qt5
|
|
|
|
+Summary(ja): Qt5用phonon
|
|
|
|
+%{?_qt5_version:Requires: qt5-qtbase%{?_isa} >= %{_qt5_version}}
|
|
|
|
+%if 0%{?bootstrap}
|
|
|
|
+Provides: %{name}-qt5-backend%{?_isa} = 4.7
|
|
|
|
+%else
|
|
|
|
+Requires: %{name}-qt5-backend%{?_isa} => 4.7
|
|
|
|
+%endif
|
|
|
|
+%description qt5
|
|
|
|
+Phonon is a cross-platform portable Multimedia Support Abstraction,
|
|
|
|
+which allows you to play multiple audio or video formats with the same
|
|
|
|
+quality on all platforms, no matter which underlying architecture is
|
|
|
|
+used.
|
|
|
|
+
|
|
|
|
+%package qt5-devel
|
|
|
|
+Summary: Developer files for %{name}-qt5
|
|
|
|
+Summary(ja): %{name}-qt5の開発者向けファイル
|
|
|
|
+Requires: %{name}-qt5%{?_isa} = %{version}-%{release}
|
|
|
|
+%description qt5-devel
|
|
|
|
+Header files for developing applications using phonon-qt5
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
-%patch1 -p1 -b .no_rpath
|
|
+
|
|
|
|
+%patch10 -p1 -b .10
|
|
|
|
+%patch11 -p1 -b .11
|
|
|
|
+
|
|
|
|
|
|
%build
|
|
%build
|
|
%ifarch x86_64
|
|
%ifarch x86_64
|
|
@@ -68,52 +112,107 @@ PATH="$PATH:`/usr/bin/pkg-config --variable=bindir Qt`"
|
|
mkdir -p %{_target_platform}
|
|
mkdir -p %{_target_platform}
|
|
pushd %{_target_platform}
|
|
pushd %{_target_platform}
|
|
%cmake \
|
|
%cmake \
|
|
- -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT:BOOL=ON \
|
|
+ -DCMAKE_BUILD_TYPE:STRING="Release" \
|
|
- ..
|
|
+ -DPHONON_INSTALL_QT_COMPAT_HEADERS:BOOL=ON \
|
|
|
|
+ -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT:BOOL=ON \
|
|
|
|
+ ..
|
|
popd
|
|
popd
|
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
|
|
|
|
+mkdir -p %{_target_platform}-Qt5
|
|
|
|
+pushd %{_target_platform}-Qt5
|
|
|
|
+%cmake \
|
|
|
|
+ -DCMAKE_BUILD_TYPE:STRING="Release" \
|
|
|
|
+ -DPHONON_BUILD_PHONON4QT5:BOOL=ON \
|
|
|
|
+ -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT:BOOL=ON \
|
|
|
|
+ ..
|
|
|
|
+popd
|
|
|
|
+
|
|
|
|
+make %{?_smp_mflags} -C %{_target_platform}-Qt5
|
|
|
|
+
|
|
|
|
+
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
|
|
make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
|
|
-
|
|
+make install/fast DESTDIR=%{buildroot} -C %{_target_platform}-Qt5
|
|
-# symlink for qt/phonon compatibility
|
|
|
|
-ln -s ../KDE/Phonon $RPM_BUILD_ROOT%{_includedir}/phonon/Phonon
|
|
|
|
|
|
|
|
# own these dirs
|
|
# own these dirs
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/kde4/plugins/phonon_backend/
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/kde4/plugins/phonon_backend/
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/kde4/services/phononbackends/
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/kde4/services/phononbackends/
|
|
|
|
+mkdir -p %{buildroot}%{_qt5_plugindir}/phonon4qt5_backend
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%check
|
|
|
|
+export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig
|
|
|
|
+test "$(pkg-config --modversion phonon)" = "%{version}"
|
|
|
|
+test "$(pkg-config --modversion phonon4qt5)" = "%{version}"
|
|
|
|
+
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
+%post
|
|
|
|
+/sbin/ldconfig
|
|
|
|
+
|
|
|
|
+%postun
|
|
|
|
+/sbin/ldconfig
|
|
|
|
+
|
|
|
|
+# https://bugzilla.redhat.com/show_bug.cgi?id=1223956
|
|
|
|
+# replacing symlink with a dir
|
|
|
|
+%pretrans devel -p <lua>
|
|
|
|
+path = "%{_includedir}/phonon/Phonon"
|
|
|
|
+st = posix.stat(path)
|
|
|
|
+if st and st.type == "link" then
|
|
|
|
+ os.remove(path)
|
|
|
|
+end
|
|
|
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
-%doc COPYING.LIB
|
|
+%license COPYING.LIB
|
|
-%{_libdir}/*.so.*
|
|
+%{_libdir}/libphonon.so.4*
|
|
|
|
+%{_libdir}/libphononexperimental.so.4*
|
|
%{_qt4_plugindir}/designer/*.so
|
|
%{_qt4_plugindir}/designer/*.so
|
|
-%{_datadir}/dbus-1/interfaces/*
|
|
|
|
# kde4-specific dirs
|
|
# kde4-specific dirs
|
|
%dir %{_libdir}/kde4/plugins/phonon_backend
|
|
%dir %{_libdir}/kde4/plugins/phonon_backend
|
|
%dir %{_datadir}/kde4/services/phononbackends
|
|
%dir %{_datadir}/kde4/services/phononbackends
|
|
|
|
+%dir %{_datadir}/phonon/
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/KDE
|
|
%dir %{_includedir}/KDE
|
|
%{_includedir}/KDE/Phonon/
|
|
%{_includedir}/KDE/Phonon/
|
|
%{_includedir}/phonon/
|
|
%{_includedir}/phonon/
|
|
-%{_libdir}/*.so
|
|
+%{_libdir}/libphonon.so
|
|
|
|
+%{_libdir}/libphononexperimental.so
|
|
%dir %{_libdir}/cmake/
|
|
%dir %{_libdir}/cmake/
|
|
%{_libdir}/cmake/phonon/
|
|
%{_libdir}/cmake/phonon/
|
|
-%{_libdir}/pkgconfig/*.pc
|
|
+%{_libdir}/pkgconfig/phonon.pc
|
|
%{_datadir}/phonon/buildsystem/
|
|
%{_datadir}/phonon/buildsystem/
|
|
%{_qt4_datadir}/mkspecs/modules/qt_phonon.pri
|
|
%{_qt4_datadir}/mkspecs/modules/qt_phonon.pri
|
|
|
|
+%{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml
|
|
|
|
+
|
|
|
|
+%files qt5
|
|
|
|
+%license COPYING.LIB
|
|
|
|
+%dir %{_datadir}/phonon4qt5
|
|
|
|
+%{_libdir}/libphonon4qt5.so.4*
|
|
|
|
+%{_libdir}/libphonon4qt5experimental.so.4*
|
|
|
|
+%{_qt5_plugindir}/designer/phononwidgets.so
|
|
|
|
+%dir %{_qt5_plugindir}/phonon4qt5_backend/
|
|
|
|
+
|
|
|
|
+%files qt5-devel
|
|
|
|
+%{_datadir}/dbus-1/interfaces/org.kde.Phonon4Qt5.AudioOutput.xml
|
|
|
|
+%{_datadir}/phonon4qt5/buildsystem/
|
|
|
|
+%dir %{_libdir}/cmake/
|
|
|
|
+%{_libdir}/cmake/phonon4qt5/
|
|
|
|
+%{_includedir}/phonon4qt5/
|
|
|
|
+%{_libdir}/libphonon4qt5.so
|
|
|
|
+%{_libdir}/libphonon4qt5experimental.so
|
|
|
|
+%{_libdir}/pkgconfig/phonon4qt5.pc
|
|
|
|
+%{_qt5_archdatadir}/mkspecs/modules/qt_phonon4qt5.pri
|
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
* Thu Jun 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.8.2-2
|
|
* Thu Jun 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.8.2-2
|