qt5-qtimageformats-vl.spec 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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.3
  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. * Fri Jan 12 2018 Toshiaki Ara <ara_t@384.jp> - 5.6.3-1
  89. - update to 5.6.3
  90. - delete %%{_qt5_plugindir}/imageformats/libqdds.so
  91. * Mon Jul 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.6.1.1-1
  92. - new upstream release.
  93. - initial build for Vine Linux.
  94. * Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
  95. - Update to 5.6.1
  96. * Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
  97. - rebuild
  98. * Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
  99. - rebuild
  100. * Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
  101. - 5.6.0 final release
  102. * Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.7.rc
  103. - Update to final RC
  104. * Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.6
  105. - Update RC release
  106. * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.5.beta
  107. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  108. * Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.4.beta
  109. - update source URL, use %%license
  110. * Mon Dec 28 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 5.6.0-0.3
  111. - Rebuilt for libwebp soname bump
  112. * Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.2
  113. - Official beta release
  114. * Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
  115. - Start to implement 5.6.0 beta
  116. * Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
  117. - Update to final release 5.5.1
  118. * Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
  119. - Update to Qt 5.5.1 RC1
  120. * Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
  121. - -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping
  122. * Wed Jun 24 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc
  123. - Update for official RC1 released packages
  124. * Wed Jun 17 2015 Daniel Vrátil <dvratil@redhat.com> - 5.5.0-0.1.rc
  125. - Qt 5.5.0 RC1
  126. * Wed Jun 03 2015 Jan Grulich <jgrulich@redhat.com> 5.4.2-1
  127. - 5.4.2
  128. * Sat May 23 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.1-4
  129. - Provides: qt5-qtimageformat-devel
  130. * Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.4.1-3
  131. - Rebuilt for GCC 5 C++11 ABI change
  132. * Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.1-2
  133. - rebuild (gcc5)
  134. * Tue Feb 24 2015 Jan Grulich <jgrulich@redhat.com> 5.4.1-1
  135. - 5.4.1
  136. * Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
  137. - 5.4.0 (final)
  138. * Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc
  139. - 5.4.0-rc
  140. * Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
  141. - out-of-tree build, use %%qmake_qt5
  142. * Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta
  143. - 5.4.0-beta, Obsoletes: qt5-qtimageformats-devel
  144. * Wed Sep 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 5.3.2-1
  145. - 5.3.2
  146. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2
  147. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  148. * Tue Jun 17 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.1-1
  149. - 5.3.1
  150. * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
  151. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  152. * Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.0-1
  153. - 5.3.0
  154. * Tue Mar 18 2014 Ville Skyttä <ville.skytta@iki.fi> - 5.2.1-2
  155. - Fix libmng test, build with system one instead of bundled
  156. * Wed Feb 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
  157. - 5.2.1
  158. * Thu Dec 12 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1
  159. - 5.2.0
  160. * Mon Dec 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.10.rc1
  161. - 5.2.0-rc1
  162. * Sun Nov 10 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.4.beta1
  163. - rebuild (arm/qreal)
  164. * Thu Oct 24 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.3.beta1
  165. - 5.2.0-beta1
  166. * Thu Oct 24 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.2.alpha
  167. - ppc bootstrap
  168. * Wed Oct 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.1.alpha
  169. - 5.2.0-alpha
  170. - -devel subpkg
  171. - -doc subpkg
  172. * Fri Aug 30 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-1
  173. - 5.1.1
  174. * Wed Aug 28 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-2
  175. - update Source URL
  176. - include license files
  177. - improved description
  178. * Thu Apr 11 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-1
  179. - 5.0.2
  180. * Sat Feb 23 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.1-1
  181. - first try