qt5-qtxmlpatterns-vl.spec 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. %global qt_module qtxmlpatterns
  2. %define _unpackaged_files_terminate_build 1
  3. # define to build docs, need to undef this for bootstrapping
  4. # where qt5-qttools builds are not yet available
  5. # only primary archs (for now), allow secondary to bootstrap
  6. #global bootstrap 1
  7. %if ! 0%{?bootstrap}
  8. %ifarch %{arm} %{ix86} x86_64
  9. #define docs 1
  10. %endif
  11. %endif
  12. #define prerelease rc
  13. %global qt5_minorver 5.12
  14. %global qt5_version 5.12.8
  15. #global qt5_patchlevel 1
  16. Summary: Qt5 - QtXmlPatterns component
  17. Name: qt5-%{qt_module}
  18. Version: %{qt5_version}%{?qt5_patchlevel:.%{qt5_patchlevel}}
  19. Release: 1%{?_dist_release}
  20. # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
  21. License: LGPLv2 with exceptions or GPLv3 with exceptions
  22. Url: https://www.qt.io/
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. Source0: https://download.qt.io/official_releases/qt/%{qt5_minorver}/%{qt5_version}%{?qt5_patchlevel:-%{qt5_patchlevel}}/submodules/%{qt_module}-everywhere-src-%{qt5_version}%{?qt5_patchlevel:-%{qt5_patchlevel}}.tar.xz
  26. BuildRequires: cmake
  27. BuildRequires: gcc-c++
  28. BuildRequires: qt5-rpm-macros >= %{version}
  29. BuildRequires: qt5-qtbase-devel >= %{version}
  30. %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
  31. %description
  32. The Qt XML Patterns module provides support for XPath, XQuery, XSLT,
  33. and XML Schema validation.
  34. %package devel
  35. Summary: Development files for %{name}
  36. Requires: %{name}%{?_isa} = %{version}-%{release}
  37. Requires: qt5-qtbase-devel%{?_isa}
  38. %description devel
  39. %{summary}.
  40. %if 0%{?docs}
  41. %package doc
  42. Summary: API documentation for %{name}
  43. License: GFDL
  44. Requires: %{name} = %{version}-%{release}
  45. BuildRequires: qt5-qdoc
  46. BuildRequires: qt5-qhelpgenerator
  47. BuildArch: noarch
  48. %description doc
  49. %{summary}.
  50. %endif
  51. %package examples
  52. Summary: Programming examples for %{name}
  53. Requires: %{name}%{?_isa} = %{version}-%{release}
  54. %description examples
  55. %{summary}.
  56. %prep
  57. %setup -q -n %{qt_module}-everywhere-src-%{qt5_version}
  58. %build
  59. mkdir %{_target_platform}
  60. pushd %{_target_platform}
  61. %{qmake_qt5} ..
  62. make %{?_smp_mflags}
  63. %if 0%{?docs}
  64. make %{?_smp_mflags} docs
  65. %endif
  66. popd
  67. %install
  68. rm -rf %{buildroot}
  69. make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
  70. %if 0%{?docs}
  71. make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform}
  72. %endif
  73. # put non-conflicting binaries with -qt5 postfix in {_bindir}
  74. mkdir %{buildroot}%{_bindir}
  75. pushd %{buildroot}%{_qt5_bindir}
  76. for i in * ; do
  77. case "${i}" in
  78. xmlpatterns|xmlpatternsvalidator)
  79. ln -v ${i} %{buildroot}%{_bindir}/${i}-qt5
  80. ln -sv ${i} ${i}-qt5
  81. ;;
  82. *)
  83. ln -v ${i} %{buildroot}%{_bindir}/${i}
  84. ;;
  85. esac
  86. done
  87. popd
  88. ## .prl/.la file love
  89. # nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
  90. pushd %{buildroot}%{_qt5_libdir}
  91. for prl_file in libQt5*.prl ; do
  92. sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  93. if [ -f "$(basename ${prl_file} .prl).so" ]; then
  94. rm -fv "$(basename ${prl_file} .prl).la"
  95. sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  96. fi
  97. done
  98. popd
  99. %post
  100. /sbin/ldconfig
  101. %postun
  102. /sbin/ldconfig
  103. %files
  104. %license LICENSE.LGPL*
  105. %{_qt5_libdir}/libQt5XmlPatterns.so.5*
  106. # consider subpkg to make boostrapping easier? -- rex
  107. %if 0%{?qml}
  108. %{_qt5_archdatadir}/qml/QtQuick/XmlListModel/
  109. %endif
  110. %files devel
  111. %{_qt5_bindir}/xmlpatterns*
  112. %{_bindir}/xmlpatterns*
  113. %{_qt5_headerdir}/Qt*/
  114. %{_qt5_libdir}/libQt5*.so
  115. %{_qt5_libdir}/libQt5*.prl
  116. %{_qt5_libdir}/cmake/Qt5*/
  117. %{_qt5_libdir}/pkgconfig/Qt5*.pc
  118. %{_qt5_archdatadir}/mkspecs/modules/*.pri
  119. %if 0%{?docs}
  120. %files doc
  121. %license LICENSE.FDL
  122. %{_qt5_docdir}/qtxmlpatterns.qch
  123. %{_qt5_docdir}/qtxmlpatterns/
  124. %endif
  125. %if 0%{?_qt5_examplesdir:1}
  126. %files examples
  127. %{_qt5_examplesdir}
  128. %endif
  129. %changelog
  130. * Wed Apr 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.8-1
  131. - new upstream release.
  132. * Mon Mar 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.7-1
  133. - new upstream release.
  134. * Sun Oct 20 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.12.5-1
  135. - new upstream release.
  136. * Tue Jan 09 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.3-1
  137. - new upstream release.
  138. * Sun Jul 10 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.1.1-1
  139. - new upstream release.
  140. - initial build for Vine Linux.
  141. * Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
  142. - Update to 5.6.1
  143. * Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-4
  144. - rebuild
  145. * Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
  146. - de-bootstap
  147. * Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
  148. - rebuild
  149. * Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
  150. - 5.6.0 release
  151. * Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.10.rc
  152. - Update to final RC
  153. * Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.9.rc
  154. - Integrate RC builds.
  155. * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.8.beta
  156. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  157. * Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.7.beta
  158. - update source URL, BR: cmake, use %%license
  159. * Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.6
  160. - Update to final beta release
  161. * Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.5
  162. - Official beta release
  163. * Sat Dec 05 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.4
  164. - (re)enable bootstrap
  165. * Sat Dec 05 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.2
  166. - Beta 2
  167. * Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
  168. - Start to implement 5.6.0 beta
  169. * Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
  170. - Update to final release 5.5.1
  171. * Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
  172. - Update to Qt 5.5.1 RC1
  173. * Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
  174. - -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping
  175. * Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
  176. - tighten qtbase dep (#1233829)
  177. * Wed Jul 1 2015 Helio Chissini de Castro <helio@kde.org> 5.5.0-1
  178. - New final upstream release Qt 5.5.0
  179. * Mon Jun 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.3.rc
  180. - Second round of builds now with bootstrap enabled due new qttools
  181. * Thu Jun 25 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc
  182. - Update for official RC1 released packages
  183. * Wed Jun 17 2015 Daniel Vrátil <dvratil@redhat.com> - 5.5.0-0.1.rc
  184. - Qt 5.5.0 RC1
  185. * Wed Jun 03 2015 Jan Grulich <jgrulich@redhat.com> - 5.4.2-1
  186. - 5.4.2
  187. * Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.4.1-3
  188. - Rebuilt for GCC 5 C++11 ABI change
  189. * Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.1-2
  190. - rebuild (gcc5)
  191. * Tue Feb 24 2015 Jan Grulich <jgrulich@redhat.com> 5.4.1-1
  192. - 5.4.1
  193. * Mon Feb 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-2
  194. - rebuild (gcc5)
  195. * Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
  196. - 5.4.0 (final)
  197. * Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc
  198. - 5.4.0-rc
  199. * Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
  200. - out-of-tree build, use %%qmake_qt5
  201. * Sat Oct 18 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta
  202. - 5.4.0-beta
  203. * Tue Sep 16 2014 Rex Dieter <rdieter@fedoraproject.org> 5.3.2-1
  204. - 5.3.2
  205. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2
  206. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  207. * Tue Jun 17 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.1-1
  208. - 5.3.1
  209. * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
  210. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  211. * Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.0-1
  212. - 5.3.0
  213. * Mon May 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-2
  214. - use standard (same as qtbase) .prl sanitation
  215. * Wed Feb 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
  216. - 5.2.1
  217. * Mon Jan 27 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-3
  218. - -examples subpkg
  219. * Tue Jan 14 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2
  220. - epel7 bootstrapped
  221. * Thu Dec 12 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1
  222. - 5.2.0
  223. * Mon Dec 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.10.rc1
  224. - 5.2.0-rc1
  225. * Sun Nov 10 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.4.beta1
  226. - rebuild (arm/qreal)
  227. * Thu Oct 24 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.3.beta1
  228. - 5.2.0-beta1
  229. * Wed Oct 16 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.2.alpha
  230. - bootstrap ppc
  231. * Wed Oct 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.1.alpha
  232. - 5.2.0-alpha
  233. - -doc subpkg
  234. * Wed Aug 28 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-1
  235. - 5.1.1
  236. * Sat Aug 17 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-2
  237. - %%doc LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt
  238. - update Source URL
  239. * Thu Apr 11 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-1
  240. - 5.0.2
  241. * Sat Feb 23 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.1-1
  242. - first try