qt5-qtmultimedia-vl.spec 11 KB

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