qt5-qtxmlpatterns-vl.spec 8.4 KB

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