qt5-qtimageformats-vl.spec 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. %global qt_module qtimageformats
  2. %define docs 1
  3. # where to enable webp support
  4. %if 0%{?fedora} || 0%{?rhel} > 6
  5. %global webp 1
  6. %endif
  7. #define prerelease
  8. %global qt5_minorver 5.6
  9. %global qt5_version 5.6.1
  10. %global qt5_patchlevel 1
  11. Summary: Qt5 - QtImageFormats component
  12. Name: qt5-%{qt_module}
  13. Version: %{qt5_version}%{?qt5_patchlevel:.%{qt5_patchlevel}}
  14. Release: 1%{?_dist_release}
  15. # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for details
  16. License: LGPLv2 with exceptions or GPLv3 with exceptions
  17. Url: http://www.qt.io
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. 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
  21. BuildRequires: qt5-qtbase-devel >= %{version}
  22. BuildRequires: libmng-devel
  23. BuildRequires: libtiff-devel
  24. BuildRequires: jasper-devel
  25. %if 0%{?webp}
  26. BuildRequires: libwebp-devel
  27. %else
  28. Provides: bundled(libwebp)
  29. %endif
  30. # prior -devel subpkg contained only runtime cmake bits
  31. Obsoletes: qt5-qtimageformats-devel < 5.4.0
  32. Provides: qt5-qtimageformats-devel = %{version}-%{release}
  33. %{?_qt5_version:Requires: qt5-qtbase%{?_isa} >= %{_qt5_version}}
  34. %description
  35. The core Qt Gui library by default supports reading and writing image
  36. files of the most common file formats: PNG, JPEG, BMP, GIF and a few more,
  37. ref. Reading and Writing Image Files. The Qt Image Formats add-on module
  38. provides optional support for other image file formats, including:
  39. MNG, TGA, TIFF, WBMP.
  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. %prep
  52. %setup -q -n %{qt_module}-opensource-src-%{qt5_version}
  53. %if 0%{?webp}
  54. rm -rv src/3rdparty
  55. %endif
  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. make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
  67. %if 0%{?docs}
  68. make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform}
  69. %endif
  70. %files
  71. %license LGPL_EXCEPTION.txt LICENSE.GPL* LICENSE.LGPL*
  72. %{_qt5_plugindir}/imageformats/libqmng.so
  73. %{_qt5_plugindir}/imageformats/libqtga.so
  74. %{_qt5_plugindir}/imageformats/libqtiff.so
  75. %{_qt5_plugindir}/imageformats/libqwbmp.so
  76. %{_qt5_plugindir}/imageformats/libqdds.so
  77. %{_qt5_plugindir}/imageformats/libqicns.so
  78. %{_qt5_plugindir}/imageformats/libqjp2.so
  79. %{_qt5_plugindir}/imageformats/libqwebp.so
  80. %{_qt5_libdir}/cmake/Qt5Gui/Qt5Gui_*Plugin.cmake
  81. %if 0%{?docs}
  82. %files doc
  83. %license LICENSE.FDL
  84. %{_qt5_docdir}/qtimageformats.qch
  85. %{_qt5_docdir}/qtimageformats/
  86. %endif
  87. %changelog
  88. * Mon Jul 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.1.1-1
  89. - new upstream release.
  90. - initial build for Vine Linux.
  91. * Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
  92. - Update to 5.6.1
  93. * Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
  94. - rebuild
  95. * Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
  96. - rebuild
  97. * Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
  98. - 5.6.0 final release
  99. * Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.7.rc
  100. - Update to final RC
  101. * Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.6
  102. - Update RC release
  103. * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.5.beta
  104. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  105. * Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.4.beta
  106. - update source URL, use %%license
  107. * Mon Dec 28 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 5.6.0-0.3
  108. - Rebuilt for libwebp soname bump
  109. * Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.2
  110. - Official beta release
  111. * Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
  112. - Start to implement 5.6.0 beta
  113. * Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
  114. - Update to final release 5.5.1
  115. * Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
  116. - Update to Qt 5.5.1 RC1
  117. * Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
  118. - -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping
  119. * Wed Jun 24 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc
  120. - Update for official RC1 released packages
  121. * Wed Jun 17 2015 Daniel Vrátil <dvratil@redhat.com> - 5.5.0-0.1.rc
  122. - Qt 5.5.0 RC1
  123. * Wed Jun 03 2015 Jan Grulich <jgrulich@redhat.com> 5.4.2-1
  124. - 5.4.2
  125. * Sat May 23 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.1-4
  126. - Provides: qt5-qtimageformat-devel
  127. * Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.4.1-3
  128. - Rebuilt for GCC 5 C++11 ABI change
  129. * Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.1-2
  130. - rebuild (gcc5)
  131. * Tue Feb 24 2015 Jan Grulich <jgrulich@redhat.com> 5.4.1-1
  132. - 5.4.1
  133. * Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
  134. - 5.4.0 (final)
  135. * Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc
  136. - 5.4.0-rc
  137. * Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
  138. - out-of-tree build, use %%qmake_qt5
  139. * Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta
  140. - 5.4.0-beta, Obsoletes: qt5-qtimageformats-devel
  141. * Wed Sep 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 5.3.2-1
  142. - 5.3.2
  143. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2
  144. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  145. * Tue Jun 17 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.1-1
  146. - 5.3.1
  147. * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
  148. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  149. * Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.0-1
  150. - 5.3.0
  151. * Tue Mar 18 2014 Ville Skyttä <ville.skytta@iki.fi> - 5.2.1-2
  152. - Fix libmng test, build with system one instead of bundled
  153. * Wed Feb 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
  154. - 5.2.1
  155. * Thu Dec 12 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1
  156. - 5.2.0
  157. * Mon Dec 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.10.rc1
  158. - 5.2.0-rc1
  159. * Sun Nov 10 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.4.beta1
  160. - rebuild (arm/qreal)
  161. * Thu Oct 24 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.3.beta1
  162. - 5.2.0-beta1
  163. * Thu Oct 24 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.2.alpha
  164. - ppc bootstrap
  165. * Wed Oct 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.1.alpha
  166. - 5.2.0-alpha
  167. - -devel subpkg
  168. - -doc subpkg
  169. * Fri Aug 30 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-1
  170. - 5.1.1
  171. * Wed Aug 28 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-2
  172. - update Source URL
  173. - include license files
  174. - improved description
  175. * Thu Apr 11 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-1
  176. - 5.0.2
  177. * Sat Feb 23 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.1-1
  178. - first try