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