qt5-qtquickcontrols2-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. %global qt_module qtquickcontrols2
  2. %define docs 1
  3. #define prerelease
  4. %global qt5_minorver 5.6
  5. %global qt5_version 5.6.3
  6. #global qt5_patchlevel 1
  7. Name: qt5-%{qt_module}
  8. Summary: Qt5 - module with set of QtQuick controls for embedded
  9. Version: %{qt5_version}%{?qt5_patchlevel:.%{qt5_patchlevel}}
  10. Release: 1%{?_dist_release}
  11. License: GPLv2+ or LGPLv3 and GFDL
  12. Url: http://www.qt.io
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. 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
  16. BuildRequires: qt5-qtbase-devel >= %{version}
  17. BuildRequires: qt5-qtbase-static >= %{version}
  18. BuildRequires: qt5-qtbase-private-devel
  19. %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
  20. BuildRequires: qt5-qtdeclarative-private-devel
  21. %{?_qt5:Requires: qt5-qtdeclarative%{?_isa} = %{_qt5_version}}
  22. %{?_qt5:Requires: qt5-qtgraphicaleffects%{?_isa} = %{_qt5_version}}
  23. %description
  24. The Qt Labs Controls module provides a set of controls that can be used to
  25. build complete interfaces in Qt Quick.
  26. Unlike Qt Quick Controls, these controls are optimized for embedded systems
  27. and so are preferred for hardware with limited resources.
  28. %if 0%{?docs}
  29. %package doc
  30. Summary: API documentation for %{name}
  31. License: GFDL
  32. Requires: %{name} = %{version}-%{release}
  33. BuildRequires: qt5-qdoc
  34. BuildRequires: qt5-qhelpgenerator
  35. BuildArch: noarch
  36. %description doc
  37. %{summary}.
  38. %endif
  39. %package devel
  40. Summary: Development files for %{name}
  41. Requires: %{name}%{?_isa} = %{version}-%{release}
  42. Requires: qt5-qtbase-devel%{?_isa}
  43. Requires: qt5-qtdeclarative-devel%{?_isa}
  44. %description devel
  45. %{summary}.
  46. %package static
  47. Summary: Static library files for %{name}
  48. Requires: %{name}-devel%{?_isa} = %{version}-%{release}
  49. %description static
  50. %{summary}.
  51. %package examples
  52. Summary: Examples for %{name}
  53. Requires: %{name}%{?_isa} = %{version}-%{release}
  54. %description examples
  55. %{summary}.
  56. %prep
  57. %setup -q -n %{qt_module}-opensource-src-%{qt5_version}
  58. %if 0%{?prerelease}
  59. syncqt.pl -version %{version}
  60. %endif
  61. %build
  62. mkdir %{_target_platform}
  63. pushd %{_target_platform}
  64. %{qmake_qt5} ..
  65. make %{?_smp_mflags}
  66. %if 0%{?docs}
  67. make %{?_smp_mflags} docs
  68. %endif
  69. popd
  70. %install
  71. make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
  72. %if 0%{?docs}
  73. make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform}
  74. %endif
  75. ## .prl/.la file love
  76. # nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
  77. pushd %{buildroot}%{_qt5_libdir}
  78. for prl_file in libQt5*.prl ; do
  79. sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  80. if [ -f "$(basename ${prl_file} .prl).so" ]; then
  81. rm -fv "$(basename ${prl_file} .prl).la"
  82. sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  83. fi
  84. done
  85. popd
  86. # Remove .la leftovers
  87. rm -f %{buildroot}%{_qt5_libdir}/libQt5*.la
  88. %post -p /sbin/ldconfig
  89. %postun -p /sbin/ldconfig
  90. %files
  91. %license LICENSE.FDL LICENSE.LGPLv3 LICENSE.GPLv3
  92. %{_qt5_archdatadir}/qml/Qt/labs/calendar/
  93. %{_qt5_archdatadir}/qml/Qt/labs/controls/
  94. %{_qt5_archdatadir}/qml/Qt/labs/templates/
  95. %{_qt5_libdir}/libQt5LabsTemplates.so.5*
  96. %if 0%{?docs}
  97. %files doc
  98. %license LICENSE.FDL LICENSE.LGPLv3 LICENSE.GPLv3
  99. %dir %{_qt5_docdir}/qtlabscontrols/
  100. %{_qt5_docdir}/qtlabscontrols/*
  101. %{_qt5_docdir}/qtlabscontrols.qch
  102. %endif
  103. %files devel
  104. %{_qt5_headerdir}/QtLabsControls/
  105. %{_qt5_headerdir}/QtLabsTemplates/
  106. %{_qt5_libdir}/libQt5LabsControls.prl
  107. %{_qt5_libdir}/libQt5LabsTemplates.prl
  108. %{_qt5_libdir}/libQt5LabsTemplates.so
  109. %{_qt5_archdatadir}/mkspecs/modules/qt_lib_labs*_private.pri
  110. %files static
  111. %{_qt5_libdir}/libQt5LabsControls.a
  112. %files examples
  113. %{_qt5_examplesdir}/quickcontrols2/
  114. %changelog
  115. * Fri Jan 12 2018 Toshiaki Ara <ara_t@384.jp> - 5.6.3-1
  116. - update to 5.6.3
  117. * Mon Jul 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.1.1-1
  118. - new upstream release.
  119. - initial build for Vine Linux.
  120. * Sat Jun 11 2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> - 5.6.1-2
  121. - Add qt5-qtgraphicaleffects dependency
  122. * Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
  123. - Update to 5.6.1
  124. * Sun Apr 17 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-4
  125. - BR: qt5-qtbase-private-devel qt5-qtdeclarative-private-devel
  126. * Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
  127. - rebuild
  128. * Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
  129. - rebuild
  130. * Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org>
  131. - 5.6.0 final release
  132. * Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
  133. - 5.6.0 final release
  134. * Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.4.rc
  135. - Update to final RC
  136. * Thu Feb 18 2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> - 5.6.0-0.3.rc
  137. - Update to rc
  138. * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.2.beta
  139. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  140. * Fri Jan 15 2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> - 5.6.0-0.1.beta
  141. - Initial packaging