qt5-qtmultimedia-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. %global qt_module qtmultimedia
  2. # define to build docs, need to undef this for bootstrapping
  3. # where qt5-qttools builds are not yet available
  4. # only primary archs (for now), allow secondary to bootstrap
  5. #global bootstrap 1
  6. %if ! 0%{?bootstrap}
  7. %ifarch %{arm} %{ix86} x86_64
  8. #define docs 1
  9. %endif
  10. %endif
  11. %global openal 1
  12. %global gst 1.0
  13. #define prerelease
  14. %global qt5_minorver 5.15
  15. %global qt5_version 5.15.2
  16. #global qt5_patchlevel 1
  17. Summary: Qt5 - Multimedia support
  18. Name: qt5-%{qt_module}
  19. Version: %{qt5_version}%{?qt5_patchlevel:.%{qt5_patchlevel}}
  20. Release: 1%{?_dist_release}
  21. Group: system
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
  25. License: LGPLv2 with exceptions or GPLv3 with exceptions
  26. Url: https://www.qt.io/
  27. Source0: https://download.qt.io/official_releases/qt/%{qt5_minorver}/%{qt5_version}%{?qt5_patchlevel:-%{qt5_patchlevel}}/submodules/%{qt_module}-everywhere-src-%{qt5_version}%{?qt5_patchlevel:-%{qt5_patchlevel}}.tar.xz
  28. Patch1: qt5-qtmultimedia-gcc11.patch
  29. BuildRequires: cmake
  30. BuildRequires: qt5-rpm-macros
  31. BuildRequires: qt5-qtbase-devel >= %{version}
  32. BuildRequires: qt5-qtbase-private-devel
  33. %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
  34. BuildRequires: qt5-qtdeclarative-devel >= %{version}
  35. BuildRequires: pkgconfig(alsa)
  36. BuildRequires: pkgconfig(gstreamer-%{gst})
  37. BuildRequires: pkgconfig(gstreamer-app-%{gst})
  38. BuildRequires: pkgconfig(gstreamer-audio-%{gst})
  39. BuildRequires: pkgconfig(gstreamer-base-%{gst})
  40. BuildRequires: pkgconfig(gstreamer-pbutils-%{gst})
  41. BuildRequires: pkgconfig(gstreamer-plugins-bad-%{gst})
  42. BuildRequires: pkgconfig(gstreamer-video-%{gst})
  43. BuildRequires: pkgconfig(libpulse) pkgconfig(libpulse-mainloop-glib)
  44. %if 0%{?openal}
  45. BuildRequires: pkgconfig(openal)
  46. %endif
  47. BuildRequires: pkgconfig(xv)
  48. %description
  49. The Qt Multimedia module provides a rich feature set that enables you to
  50. easily take advantage of a platforms multimedia capabilites and hardware.
  51. This ranges from the playback and recording of audio and video content to
  52. the use of available devices like cameras and radios.
  53. %package devel
  54. Summary: Development files for %{name}
  55. Group: programming
  56. Requires: %{name}%{?_isa} = %{version}-%{release}
  57. Requires: qt5-qtbase-devel%{?_isa}
  58. Requires: qt5-qtdeclarative-devel%{?_isa}
  59. Requires: pkgconfig(libpulse-mainloop-glib)
  60. %description devel
  61. %{summary}.
  62. %package examples
  63. Summary: Programming examples for %{name}
  64. Group: programming
  65. Requires: %{name}%{?_isa} = %{version}-%{release}
  66. %description examples
  67. %{summary}.
  68. %debug_package
  69. %prep
  70. %setup -q -n %{qt_module}-everywhere-src-%{qt5_version}
  71. %autopatch -p1
  72. %build
  73. mkdir %{_target_platform}
  74. pushd %{_target_platform}
  75. %{qmake_qt5} .. \
  76. CONFIG+=git_build \
  77. GST_VERSION=%{gst}
  78. make %{?_smp_mflags}
  79. %install
  80. make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
  81. ## .prl/.la file love
  82. # nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
  83. pushd %{buildroot}%{_qt5_libdir}
  84. for prl_file in libQt5*.prl ; do
  85. sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  86. if [ -f "$(basename ${prl_file} .prl).so" ]; then
  87. rm -fv "$(basename ${prl_file} .prl).la"
  88. sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  89. fi
  90. done
  91. popd
  92. %files
  93. %license LICENSE.*
  94. %{_qt5_libdir}/libQt5Multimedia.so.5*
  95. %{_qt5_libdir}/libQt5MultimediaQuick.so.5*
  96. %{_qt5_libdir}/libQt5MultimediaWidgets.so.5*
  97. %{_qt5_libdir}/libQt5MultimediaGstTools.so.5*
  98. %if 0%{?openal}
  99. %{_qt5_archdatadir}/qml/QtAudioEngine/
  100. %endif
  101. %{_qt5_archdatadir}/qml/QtMultimedia/
  102. %{_qt5_plugindir}/audio/
  103. %{_qt5_plugindir}/mediaservice/
  104. %{_qt5_plugindir}/playlistformats/
  105. %dir %{_qt5_libdir}/cmake/Qt5Multimedia/
  106. %{_qt5_libdir}/cmake/Qt5Multimedia/Qt5Multimedia_*Plugin.cmake
  107. %dir %{_qt5_libdir}/cmake/Qt5MultimediaWidgets/
  108. %files devel
  109. %{_qt5_headerdir}/QtMultimedia/
  110. %{_qt5_headerdir}/QtMultimediaQuick/
  111. %{_qt5_headerdir}/QtMultimediaWidgets/
  112. %{_qt5_headerdir}/QtMultimediaGstTools/
  113. %{_qt5_libdir}/libQt5Multimedia.so
  114. %{_qt5_libdir}/libQt5Multimedia.prl
  115. %{_qt5_libdir}/libQt5MultimediaQuick.so
  116. %{_qt5_libdir}/libQt5MultimediaQuick.prl
  117. %{_qt5_libdir}/libQt5MultimediaWidgets.so
  118. %{_qt5_libdir}/libQt5MultimediaWidgets.prl
  119. %{_qt5_libdir}/libQt5MultimediaGstTools.so
  120. %{_qt5_libdir}/libQt5MultimediaGstTools.prl
  121. %{_qt5_libdir}/cmake/Qt5Multimedia/Qt5MultimediaConfig*.cmake
  122. %{_qt5_libdir}/cmake/Qt5MultimediaWidgets/Qt5MultimediaWidgetsConfig*.cmake
  123. %{_qt5_libdir}/cmake/Qt5MultimediaGstTools/Qt5MultimediaGstToolsConfig*.cmake
  124. %{_qt5_libdir}/cmake/Qt5MultimediaQuick/Qt5MultimediaQuickConfig*.cmake
  125. %{_qt5_libdir}/pkgconfig/Qt5Multimedia.pc
  126. %{_qt5_libdir}/pkgconfig/Qt5MultimediaWidgets.pc
  127. %{_qt5_archdatadir}/mkspecs/modules/*.pri
  128. %if 0%{?_qt5_examplesdir:1}
  129. %files examples
  130. %{_qt5_examplesdir}/
  131. %endif
  132. %changelog
  133. * Wed Apr 14 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.15.2-1
  134. - new upstream release.
  135. - imported Patch1 from rawhide.
  136. * Wed Apr 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.8-1
  137. - new upstream release.
  138. * Mon Mar 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.7-1
  139. - new upstream release.
  140. * Sun Oct 20 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.5-1
  141. - new upstream release.
  142. * Fri Jan 12 2018 Toshiaki Ara <ara_t@384.jp> - 5.6.3-1
  143. - update to 5.6.3
  144. - drop Patch50 (fixed in 5.6.3)
  145. * Mon Jul 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.1.1-1
  146. - new upstream release.
  147. - initial build for Vine Linux.
  148. * Wed Jun 15 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.1-3
  149. - drop pkgconfig-style Qt5 deps
  150. * Wed Jun 15 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.1-2
  151. - BR: qt5-qtbase-private-devel, nullptr el6 FTBFS
  152. * Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
  153. - Update to 5.6.1
  154. * Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
  155. - rebuild
  156. * Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
  157. - rebuild
  158. * Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
  159. - 5.6.0 final release
  160. * Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.8.rc
  161. - Update to final RC
  162. * Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.7
  163. - Update RC release
  164. * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.6.beta
  165. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  166. * Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.5.beta
  167. - update source URL, use %%license, BR: cmake
  168. * Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.4
  169. - Update to final beta release
  170. * Fri Dec 11 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-0.3
  171. - include BR: qt5-qdoc only in -doc subpkg
  172. - restore bootstrap macro support
  173. - make openal support unconditional (#1069231)
  174. * Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.2
  175. - Official beta release
  176. * Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
  177. - Start to implement 5.6.0 beta
  178. * Mon Oct 26 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.1-4
  179. - pull in upstream fixes, QTBUG-48939 in particular
  180. * Thu Oct 22 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.1-3
  181. - drop gst support on el6 (QTBUG-48939)
  182. * Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
  183. - Update to final release 5.5.1
  184. * Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
  185. - Update to Qt 5.5.1 RC1
  186. * Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
  187. - -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping
  188. * Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
  189. - tighten qtbase dep (#1233829)
  190. * Wed Jul 1 2015 Helio Chissini de Castro <helio@kde.org> 5.5.0-1
  191. - New final upstream release Qt 5.5.0
  192. * Wed Jun 24 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc
  193. - Update for official RC1 released packages
  194. * Wed Jun 17 2015 Daniel Vrátil <dvratil@redhat.com> - 5.5.0-0.1.rc
  195. - Qt 5.5.0 RC1
  196. * Wed Jun 03 2015 Jan Grulich <jgrulich@redhat.com> - 5.4.2-1
  197. - 5.4.2
  198. * Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.4.1-3
  199. - Rebuilt for GCC 5 C++11 ABI change
  200. * Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.1-2
  201. - rebuild (gcc5)
  202. * Tue Feb 24 2015 Jan Grulich <jgrulich@redhat.com> 5.4.1-1
  203. - 5.4.1
  204. * Thu Dec 11 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
  205. - 5.4.0 (final) + backported gst1 support from dev/ branch
  206. * Tue Nov 18 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.20141118.gst1
  207. - wip/gstreamer1 snapshot (#1149885)
  208. * Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
  209. - out-of-tree build, use %%qmake_qt5
  210. * Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta
  211. - 5.4.0-beta
  212. * Wed Sep 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 5.3.2-1
  213. - 5.3.2
  214. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2.1
  215. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  216. * Thu Jul 17 2014 Rex Dieter <rdieter@fedoraproject.org> 5.3.1-1.1
  217. - rebuild (for pulseaudio, bug #1117683)
  218. * Tue Jun 17 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.1-1
  219. - 5.3.1
  220. * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
  221. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  222. * Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> 5.3.0-1
  223. - 5.3.0
  224. * Mon May 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-2
  225. - use standard (same as qtbase) .prl sanitation
  226. * Wed Feb 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
  227. - 5.2.1
  228. * Mon Jan 27 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-3
  229. - build -examples only if supported
  230. * Sun Jan 26 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2
  231. - -examples subpkg
  232. * Thu Dec 12 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1
  233. - 5.2.0
  234. * Mon Dec 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.10.rc1
  235. - 5.2.0-rc1
  236. * Sun Nov 10 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.4.beta1
  237. - rebuild (arm/qreal)
  238. * Thu Oct 24 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.3.beta1
  239. - 5.2.0-beta1
  240. * Wed Oct 16 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.2.alpha
  241. - bootstrap ppc
  242. * Wed Oct 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.1.alpha
  243. - 5.2.0-alpha
  244. - -doc subpkg
  245. * Sat Sep 07 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-2
  246. - ExclusiveArch: %%{ix86} x86_64 %%{arm} (to match qt5-qtdeclarative)
  247. * Thu Aug 29 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-1
  248. - 5.1.1
  249. * Wed Aug 28 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-3
  250. - update Source URL (and refetch tarball)
  251. - improved summary/description
  252. * Thu May 09 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-2
  253. - BR: qt5-qtdeclarative-devel
  254. * Thu Apr 11 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-1
  255. - 5.0.2
  256. * Sat Feb 23 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.1-1
  257. - first try