qt5-qtquick1-vl.spec 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. %global qt_module qtquick1
  2. %global commit0 92c847e56d94c9032f3fa83922742e455233e4f3
  3. %global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
  4. Summary: A declarative language for describing user interfaces in Qt5
  5. Name: qt5-%{qt_module}
  6. Version: 5.6.3
  7. #Release: 2.%{?shortcommit0}git%{?dist}
  8. Release: 1%{_dist_release}
  9. # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
  10. License: LGPLv2 with exceptions or GPLv3 with exceptions
  11. Url: http://www.qt.io
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. # The source for this package was pulled from upstream's vcs. Use the
  15. # following commands to generate the tarball:
  16. # git clone git@github.com:qtproject/qtquick1.git && cd qtquick1
  17. # git archive --prefix=qtquick1-opensource-src-5.6.1/ origin/5.6.1 | tar -x -C ..
  18. # cd ../qtquick1-opensource-src-5.6.1 && syncqt.pl -version 5.6.1 && cd ..
  19. # tar cfJ qt5-qtquick1-opensource-src-5.6.1.tar.xz qtquick1-opensource-src-5.6.1/
  20. #Source0: %{qt_module}-opensource-src-%{version}-%{shortcommit0}.tar.xz
  21. Source0: %{qt_module}-opensource-src-%{version}.tar.xz
  22. BuildRequires: cmake
  23. BuildRequires: qt5-qtbase-devel >= %{version}
  24. BuildRequires: qt5-qtscript-devel >= %{version}
  25. BuildRequires: qt5-qttools-devel
  26. BuildRequires: qt5-qtwebkit-devel
  27. BuildRequires: qt5-qtxmlpatterns-devel
  28. BuildRequires: qt5-qtbase-private-devel
  29. %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
  30. BuildRequires: qt5-qtscript-private-devel
  31. %{?_qt5:Requires: qt5-qtscript%{?_isa} = %{_qt5_version}}
  32. %description
  33. Qt Quick is a collection of technologies that are designed to help
  34. developers create the kind of intuitive, modern, fluid user interfaces
  35. that are increasingly used on mobile phones, media players, set-top
  36. boxes and other portable devices.
  37. Qt Quick consists of a rich set of user interface elements, a declarative
  38. language for describing user interfaces and a language runtime. A
  39. collection of C++ APIs is used to integrate these high level features
  40. with classic Qt applications.
  41. %package devel
  42. Summary: Development files for %{name}
  43. Requires: %{name}%{?_isa} = %{version}-%{release}
  44. Requires: qt5-qtbase-devel%{?_isa}
  45. %description devel
  46. %{summary}.
  47. %package examples
  48. Summary: Programming examples for %{name}
  49. Requires: %{name}%{?_isa} = %{version}-%{release}
  50. %description examples
  51. %{summary}.
  52. %prep
  53. %autosetup -n %{qt_module}-opensource-src-%{version}
  54. %build
  55. mkdir %{_target_platform}
  56. pushd %{_target_platform}
  57. %{qmake_qt5} ..
  58. make %{?_smp_mflags}
  59. %install
  60. make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
  61. # hardlink files to %{_bindir}, add -qt5 postfix to not conflict
  62. mkdir %{buildroot}%{_bindir}
  63. pushd %{buildroot}%{_qt5_bindir}
  64. for i in * ; do
  65. case "${i}" in
  66. # qt4 conflicts
  67. qmlviewer)
  68. ln -v ${i} %{buildroot}%{_bindir}/${i}-qt5
  69. ln -sv ${i} ${i}-qt5
  70. ;;
  71. # stuff handled by qtchooser
  72. qml1plugindump)
  73. ln -v ${i} %{buildroot}%{_bindir}/${i}
  74. ln -v ${i} %{buildroot}%{_bindir}/${i}-qt5
  75. ln -sv ${i} ${i}-qt5
  76. ;;
  77. *)
  78. ln -v ${i} %{buildroot}%{_bindir}/${i}
  79. ;;
  80. esac
  81. done
  82. popd
  83. ## .prl/.la file love
  84. # nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
  85. pushd %{buildroot}%{_qt5_libdir}
  86. for prl_file in libQt5*.prl ; do
  87. sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  88. if [ -f "$(basename ${prl_file} .prl).so" ]; then
  89. rm -fv "$(basename ${prl_file} .prl).la"
  90. sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  91. fi
  92. done
  93. popd
  94. %post -p /sbin/ldconfig
  95. %postun -p /sbin/ldconfig
  96. %files
  97. %license LICENSE.LGPL* LGPL_EXCEPTION.txt
  98. %{_qt5_libdir}/libQt5Declarative.so.5*
  99. %{_qt5_importdir}/Qt/
  100. %{_qt5_importdir}/QtWebKit/
  101. %{_qt5_importdir}/builtins.qmltypes
  102. %{_qt5_plugindir}/designer/*.so
  103. %{_qt5_plugindir}/qml1tooling/
  104. %dir %{_qt5_libdir}/cmake/Qt5Declarative/
  105. %{_qt5_libdir}/cmake/Qt5Declarative/Qt5Declarative_QTcpServerConnection.cmake
  106. %{_qt5_libdir}/cmake/Qt5Declarative/Qt5Declarative_QtQuick1Plugin.cmake
  107. %dir %{_qt5_libdir}/cmake/Qt5Designer/
  108. %{_qt5_libdir}/cmake/Qt5Designer/Qt5Designer_QDeclarativeViewPlugin.cmake
  109. %files devel
  110. %{_qt5_bindir}/qml1plugindump*
  111. %{_qt5_bindir}/qmlviewer*
  112. %{_bindir}/qml1plugindump*
  113. %{_bindir}/qmlviewer*
  114. %{_qt5_headerdir}/QtDeclarative/
  115. %{_qt5_libdir}/libQt5Declarative.so
  116. %{_qt5_libdir}/libQt5Declarative.prl
  117. %{_qt5_libdir}/cmake/Qt5Declarative/Qt5DeclarativeConfig*.cmake
  118. %{_qt5_libdir}/pkgconfig/Qt5Declarative.pc
  119. %{_qt5_archdatadir}/mkspecs/modules/qt_lib_declarative*.pri
  120. %if 0%{?_qt5_examplesdir:1}
  121. %files examples
  122. %{_qt5_examplesdir}/declarative/
  123. %endif
  124. %changelog
  125. * Fri Jan 26 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.3-1
  126. - new upstream release.
  127. * Mon Jul 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.1-2.92c847egit
  128. - initial build for Vine Linux.
  129. * Fri Jun 10 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.1-1.92c847egit
  130. - 5.6.1 branch snapshot
  131. * Fri Jun 10 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.0-5
  132. - Rebuild (qt5-qtbase)
  133. * Sun Apr 17 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-4
  134. - BR: qt5-qtbase-private-devel qt5-qtscript-private-devel
  135. * Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
  136. - rebuild
  137. * Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
  138. - rebuild
  139. * Wed Mar 16 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.8.rc
  140. - 5.6.0 final release
  141. * Sun Feb 21 2016 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.7.rc
  142. - rebuild
  143. * Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.6
  144. - Update RC release
  145. * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.5.beta1
  146. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  147. * Thu Jan 21 2016 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.4.beta1
  148. - fix Sources
  149. * Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.3.beta
  150. - use %%license, clarify no -docs, BR: cmake
  151. * Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.2
  152. - Official beta release
  153. * Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
  154. - Start to implement 5.6.0 beta
  155. * Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
  156. - Update to final release 5.5.1
  157. * Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
  158. - Update to Qt 5.5.1 RC1
  159. * Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
  160. - -docs: BuildRequires: qt5-qhelpgenerator
  161. * Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
  162. - tighten deps (#1233829)
  163. * Wed Jul 1 2015 Helio Chissini de Castro <helio@kde.org> 5.5.0-1
  164. - New final upstream release Qt 5.5.0
  165. * Wed Jun 17 2015 Daniel Vrátil <dvratil@redhat.com> - 5.5.0-0.1.rc
  166. - Qt 5.5.0 RC1
  167. * Thu Jun 04 2015 Jan Grulich <jgrulich@redhat.com> - 5.4.2-1
  168. - 5.4.2
  169. * Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.4.1-3
  170. - Rebuilt for GCC 5 C++11 ABI change
  171. * Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.1-2
  172. - rebuild (gcc5)
  173. * Tue Feb 24 2015 Jan Grulich <jgrulich@redhat.com> 5.4.1-1
  174. - 5.4.1
  175. * Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
  176. - 5.4.0 (final)
  177. * Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc
  178. - 5.4.0-rc
  179. * Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
  180. - out-of-tree build, use %%qmake_qt5
  181. * Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta
  182. - 5.4.0-beta
  183. * Wed Sep 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 5.3.2-1
  184. - 5.3.2
  185. * Tue Sep 16 2014 Rex Dieter <rdieter@fedoraproject.org>
  186. - 5.3.1-3
  187. - move qml1plugindump, qmlviewer to -devel
  188. - qml1plugindump-qt5 wrapper (since qtchooser can handle it)
  189. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2
  190. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  191. * Tue Jun 17 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.1-1
  192. - 5.3.1
  193. * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
  194. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  195. * Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> 5.3.0-1
  196. - 5.3.0
  197. * Mon May 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-2
  198. - use standard (same as qtbase) .prl sanitation
  199. * Wed Feb 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
  200. - 5.2.1
  201. * Mon Jan 27 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2
  202. - -examples subpkg
  203. * Thu Dec 12 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1
  204. - 5.2.0
  205. * Mon Dec 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.10.rc1
  206. - 5.2.0-rc1
  207. * Sun Nov 10 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.5.beta1
  208. - rebuild (arm/qreal)
  209. * Thu Oct 24 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.4.beta1
  210. - 5.2.0-beta1
  211. * Wed Oct 16 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.3.alpha
  212. - ppc bootstrap
  213. * Wed Oct 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.2.alpha
  214. - nix -doc (no content)
  215. * Wed Oct 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.1.alpha
  216. - 5.2.0-alpha
  217. - -doc subpkg
  218. * Mon Sep 16 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-2
  219. - %%doc LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt
  220. - escape macros in comments
  221. - better %%description/%%summary
  222. * Tue Sep 03 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-1
  223. - 5.1.1
  224. * Thu May 09 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-2
  225. - fix qmlviewer conflict with qt4
  226. * Thu Apr 11 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-1
  227. - 5.0.2
  228. * Sat Feb 23 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.1-1
  229. - first try