qt5-qtmultimedia-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  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.1
  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. * Mon Jul 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.1.1-1
  156. - new upstream release.
  157. - initial build for Vine Linux.
  158. * Wed Jun 15 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.1-3
  159. - drop pkgconfig-style Qt5 deps
  160. * Wed Jun 15 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.1-2
  161. - BR: qt5-qtbase-private-devel, nullptr el6 FTBFS
  162. * Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
  163. - Update to 5.6.1
  164. * Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
  165. - rebuild
  166. * Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
  167. - rebuild
  168. * Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
  169. - 5.6.0 final release
  170. * Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.8.rc
  171. - Update to final RC
  172. * Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.7
  173. - Update RC release
  174. * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.6.beta
  175. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  176. * Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.5.beta
  177. - update source URL, use %%license, BR: cmake
  178. * Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.4
  179. - Update to final beta release
  180. * Fri Dec 11 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-0.3
  181. - include BR: qt5-qdoc only in -doc subpkg
  182. - restore bootstrap macro support
  183. - make openal support unconditional (#1069231)
  184. * Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.2
  185. - Official beta release
  186. * Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
  187. - Start to implement 5.6.0 beta
  188. * Mon Oct 26 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.1-4
  189. - pull in upstream fixes, QTBUG-48939 in particular
  190. * Thu Oct 22 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.1-3
  191. - drop gst support on el6 (QTBUG-48939)
  192. * Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
  193. - Update to final release 5.5.1
  194. * Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
  195. - Update to Qt 5.5.1 RC1
  196. * Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
  197. - -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping
  198. * Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
  199. - tighten qtbase dep (#1233829)
  200. * Wed Jul 1 2015 Helio Chissini de Castro <helio@kde.org> 5.5.0-1
  201. - New final upstream release Qt 5.5.0
  202. * Wed Jun 24 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc
  203. - Update for official RC1 released packages
  204. * Wed Jun 17 2015 Daniel Vrátil <dvratil@redhat.com> - 5.5.0-0.1.rc
  205. - Qt 5.5.0 RC1
  206. * Wed Jun 03 2015 Jan Grulich <jgrulich@redhat.com> - 5.4.2-1
  207. - 5.4.2
  208. * Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.4.1-3
  209. - Rebuilt for GCC 5 C++11 ABI change
  210. * Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.1-2
  211. - rebuild (gcc5)
  212. * Tue Feb 24 2015 Jan Grulich <jgrulich@redhat.com> 5.4.1-1
  213. - 5.4.1
  214. * Thu Dec 11 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
  215. - 5.4.0 (final) + backported gst1 support from dev/ branch
  216. * Tue Nov 18 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.20141118.gst1
  217. - wip/gstreamer1 snapshot (#1149885)
  218. * Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
  219. - out-of-tree build, use %%qmake_qt5
  220. * Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta
  221. - 5.4.0-beta
  222. * Wed Sep 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 5.3.2-1
  223. - 5.3.2
  224. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2.1
  225. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  226. * Thu Jul 17 2014 Rex Dieter <rdieter@fedoraproject.org> 5.3.1-1.1
  227. - rebuild (for pulseaudio, bug #1117683)
  228. * Tue Jun 17 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.1-1
  229. - 5.3.1
  230. * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
  231. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  232. * Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> 5.3.0-1
  233. - 5.3.0
  234. * Mon May 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-2
  235. - use standard (same as qtbase) .prl sanitation
  236. * Wed Feb 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
  237. - 5.2.1
  238. * Mon Jan 27 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-3
  239. - build -examples only if supported
  240. * Sun Jan 26 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2
  241. - -examples subpkg
  242. * Thu Dec 12 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1
  243. - 5.2.0
  244. * Mon Dec 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.10.rc1
  245. - 5.2.0-rc1
  246. * Sun Nov 10 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.4.beta1
  247. - rebuild (arm/qreal)
  248. * Thu Oct 24 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.3.beta1
  249. - 5.2.0-beta1
  250. * Wed Oct 16 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.2.alpha
  251. - bootstrap ppc
  252. * Wed Oct 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.1.alpha
  253. - 5.2.0-alpha
  254. - -doc subpkg
  255. * Sat Sep 07 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-2
  256. - ExclusiveArch: %%{ix86} x86_64 %%{arm} (to match qt5-qtdeclarative)
  257. * Thu Aug 29 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-1
  258. - 5.1.1
  259. * Wed Aug 28 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-3
  260. - update Source URL (and refetch tarball)
  261. - improved summary/description
  262. * Thu May 09 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-2
  263. - BR: qt5-qtdeclarative-devel
  264. * Thu Apr 11 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-1
  265. - 5.0.2
  266. * Sat Feb 23 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.1-1
  267. - first try