qt5-qtquick1-vl.spec 9.0 KB

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