162cecd
%{?mingw_package_header}
5f09a55
5f09a55
%global qt_module qtlocation
774d592
#%%global pre rc1
5f09a55
334ccf9
#global commit f28408346243cf090326f4738fd838219c21e00f
334ccf9
#global shortcommit %(c=%{commit}; echo ${c:0:7})
5f09a55
334ccf9
%if 0%{?commit:1}
334ccf9
%global source_folder %{qt_module}-%{commit}
5f09a55
%else
5f09a55
%global source_folder %{qt_module}-opensource-src-%{version}%{?pre:-%{pre}}
5f09a55
%endif
5f09a55
78e6409
# first two digits of version
78e6409
%global release_version %(echo %{version} | awk -F. '{print $1"."$2}')
78e6409
5f09a55
Name:           mingw-qt5-%{qt_module}
c2fc2d6
Version:        5.9.6
c2fc2d6
Release:        1%{?dist}
5f09a55
Summary:        Qt5 for Windows - QtLocation component
5f09a55
162cecd
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
5f09a55
License:        GPLv3 with exceptions or LGPLv2 with exceptions
334ccf9
URL:            http://qt.io/
5f09a55
334ccf9
%if 0%{?commit:1}
334ccf9
Source0:        https://github.com/qt/%{qt_module}/archive/%{commit}/%{qt_module}-opensource-src-%{commit}.tar.gz
5f09a55
%else
eb00db7
Source0:        http://download.qt.io/%{?pre:development}%{?!pre:official}_releases/qt/%{release_version}/%{version}%{?pre:-%pre}/submodules/%{qt_module}-opensource-src-%{version}%{?pre:-%pre}.tar.xz
5f09a55
%endif
5f09a55
5f09a55
BuildArch:      noarch
5f09a55
5f09a55
BuildRequires:  mingw32-filesystem >= 96
605d704
BuildRequires:  mingw32-angleproject
334ccf9
BuildRequires:  mingw32-qt5-qtbase = %{version}
334ccf9
BuildRequires:  mingw32-qt5-qtdeclarative = %{version}
5f09a55
5f09a55
BuildRequires:  mingw64-filesystem >= 96
605d704
BuildRequires:  mingw64-angleproject
334ccf9
BuildRequires:  mingw64-qt5-qtbase = %{version}
334ccf9
BuildRequires:  mingw64-qt5-qtdeclarative = %{version}
5f09a55
5f09a55
5f09a55
%description
5f09a55
This package contains the Qt software toolkit for developing
5f09a55
cross-platform applications.
5f09a55
5f09a55
This is the Windows version of Qt, for use in conjunction with the
5f09a55
Fedora Windows cross-compiler.
5f09a55
5f09a55
5f09a55
# Win32
5f09a55
%package -n mingw32-qt5-%{qt_module}
5f09a55
Summary:        Qt5 for Windows - QtLocation component
5f09a55
5f09a55
%description -n mingw32-qt5-%{qt_module}
5f09a55
This package contains the Qt software toolkit for developing
5f09a55
cross-platform applications.
5f09a55
5f09a55
This is the Windows version of Qt, for use in conjunction with the
5f09a55
Fedora Windows cross-compiler.
5f09a55
5f09a55
5f09a55
# Win64
5f09a55
%package -n mingw64-qt5-%{qt_module}
5f09a55
Summary:        Qt5 for Windows - QtLocation component
5f09a55
5f09a55
%description -n mingw64-qt5-%{qt_module}
5f09a55
This package contains the Qt software toolkit for developing
5f09a55
cross-platform applications.
5f09a55
5f09a55
This is the Windows version of Qt, for use in conjunction with the
5f09a55
Fedora Windows cross-compiler.
5f09a55
5f09a55
162cecd
%{?mingw_debug_package}
5f09a55
5f09a55
5f09a55
%prep
162cecd
%autosetup -p1 -n %{source_folder}
334ccf9
%if 0%{?commit:1}
334ccf9
# Make sure the syncqt tool is run when using a git snapshot
5f09a55
mkdir .git
5f09a55
%endif
5f09a55
5f09a55
5f09a55
%build
5f09a55
%mingw_qmake_qt5 ../%{qt_module}.pro
5f09a55
%mingw_make %{?_smp_mflags}
5f09a55
5f09a55
5f09a55
%install
162cecd
%mingw_make install INSTALL_ROOT=%{buildroot}
5f09a55
5f09a55
# .prl files aren't interesting for us
162cecd
find %{buildroot} -name "*.prl" -delete
5f09a55
50c4a00
# Create a list of .dll.debug files which need to be excluded from the main packages
50c4a00
# We do this to keep the %%files section as clean/readable as possible (otherwise every
50c4a00
# single file and directory would have to be mentioned individually in the %%files section)
50c4a00
# Note: the .dll.debug files aren't created yet at this point (as it happens after
50c4a00
# the %%install section). Therefore we have to assume that all .dll files will
50c4a00
# eventually get a .dll.debug counterpart
162cecd
find %{buildroot}%{mingw32_prefix} | grep .dll | grep -v .dll.a | sed s@"^%{buildroot}"@"%%exclude "@ | sed s/".dll\$"/".dll.debug"/ > mingw32-qt5-%{qt_module}.excludes
162cecd
find %{buildroot}%{mingw64_prefix} | grep .dll | grep -v .dll.a | sed s@"^%{buildroot}"@"%%exclude "@ | sed s/".dll\$"/".dll.debug"/ > mingw64-qt5-%{qt_module}.excludes
50c4a00
5f09a55
5f09a55
# Win32
50c4a00
%files -n mingw32-qt5-%{qt_module} -f mingw32-qt5-%{qt_module}.excludes
605d704
%license LICENSE.LGPL* LICENSE.GPL* LGPL_EXCEPTION.txt
78e6409
%{mingw32_bindir}/Qt5Location.dll
78e6409
%{mingw32_bindir}/Qt5Positioning.dll
5f09a55
%{mingw32_includedir}/qt5/QtLocation/
78e6409
%{mingw32_includedir}/qt5/QtPositioning/
78e6409
%{mingw32_libdir}/libQt5Location.dll.a
78e6409
%{mingw32_libdir}/libQt5Positioning.dll.a
5f09a55
%{mingw32_libdir}/cmake/Qt5Location/
78e6409
%{mingw32_libdir}/cmake/Qt5Positioning/
78e6409
%{mingw32_libdir}/pkgconfig/Qt5Location.pc
78e6409
%{mingw32_libdir}/pkgconfig/Qt5Positioning.pc
78e6409
%{mingw32_libdir}/qt5/plugins/geoservices/
78e6409
%{mingw32_libdir}/qt5/plugins/position/
605d704
%{mingw32_libdir}/qt5/qml/QtLocation/
605d704
%{mingw32_libdir}/qt5/qml/QtPositioning/
5f09a55
%{mingw32_datadir}/qt5/mkspecs/modules/qt_lib_location.pri
78e6409
%{mingw32_datadir}/qt5/mkspecs/modules/qt_lib_location_private.pri
78e6409
%{mingw32_datadir}/qt5/mkspecs/modules/qt_lib_positioning.pri
78e6409
%{mingw32_datadir}/qt5/mkspecs/modules/qt_lib_positioning_private.pri
5f09a55
5f09a55
# Win64
50c4a00
%files -n mingw64-qt5-%{qt_module} -f mingw64-qt5-%{qt_module}.excludes
605d704
%license LICENSE.LGPL* LICENSE.GPL* LGPL_EXCEPTION.txt
78e6409
%{mingw64_bindir}/Qt5Location.dll
78e6409
%{mingw64_bindir}/Qt5Positioning.dll
5f09a55
%{mingw64_includedir}/qt5/QtLocation/
78e6409
%{mingw64_includedir}/qt5/QtPositioning/
78e6409
%{mingw64_libdir}/libQt5Location.dll.a
78e6409
%{mingw64_libdir}/libQt5Positioning.dll.a
5f09a55
%{mingw64_libdir}/cmake/Qt5Location/
78e6409
%{mingw64_libdir}/cmake/Qt5Positioning/
78e6409
%{mingw64_libdir}/pkgconfig/Qt5Location.pc
78e6409
%{mingw64_libdir}/pkgconfig/Qt5Positioning.pc
78e6409
%{mingw64_libdir}/qt5/plugins/geoservices/
78e6409
%{mingw64_libdir}/qt5/plugins/position/
605d704
%{mingw64_libdir}/qt5/qml/QtLocation/
605d704
%{mingw64_libdir}/qt5/qml/QtPositioning/
5f09a55
%{mingw64_datadir}/qt5/mkspecs/modules/qt_lib_location.pri
78e6409
%{mingw64_datadir}/qt5/mkspecs/modules/qt_lib_location_private.pri
78e6409
%{mingw64_datadir}/qt5/mkspecs/modules/qt_lib_positioning.pri
78e6409
%{mingw64_datadir}/qt5/mkspecs/modules/qt_lib_positioning_private.pri
5f09a55
5f09a55
5f09a55
%changelog
c2fc2d6
* Wed Jun 13 2018 Sandro Mani <manisandro@gmail.com> - 5.9.6-1
c2fc2d6
- Update to 5.9.6
c2fc2d6
2f5a115
* Mon Jan 29 2018 Sandro Mani <manisandro@gmail.com> - 5.9.4-1
2f5a115
- Update to 5.9.4
2f5a115
f24625a
* Mon Nov 27 2017 Sandro Mani <manisandro@gmail.com> - 5.9.3-1
f24625a
- Update to 5.9.3
f24625a
38df136
* Wed Oct 11 2017 Sandro Mani <manisandro@gmail.com> - 5.9.2-1
38df136
- Update to 5.9.2
38df136
26736f9
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.1-2
26736f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
26736f9
605d704
* Fri Jun 30 2017 Sandro Mani <manisandro@gmail.com> - 5.9.1-1
605d704
- Update to 5.9.1
605d704
605d704
* Wed Jun 28 2017 Sandro Mani <manisandro@gmail.com> - 5.9.0-1
605d704
- Update to 5.9.0
605d704
5cf8864
* Tue May 09 2017 Sandro Mani <manisandro@gmail.com> - 5.8.0-2
5cf8864
- Rebuild for dropped 0022-Allow-usage-of-static-version-with-CMake.patch in qtbase
5cf8864
334ccf9
* Thu May 04 2017 Sandro Mani <manisandro@gmail.com> - 5.8.0-1
334ccf9
- Update to 5.8.0
334ccf9
7ca1701
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.7.1-2
7ca1701
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7ca1701
162cecd
* Sat Feb 04 2017 Sandro Mani <manisandro@gmail.com> - 5.7.1-1
162cecd
- Update to 5.7.1
162cecd
11b7420
* Thu Apr  7 2016 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.6.0-1
11b7420
- Update to 5.6.0
11b7420
2dc7d8c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-2
2dc7d8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2dc7d8c
308d8cf
* Wed Dec 30 2015 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.5.1-1
308d8cf
- Update to 5.5.1
308d8cf
fd1ebd9
* Fri Aug  7 2015 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.5.0-1
fd1ebd9
- Update to 5.5.0
fd1ebd9
- Removed BR: mingw{32,64}-qt5-qt3d as it is unneeded
eea1810
- Added BR: mingw{32,64}-qt5-qtquick1 which in fact is needed
fd1ebd9
daf3c4a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4.1-2
daf3c4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
daf3c4a
76d6db9
* Sun Mar 22 2015 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.4.1-1
76d6db9
- Update to 5.4.1
76d6db9
2ec2175
* Tue Dec 30 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.4.0-1
2ec2175
- Update to 5.4.0
2ec2175
e04c1bb
* Sat Sep 20 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.3.2-1
e04c1bb
- Update to 5.3.2
e04c1bb
9395235
* Tue Jul  8 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.3.1-1
9395235
- Update to 5.3.1
9395235
8fabb87
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
8fabb87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8fabb87
6810461
* Sun May 25 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.3.0-1
6810461
- Update to 5.3.0
6810461
fc4f70a
* Sun Mar 30 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.2.1-2
fc4f70a
- Make sure we're built against mingw-qt5-qtbase >= 5.2.1 (RHBZ 1077213)
fc4f70a
1e63ce5
* Sat Feb  8 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.2.1-1
1e63ce5
- Update to 5.2.1
1e63ce5
f6b29b4
* Sat Feb  8 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.2.0-4
f6b29b4
- Previous commit caused .dll.a files to disappear
f6b29b4
50c4a00
* Sun Jan 12 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.2.0-3
50c4a00
- Don't carry .dll.debug files in main package
50c4a00
7130eea
* Wed Jan  8 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.2.0-2
7130eea
- Dropped manual rename of import libraries
7130eea
774d592
* Sun Jan  5 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.2.0-1
774d592
- Update to 5.2.0
774d592
78e6409
* Fri Nov 29 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.2.0-0.1.rc1
78e6409
- Update to 5.2.0 RC1
78e6409
5f09a55
* Fri Aug  2 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.0-0.6.git20130510.f2840834
5f09a55
- Dropped reference to unused patch
5f09a55
- Don't bundle .dll.debug files in the main packages
5f09a55
5f09a55
* Thu Jul 18 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.0-0.5.git20130510.f2840834
5f09a55
- Make sure the syncqt tool is run because we're using a git snapshot
5f09a55
5f09a55
* Fri May 10 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.0-0.4.git20130510.f2840834
5f09a55
- Update to 20130510 snapshot (rev f2840834)
5f09a55
5f09a55
* Fri Jan 11 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.0-0.3.git20121112.ac83b242
5f09a55
- Update to ac83b242 snapshot (fixes compatibility with Qt 5.0.0 Final)
5f09a55
5f09a55
* Mon Nov 12 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.0-0.2.beta1.git20121112.8e6b5b08
5f09a55
- Update to 20121112 snapshot (rev 8e6b5b08)
5f09a55
- Rebuild against latest mingw-qt5-qtbase
5f09a55
- Dropped pkg-config rename hack as it's unneeded now
5f09a55
5f09a55
* Wed Sep 12 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.0-0.1.beta1
5f09a55
- Initial release
5f09a55