Compare commits
No commits in common. "b00a96fe3938bdd62d9faae550af097cd1665f78" and "5604c833748d79d0112cd3e794705fd1bf30911d" have entirely different histories.
b00a96fe39
...
5604c83374
BIN
phonon-4.10.1.tar.xz
Normal file
BIN
phonon-4.10.1.tar.xz
Normal file
Binary file not shown.
Binary file not shown.
31
phonon-DEFAULT_SOURCE.patch
Normal file
31
phonon-DEFAULT_SOURCE.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
diff -up phonon-4.9.0/cmake/FindPhononInternal.cmake.DEFAULT_SOURCE phonon-4.9.0/cmake/FindPhononInternal.cmake
|
||||||
|
diff -up phonon-4.9.0/cmake/PhononQt4.cmake.DEFAULT_SOURCE phonon-4.9.0/cmake/PhononQt4.cmake
|
||||||
|
--- phonon-4.9.0/cmake/PhononQt4.cmake.DEFAULT_SOURCE 2016-04-17 23:25:17.000000000 -0500
|
||||||
|
+++ phonon-4.9.0/cmake/PhononQt4.cmake 2016-04-21 12:56:35.156204422 -0500
|
||||||
|
@@ -105,7 +105,7 @@ set(CMAKE_MODULE_PATH ${_phonon_cmake_mo
|
||||||
|
|
||||||
|
if (CMAKE_SYSTEM_NAME MATCHES Linux OR CMAKE_SYSTEM_NAME STREQUAL GNU)
|
||||||
|
if (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
|
- set ( _KDE4_PLATFORM_DEFINITIONS -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_GNU_SOURCE)
|
||||||
|
+ set ( _KDE4_PLATFORM_DEFINITIONS -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -D_GNU_SOURCE)
|
||||||
|
set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}")
|
||||||
|
set ( CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_MODULE_LINKER_FLAGS}")
|
||||||
|
|
||||||
|
@@ -120,7 +120,7 @@ if (CMAKE_SYSTEM_NAME MATCHES Linux OR C
|
||||||
|
endif(CMAKE_BUILD_TYPE_TOLOWER MATCHES profile)
|
||||||
|
endif (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
|
if (CMAKE_C_COMPILER MATCHES "icc")
|
||||||
|
- set ( _KDE4_PLATFORM_DEFINITIONS -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_GNU_SOURCE)
|
||||||
|
+ set ( _KDE4_PLATFORM_DEFINITIONS -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -D_GNU_SOURCE)
|
||||||
|
set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}")
|
||||||
|
set ( CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_MODULE_LINKER_FLAGS}")
|
||||||
|
endif (CMAKE_C_COMPILER MATCHES "icc")
|
||||||
|
@@ -205,7 +205,7 @@ if (CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
# It is kept here nonetheless both for backwards compatibility in case one does not use add_definitions(${KDE4_DEFINITIONS})
|
||||||
|
# and also because it is/was needed by glibc for snprintf to be available when building C files.
|
||||||
|
# See commit 4a44862b2d178c1d2e1eb4da90010d19a1e4a42c.
|
||||||
|
- add_definitions (-D_BSD_SOURCE)
|
||||||
|
+ add_definitions (-D_DEFAULT_SOURCE)
|
||||||
|
endif (CMAKE_SYSTEM_NAME MATCHES Linux OR CMAKE_SYSTEM_NAME STREQUAL GNU)
|
||||||
|
|
||||||
|
if (CMAKE_SYSTEM_NAME STREQUAL GNU)
|
||||||
19
phonon-rpath_use_link_path.patch
Normal file
19
phonon-rpath_use_link_path.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
diff -up phonon-4.9.0/cmake/PhononQt4.cmake.rpath phonon-4.9.0/cmake/PhononQt4.cmake
|
||||||
|
--- phonon-4.9.0/cmake/PhononQt4.cmake.rpath 2016-04-21 13:00:50.788470084 -0500
|
||||||
|
+++ phonon-4.9.0/cmake/PhononQt4.cmake 2016-04-21 13:04:39.194600944 -0500
|
||||||
|
@@ -33,7 +33,6 @@
|
||||||
|
# These two options below make it set the RPATH of the installed targets to all
|
||||||
|
# RPATH directories outside the current CMAKE_BINARY_DIR and also the library
|
||||||
|
# install directory. Alex
|
||||||
|
-set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
|
set(_abs_LIB_INSTALL_DIR "${LIB_INSTALL_DIR}")
|
||||||
|
if (NOT IS_ABSOLUTE "${_abs_LIB_INSTALL_DIR}")
|
||||||
|
set(_abs_LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}")
|
||||||
|
@@ -41,6 +40,7 @@ endif()
|
||||||
|
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${_abs_LIB_INSTALL_DIR}" _isSystemPlatformLibDir)
|
||||||
|
list(FIND CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "${_abs_LIB_INSTALL_DIR}" _isSystemCxxLibDir)
|
||||||
|
if("${_isSystemPlatformLibDir}" STREQUAL "-1" AND "${_isSystemCxxLibDir}" STREQUAL "-1")
|
||||||
|
+ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
|
set(CMAKE_INSTALL_RPATH "${_abs_LIB_INSTALL_DIR}")
|
||||||
|
endif("${_isSystemPlatformLibDir}" STREQUAL "-1" AND "${_isSystemCxxLibDir}" STREQUAL "-1")
|
||||||
|
|
||||||
167
phonon.spec
167
phonon.spec
@ -1,102 +1,129 @@
|
|||||||
|
%define __cmake3 %{nil}
|
||||||
|
|
||||||
Name: phonon
|
Name: phonon
|
||||||
Version: 4.12.0
|
Version: 4.10.1
|
||||||
Release: 1
|
Release: 4
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Summary: Multimedia framework api
|
Summary: Multimedia library
|
||||||
URL: https://community.kde.org/Phonon
|
URL: http://phonon.kde.org/
|
||||||
Source0: http://download.kde.org/stable/%{name}/%{version}/%{name}-%{version}.tar.xz
|
Source0: http://download.kde.org/stable/phonon/%{version}/phonon-%{version}.tar.xz
|
||||||
|
BuildRequires: automoc4 >= 0.9.86 cmake >= 2.8.9 extra-cmake-modules kf5-rpm-macros kde-filesystem
|
||||||
|
BuildRequires: pkgconfig pkgconfig(glib-2.0) pkgconfig(libpulse-mainloop-glib) > 0.9.15 pkgconfig(libxml-2.0)
|
||||||
|
BuildRequires: pkgconfig(QtDBus) pkgconfig(QtDesigner) pkgconfig(QtOpenGL) pkgconfig(Qt5DBus)
|
||||||
|
BuildRequires: pkgconfig(Qt5Designer) pkgconfig(Qt5OpenGL) pkgconfig(Qt5Widgets) pkgconfig(xcb)
|
||||||
|
Requires: kde-filesystem
|
||||||
|
%{?_qt4:Requires: %{_qt4} >= %{_qt4_version}}
|
||||||
|
Provides: phonon-experimental = %{version}-%{release}
|
||||||
|
|
||||||
# filter plugins
|
Patch0001: phonon-rpath_use_link_path.patch
|
||||||
%global __provides_exclude_from ^(^%{_qt5_plugindir}/.*\\.so)$
|
Patch0002: phonon-DEFAULT_SOURCE.patch
|
||||||
|
|
||||||
BuildRequires: cmake
|
|
||||||
BuildRequires: gcc-c++
|
|
||||||
BuildRequires: extra-cmake-modules
|
|
||||||
BuildRequires: kf5-rpm-macros
|
|
||||||
BuildRequires: pkgconfig
|
|
||||||
BuildRequires: pkgconfig(glib-2.0)
|
|
||||||
BuildRequires: pulseaudio-libs-devel
|
|
||||||
BuildRequires: pkgconfig(libxml-2.0)
|
|
||||||
# Qt5
|
|
||||||
BuildRequires: pkgconfig(Qt5DBus)
|
|
||||||
BuildRequires: pkgconfig(Qt5Designer)
|
|
||||||
BuildRequires: pkgconfig(Qt5OpenGL)
|
|
||||||
BuildRequires: pkgconfig(Qt5Widgets)
|
|
||||||
BuildRequires: pkgconfig(xcb)
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}.
|
Phonon provides a Qt-style interface for audio and video.It is aimed at
|
||||||
|
the average desktop application, whether that is a game that needs sound
|
||||||
|
effects or a full-blown multimedia playback application like Amarok or Bangarang.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Developer files for phonon
|
||||||
|
Requires: phonon = %{version}-%{release}
|
||||||
|
Provides: phonon-experimental-devel = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Developer files for phonon.
|
||||||
|
|
||||||
%package qt5
|
%package qt5
|
||||||
Summary: Multimedia framework api for Qt5
|
Summary: phonon for Qt5
|
||||||
%{?_qt5:Requires: %{_qt5} >= %{_qt5_version}}
|
%{?_qt5:Requires: %{_qt5} >= %{_qt5_version}}
|
||||||
Recommends: phonon-qt5-backend-gstreamer%{?_isa}
|
|
||||||
|
|
||||||
%description qt5
|
%description qt5
|
||||||
%{summary}.
|
phonon for Qt5.
|
||||||
|
|
||||||
%package qt5-devel
|
%package qt5-devel
|
||||||
Summary: Developer files for %{name}-qt5
|
Summary: Developer files for phonon-qt5
|
||||||
Requires: %{name}-qt5 = %{version}-%{release}
|
Requires: phonon-qt5 = %{version}-%{release}
|
||||||
|
|
||||||
%description qt5-devel
|
%description qt5-devel
|
||||||
%{summary}.
|
Developer files for phonon-qt5.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n phonon-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{cmake_kf5} \
|
mkdir %{_target_platform}
|
||||||
-DCMAKE_BUILD_TYPE:STRING="Release" \
|
cd %{_target_platform}
|
||||||
-DPHONON_BUILD_DECLARATIVE_PLUGIN:BOOL=%{?declarative:ON}%{!?declarative:OFF} \
|
%{cmake} .. -DCMAKE_BUILD_TYPE:STRING="Release" %{!?zeitgeist:-DCMAKE_DISABLE_FIND_PACKAGE_QZeitgeist:BOOL=ON} \
|
||||||
-DPHONON_BUILD_PHONON4QT5:BOOL=ON \
|
-DPHONON_BUILD_DECLARATIVE_PLUGIN:BOOL=OFF -DPHONON_INSTALL_QT_COMPAT_HEADERS:BOOL=ON \
|
||||||
-DPHONON_BUILD_QT6:BOOL=OFF \
|
-DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT:BOOL=ON
|
||||||
-DPHONON_QT_IMPORTS_INSTALL_DIR=%{_qt5_importdir} \
|
cd -
|
||||||
-DPHONON_QT_MKSPECS_INSTALL_DIR=%{_qt5_archdatadir}/mkspecs/modules \
|
%make_build -C %{_target_platform}
|
||||||
-DPHONON_QT_PLUGIN_INSTALL_DIR=%{_qt5_plugindir}/designer
|
mkdir %{_target_platform}-Qt5
|
||||||
|
cd %{_target_platform}-Qt5
|
||||||
mkdir build && cd build
|
%{cmake_kf5} .. -DCMAKE_BUILD_TYPE:STRING="Release" -DPHONON_BUILD_DECLARATIVE_PLUGIN:BOOL=OFF \
|
||||||
%cmake ../
|
-DPHONON_BUILD_PHONON4QT5:BOOL=ON -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT:BOOL=ON
|
||||||
|
cd -
|
||||||
|
%make_build -C %{_target_platform}-Qt5
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install -C %{_target_platform}-Qt5
|
||||||
|
%make_install -C %{_target_platform}
|
||||||
%find_lang %{name} --with-qt --all-name
|
install -d %{buildroot}%{_kde4_libdir}/kde4/plugins/phonon_backend/
|
||||||
|
install -d %{buildroot}%{_kde4_datadir}/kde4/services/phononbackends/
|
||||||
# own these dirs
|
install -d %{buildroot}%{_qt5_plugindir}/phonon4qt5_backend
|
||||||
mkdir -p %{buildroot}%{_qt5_plugindir}/phonon4qt5_backend
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig${PKG_CONFIG_PATH:+:}${PKG_CONFIG_PATH}
|
export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig
|
||||||
|
test "$(pkg-config --modversion phonon)" = "%{version}"
|
||||||
test "$(pkg-config --modversion phonon4qt5)" = "%{version}"
|
test "$(pkg-config --modversion phonon4qt5)" = "%{version}"
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
%post qt5
|
||||||
|
/sbin/ldconfig
|
||||||
|
%postun qt5
|
||||||
|
/sbin/ldconfig
|
||||||
|
%pretrans devel -p <lua>
|
||||||
|
path = "%{_includedir}/phonon/Phonon"
|
||||||
|
st = posix.stat(path)
|
||||||
|
if st and st.type == "link" then
|
||||||
|
os.remove(path)
|
||||||
|
end
|
||||||
|
|
||||||
%files qt5 -f %{name}.lang
|
%files
|
||||||
%license COPYING.LIB
|
%doc COPYING.LIB
|
||||||
%{_bindir}/phononsettings
|
%{_libdir}/{libphonon.so.4*,libphononexperimental.so.4*}
|
||||||
%{_libdir}/libphonon4qt5.so.4*
|
%{_qt4_plugindir}/designer/libphononwidgets.so
|
||||||
%{_libdir}/libphonon4qt5experimental.so.4*
|
%dir %{_datadir}/phonon/
|
||||||
# own backends dir
|
%dir %{_kde4_libdir}/kde4/plugins/phonon_backend/
|
||||||
|
%dir %{_kde4_datadir}/kde4/services/phononbackends/
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml
|
||||||
|
%{_datadir}/phonon/buildsystem/
|
||||||
|
%{_libdir}/cmake/phonon/
|
||||||
|
%{_includedir}/KDE/Phonon/
|
||||||
|
%{_includedir}/phonon/
|
||||||
|
%{_libdir}/pkgconfig/phonon.pc
|
||||||
|
%{_libdir}/*.so
|
||||||
|
%{_qt4_datadir}/mkspecs/modules/qt_phonon.pri
|
||||||
|
%exclude %{_libdir}/libphonon4qt5.so
|
||||||
|
%exclude %{_libdir}/libphonon4qt5experimental.so
|
||||||
|
|
||||||
|
%files qt5
|
||||||
|
%doc COPYING.LIB
|
||||||
|
%dir %{_datadir}/phonon4qt5
|
||||||
|
%{_libdir}/{libphonon4qt5.so.4*,libphonon4qt5experimental.so.4*}
|
||||||
|
%{_qt5_plugindir}/designer/phononwidgets.so
|
||||||
%dir %{_qt5_plugindir}/phonon4qt5_backend/
|
%dir %{_qt5_plugindir}/phonon4qt5_backend/
|
||||||
# designer plugin
|
|
||||||
%{_qt5_plugindir}/designer/phonon4qt5widgets.so
|
|
||||||
|
|
||||||
%files qt5-devel
|
%files qt5-devel
|
||||||
|
%{_datadir}/dbus-1/interfaces/org.kde.Phonon4Qt5.AudioOutput.xml
|
||||||
|
%{_datadir}/phonon4qt5/buildsystem/
|
||||||
%{_libdir}/cmake/phonon4qt5/
|
%{_libdir}/cmake/phonon4qt5/
|
||||||
%{_includedir}/phonon4qt5/
|
%{_includedir}/phonon4qt5/
|
||||||
%{_libdir}/libphonon4qt5.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/libphonon4qt5experimental.so
|
|
||||||
%{_libdir}/pkgconfig/phonon4qt5.pc
|
%{_libdir}/pkgconfig/phonon4qt5.pc
|
||||||
%{_qt5_archdatadir}/mkspecs/modules/qt_phonon4qt5.pri
|
%{_qt5_archdatadir}/mkspecs/modules/qt_phonon4qt5.pri
|
||||||
|
%exclude %{_libdir}/libphonon.so
|
||||||
|
%exclude %{_libdir}/libphononexperimental.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Feb 29 2024 xu_ping <707078654@qq.com> - 4.12.0-1
|
|
||||||
- update to 4.12.0
|
|
||||||
|
|
||||||
* Mon Nov 21 2022 liweiganga <liweiganga@uniontech.com> - 4.11.1-1
|
|
||||||
- update to 4.11.1
|
|
||||||
|
|
||||||
* Tue Jan 25 2022 pei-jiankang<peijiankang@kylinos.com> - 4.10.1-5
|
|
||||||
- modify kf5-knotifyconfig compile error
|
|
||||||
|
|
||||||
* Mon Dec 2 2019 Ling Yang <lingyang2@huawei.com> - 4.10.1-4
|
* Mon Dec 2 2019 Ling Yang <lingyang2@huawei.com> - 4.10.1-4
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
version_control: github
|
|
||||||
src_repo: KDE/phonon
|
|
||||||
tag_prefix: ^v
|
|
||||||
seperator: .
|
|
||||||
Loading…
x
Reference in New Issue
Block a user