diff --git a/README.en.md b/README.en.md deleted file mode 100644 index a117f56..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# phonon-qt4 - -#### Description -Multimedia library - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index a1e1b18..0000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# phonon-qt4 - -#### 介绍 -Multimedia library - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/phonon-4.10.3.tar.xz b/phonon-4.10.3.tar.xz new file mode 100644 index 0000000..11a00e7 Binary files /dev/null and b/phonon-4.10.3.tar.xz differ diff --git a/phonon-DEFAULT_SOURCE.patch b/phonon-DEFAULT_SOURCE.patch new file mode 100644 index 0000000..d245933 --- /dev/null +++ b/phonon-DEFAULT_SOURCE.patch @@ -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) diff --git a/phonon-qt4.spec b/phonon-qt4.spec new file mode 100644 index 0000000..161678c --- /dev/null +++ b/phonon-qt4.spec @@ -0,0 +1,90 @@ +%define __cmake3 %{nil} + +Name: phonon-qt4 +Version: 4.10.3 +Release: 1 +License: LGPLv2+ +Summary: Multimedia library +URL: http://phonon.kde.org/ +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) +Requires: kde-filesystem +%{?_qt4:Requires: %{_qt4} >= %{_qt4_version}} +Provides: phonon-experimental = %{version}-%{release} + +Patch0001: phonon-rpath_use_link_path.patch +Patch0002: phonon-DEFAULT_SOURCE.patch + +%description +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-qt4 = %{version}-%{release} +Provides: phonon-experimental-devel = %{version}-%{release} + +%description devel +Developer files for phonon. + +%prep +%autosetup -n phonon-%{version} -p1 + +%build +mkdir %{_target_platform} +cd %{_target_platform} +%{cmake} .. -DCMAKE_BUILD_TYPE:STRING="Release" %{!?zeitgeist:-DCMAKE_DISABLE_FIND_PACKAGE_QZeitgeist:BOOL=ON} \ + -DPHONON_BUILD_DECLARATIVE_PLUGIN:BOOL=OFF -DPHONON_INSTALL_QT_COMPAT_HEADERS:BOOL=ON \ + -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT:BOOL=ON +cd - +%make_build -C %{_target_platform} + +%install +%make_install -C %{_target_platform} +install -d %{buildroot}%{_kde4_libdir}/kde4/plugins/phonon_backend/ +install -d %{buildroot}%{_kde4_datadir}/kde4/services/phononbackends/ +install -d %{buildroot}%{_qt5_plugindir}/phonon4qt5_backend + +%check +export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig +test "$(pkg-config --modversion phonon)" = "%{version}" + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%pretrans devel -p +path = "%{_includedir}/phonon/Phonon" +st = posix.stat(path) +if st and st.type == "link" then + os.remove(path) +end + +%files +%doc COPYING.LIB +%{_libdir}/{libphonon.so.4*,libphononexperimental.so.4*} +%{_qt4_plugindir}/designer/libphononwidgets.so +%dir %{_datadir}/phonon/ +%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 + +%changelog +* Mon Nov 28 2022 misaka00251 - 4.10.3-1 +- Split package from phonon & upgrade to 4.10.3 diff --git a/phonon-rpath_use_link_path.patch b/phonon-rpath_use_link_path.patch new file mode 100644 index 0000000..941a59f --- /dev/null +++ b/phonon-rpath_use_link_path.patch @@ -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") + diff --git a/phonon.yaml b/phonon.yaml new file mode 100644 index 0000000..0451355 --- /dev/null +++ b/phonon.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: KDE/phonon +tag_prefix: ^v +seperator: .