qt5-qtmultimedia-vl.spec 11 KB

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