b6f81c8
%{?mingw_package_header}
14c5d0d
14c5d0d
%global qt_module qtimageformats
c126b21
#global pre beta
14c5d0d
27029a6
#global commit a0ec617b21d9ce0c562e8e7c0dc59bc4d08c509b
27029a6
#global shortcommit %(c=%{commit}; echo ${c:0:7})
14c5d0d
27029a6
%if 0%{?commit:1}
27029a6
%global source_folder %{qt_module}-%{commit}
14c5d0d
%else
c126b21
%global source_folder %{qt_module}-everywhere-src-%{version}%{?pre:-%{pre}}
14c5d0d
%endif
14c5d0d
cea157a
# first two digits of version
cea157a
%global release_version %(echo %{version} | awk -F. '{print $1"."$2}')
cea157a
14c5d0d
Name:           mingw-qt5-%{qt_module}
eb8fb37
Version:        5.10.1
eb8fb37
Release:        1%{?pre:.%{pre}}%{?snapshot_date:.git%{snapshot_date}.%{snapshot_rev}}%{?dist}
14c5d0d
Summary:        Qt5 for Windows - QtImageFormats component
14c5d0d
14c5d0d
License:        GPLv3 with exceptions or LGPLv2 with exceptions
27029a6
URL:            http://qt.io/
14c5d0d
27029a6
%if 0%{?commit:1}
c126b21
Source0:        https://github.com/qt/%{qt_module}/archive/%{commit}/%{qt_module}-everywhere-src-%{commit}.tar.gz
14c5d0d
%else
c126b21
Source0:        http://download.qt-project.org/%{?pre:development}%{?!pre:official}_releases/qt/%{release_version}/%{version}%{?pre:-%pre}/submodules/%{qt_module}-everywhere-src-%{version}%{?pre:-%pre}.tar.xz
14c5d0d
%endif
14c5d0d
14c5d0d
BuildArch:      noarch
14c5d0d
14c5d0d
BuildRequires:  mingw32-filesystem >= 96
f4554fd
BuildRequires:  mingw32-qt5-qtbase >= 5.6.0
d349738
BuildRequires:  mingw32-libwebp
d349738
BuildRequires:  mingw32-libtiff
d349738
BuildRequires:  mingw32-jasper
14c5d0d
14c5d0d
BuildRequires:  mingw64-filesystem >= 96
f4554fd
BuildRequires:  mingw64-qt5-qtbase >= 5.6.0
9c61ddc
BuildRequires:  mingw64-libwebp
9c61ddc
BuildRequires:  mingw64-libtiff
9c61ddc
BuildRequires:  mingw64-jasper
14c5d0d
14c5d0d
14c5d0d
%description
14c5d0d
This package contains the Qt software toolkit for developing
14c5d0d
cross-platform applications.
14c5d0d
14c5d0d
This is the Windows version of Qt, for use in conjunction with the
14c5d0d
Fedora Windows cross-compiler.
14c5d0d
14c5d0d
14c5d0d
# Win32
14c5d0d
%package -n mingw32-qt5-%{qt_module}
14c5d0d
Summary:        Qt5 for Windows - QtImageFormats component
14c5d0d
14c5d0d
%description -n mingw32-qt5-%{qt_module}
14c5d0d
This package contains the Qt software toolkit for developing
14c5d0d
cross-platform applications.
14c5d0d
14c5d0d
This is the Windows version of Qt, for use in conjunction with the
14c5d0d
Fedora Windows cross-compiler.
14c5d0d
14c5d0d
14c5d0d
# Win64
14c5d0d
%package -n mingw64-qt5-%{qt_module}
14c5d0d
Summary:        Qt5 for Windows - QtImageFormats component
14c5d0d
14c5d0d
%description -n mingw64-qt5-%{qt_module}
14c5d0d
This package contains the Qt software toolkit for developing
14c5d0d
cross-platform applications.
14c5d0d
14c5d0d
This is the Windows version of Qt, for use in conjunction with the
14c5d0d
Fedora Windows cross-compiler.
14c5d0d
14c5d0d
b6f81c8
%{?mingw_debug_package}
14c5d0d
14c5d0d
14c5d0d
%prep
b6f81c8
%autosetup -p1 -n %{source_folder}
27029a6
%if 0%{?commit:1}
27029a6
# Make sure the syncqt tool is run when using a git snapshot
27029a6
mkdir .git
27029a6
%endif
14c5d0d
14c5d0d
14c5d0d
%build
14c5d0d
%mingw_qmake_qt5 ../%{qt_module}.pro
14c5d0d
%mingw_make %{?_smp_mflags}
14c5d0d
14c5d0d
14c5d0d
%install
27029a6
%mingw_make install INSTALL_ROOT=%{buildroot}
14c5d0d
14c5d0d
14c5d0d
# Win32
14c5d0d
%files -n mingw32-qt5-%{qt_module}
87c559e
%license LICENSE.LGPL* LICENSE.GPL* LGPL_EXCEPTION.txt
2ee4c02
%{mingw32_libdir}/qt5/plugins/imageformats/qicns.dll
2ee4c02
%{mingw32_libdir}/qt5/plugins/imageformats/qjp2.dll
14c5d0d
%{mingw32_libdir}/qt5/plugins/imageformats/qtga.dll
14c5d0d
%{mingw32_libdir}/qt5/plugins/imageformats/qtiff.dll
14c5d0d
%{mingw32_libdir}/qt5/plugins/imageformats/qwbmp.dll
2ee4c02
%{mingw32_libdir}/qt5/plugins/imageformats/qwebp.dll
2ee4c02
%{mingw32_libdir}/cmake/Qt5Gui/Qt5Gui_QICNSPlugin.cmake
2ee4c02
%{mingw32_libdir}/cmake/Qt5Gui/Qt5Gui_QJp2Plugin.cmake
45b9440
%{mingw32_libdir}/cmake/Qt5Gui/Qt5Gui_QTgaPlugin.cmake
45b9440
%{mingw32_libdir}/cmake/Qt5Gui/Qt5Gui_QTiffPlugin.cmake
45b9440
%{mingw32_libdir}/cmake/Qt5Gui/Qt5Gui_QWbmpPlugin.cmake
2ee4c02
%{mingw32_libdir}/cmake/Qt5Gui/Qt5Gui_QWebpPlugin.cmake
14c5d0d
14c5d0d
# Win64
14c5d0d
%files -n mingw64-qt5-%{qt_module}
87c559e
%license LICENSE.LGPL* LICENSE.GPL* LGPL_EXCEPTION.txt
2ee4c02
%{mingw64_libdir}/qt5/plugins/imageformats/qicns.dll
2ee4c02
%{mingw64_libdir}/qt5/plugins/imageformats/qjp2.dll
14c5d0d
%{mingw64_libdir}/qt5/plugins/imageformats/qtga.dll
14c5d0d
%{mingw64_libdir}/qt5/plugins/imageformats/qtiff.dll
14c5d0d
%{mingw64_libdir}/qt5/plugins/imageformats/qwbmp.dll
2ee4c02
%{mingw64_libdir}/qt5/plugins/imageformats/qwebp.dll
2ee4c02
%{mingw64_libdir}/cmake/Qt5Gui/Qt5Gui_QICNSPlugin.cmake
2ee4c02
%{mingw64_libdir}/cmake/Qt5Gui/Qt5Gui_QJp2Plugin.cmake
45b9440
%{mingw64_libdir}/cmake/Qt5Gui/Qt5Gui_QTgaPlugin.cmake
45b9440
%{mingw64_libdir}/cmake/Qt5Gui/Qt5Gui_QTiffPlugin.cmake
45b9440
%{mingw64_libdir}/cmake/Qt5Gui/Qt5Gui_QWbmpPlugin.cmake
2ee4c02
%{mingw64_libdir}/cmake/Qt5Gui/Qt5Gui_QWebpPlugin.cmake
14c5d0d
14c5d0d
14c5d0d
%changelog
eb8fb37
* Thu Feb 15 2018 Sandro Mani <manisandro@gmail.com> - 5.10.1-1
eb8fb37
- Update to 5.10.1
eb8fb37
cb9d43c
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.10.0-2
cb9d43c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cb9d43c
c126b21
* Wed Dec 20 2017 Sandro Mani <manisandro@gmail.com> - 5.10.0-1
c126b21
- Update to 5.10.0
c126b21
d585ad9
* Mon Nov 27 2017 Sandro Mani <manisandro@gmail.com> - 5.9.3-1
d585ad9
- Update to 5.9.3
d585ad9
f591075
* Tue Oct 10 2017 Sandro Mani <manisandro@gmail.com> - 5.9.2-1
f591075
- Update to 5.9.2
f591075
8687737
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.1-2
8687737
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8687737
87c559e
* Fri Jun 30 2017 Sandro Mani <manisandro@gmail.com> - 5.9.1-1
87c559e
- Update to 5.9.1
87c559e
87c559e
* Wed Jun 28 2017 Sandro Mani <manisandro@gmail.com> - 5.9.0-1
87c559e
- Update to 5.9.0
87c559e
b39ecff
* Tue May 09 2017 Sandro Mani <manisandro@gmail.com> - 5.8.0-2
b39ecff
- Rebuild for dropped 0022-Allow-usage-of-static-version-with-CMake.patch in qtbase
b39ecff
27029a6
* Thu May 04 2017 Sandro Mani <manisandro@gmail.com> - 5.8.0-1
27029a6
- Update to 5.8.0
27029a6
dfbfd2e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.7.1-2
dfbfd2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
dfbfd2e
b6f81c8
* Sat Feb 04 2017 Sandro Mani <manisandro@gmail.com> - 5.7.1-1
b6f81c8
- Update to 5.7.1
b6f81c8
41f8840
* Wed Feb 01 2017 Sandro Mani <manisandro@gmail.com> - 5.6.0-3
41f8840
- Rebuild (libwebp)
41f8840
9d4c54d
* Wed Nov 23 2016 Michael Cronenworth <mike@cchtml.com> - 5.6.0-2
9d4c54d
- Rebuilt for mingw-jasper update
9d4c54d
f4554fd
* Sun Apr 10 2016 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.6.0-1
f4554fd
- Update to 5.6.0
f4554fd
377d731
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-2
377d731
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
377d731
c4b4818
* Wed Dec 30 2015 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.5.1-1
c4b4818
- Update to 5.5.1
c4b4818
cd4d9d0
* Fri Aug  7 2015 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.5.0-1
cd4d9d0
- Update to 5.5.0
cd4d9d0
c0a0297
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4.1-2
c0a0297
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c0a0297
f5c2bc7
* Sun Mar 22 2015 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.4.1-1
f5c2bc7
- Update to 5.4.1
f5c2bc7
477e953
* Thu Jan  1 2015 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.4.0-1
477e953
- Update to 5.4.0
477e953
891a144
* Sat Sep 20 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.3.2-1
891a144
- Update to 5.3.2
891a144
496e59c
* Tue Jul  8 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.3.1-1
496e59c
- Update to 5.3.1
496e59c
1814d65
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
1814d65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1814d65
2ee4c02
* Sun May 25 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.3.0-1
2ee4c02
- Update to 5.3.0
2ee4c02
4c57811
* Sat Feb  8 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.2.1-1
4c57811
- Update to 5.2.1
4c57811
141639f
* Sun Jan  5 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.2.0-1
141639f
- Update to 5.2.0
141639f
45b9440
* Fri Nov 29 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.2.0-0.1.rc1
45b9440
- Update to 5.2.0 RC1
45b9440
4235783
* Sat Sep  7 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.1.1-1
4235783
- Update to 5.1.1
4235783
d053072
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.0-2
d053072
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d053072
cea157a
* Sun Jul 14 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.1.0-1
cea157a
- Update to 5.1.0
cea157a
14c5d0d
* Sun Jun  2 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.2-2
14c5d0d
- Added license files
14c5d0d
14c5d0d
* Fri May 10 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.2-1
14c5d0d
- Update to 5.0.2
14c5d0d
14c5d0d
* Sat Feb  9 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.1-1
14c5d0d
- Update to 5.0.1
14c5d0d
14c5d0d
* Fri Jan 11 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.0-1
14c5d0d
- Update to Qt 5.0.0 Final
14c5d0d
14c5d0d
* Mon Nov 12 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.0-0.2.beta1.git20121112.a0ec617b
14c5d0d
- Update to 20121112 snapshot (rev a0ec617b)
14c5d0d
- Rebuild against latest mingw-qt5-qtbase
14c5d0d
- Dropped pkg-config rename hack as it's unneeded now
14c5d0d
- Dropped upstreamed patch
14c5d0d
14c5d0d
* Mon Sep 10 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.0-0.1.beta1
14c5d0d
- Initial release
14c5d0d