Blame mingw-qt5-qtquickcontrols2.spec

b9afa90
%?mingw_package_header
b9afa90
b9afa90
%global qt_module qtquickcontrols2
b9afa90
#global pre beta
b9afa90
b9afa90
#global commit 9f085b889524a80d4064d6ac01dbdc817bb31060
b9afa90
#global shortcommit %(c=%{commit}; echo ${c:0:7})
b9afa90
b9afa90
%if 0%{?commit:1}
b9afa90
%global source_folder %{qt_module}-%{commit}
b9afa90
%else
b9afa90
%global source_folder %{qt_module}-everywhere-src-%{version}%{?pre:-%{pre}}
b9afa90
%endif
b9afa90
b9afa90
# first two digits of version
b9afa90
%define release_version %(echo %{version} | awk -F. '{print $1"."$2}')
b9afa90
b9afa90
Name:           mingw-qt5-%{qt_module}
4a7051c
Version:        5.15.2
4256440
Release:        2%{?dist}
b9afa90
Summary:        Qt5 for Windows - QtQuickControls2 component
b9afa90
b9afa90
License:        GPLv3 with exceptions or LGPLv2 with exceptions
b9afa90
URL:            http://qt.io/
b9afa90
b9afa90
%if 0%{?commit:1}
b9afa90
Source0:        https://github.com/qt/%{qt_module}/archive/%{commit}/%{qt_module}-everywhere-src-%{commit}.tar.gz
b9afa90
%else
b9afa90
Source0:        http://download.qt.io/%{?pre:development}%{?!pre:official}_releases/qt/%{release_version}/%{version}%{?pre:-%pre}/submodules/%{qt_module}-everywhere-src-%{version}%{?pre:-%pre}.tar.xz
b9afa90
%endif
b9afa90
b9afa90
BuildArch:      noarch
b9afa90
56aad03
BuildRequires: make
b9afa90
BuildRequires:  mingw32-filesystem >= 96
b9afa90
BuildRequires:  mingw32-gcc-c++
b9afa90
BuildRequires:  mingw32-qt5-qtbase = %{version}
b9afa90
BuildRequires:  mingw32-qt5-qtdeclarative = %{version}
b9afa90
BuildRequires:  mingw32-qt5-qmldevtools-devel = %{version}
b9afa90
b9afa90
BuildRequires:  mingw64-filesystem >= 96
b9afa90
BuildRequires:  mingw64-gcc-c++
b9afa90
BuildRequires:  mingw64-qt5-qtbase = %{version}
b9afa90
BuildRequires:  mingw64-qt5-qtdeclarative = %{version}
b9afa90
BuildRequires:  mingw64-qt5-qmldevtools-devel = %{version}
b9afa90
b9afa90
b9afa90
%description
b9afa90
This package contains the Qt software toolkit for developing
b9afa90
cross-platform applications.
b9afa90
b9afa90
This is the Windows version of Qt, for use in conjunction with the
b9afa90
Fedora Windows cross-compiler.
b9afa90
b9afa90
b9afa90
# Win32
b9afa90
%package -n mingw32-qt5-%{qt_module}
b9afa90
Summary:        Qt5 for Windows - QtQuickControls2 component
b9afa90
Requires:       mingw32-qt5-qtdeclarative
b9afa90
b9afa90
%description -n mingw32-qt5-%{qt_module}
b9afa90
This package contains the Qt software toolkit for developing
b9afa90
cross-platform applications.
b9afa90
b9afa90
This is the Windows version of Qt, for use in conjunction with the
b9afa90
Fedora Windows cross-compiler.
b9afa90
b9afa90
%package -n mingw32-qt5-%{qt_module}-static
b9afa90
Summary:       Static version of the mingw32-qt5-qtquickcontrols2 library
b9afa90
Requires:      mingw32-qt5-%{qt_module} = %{version}-%{release}
b9afa90
Requires:      mingw32-qt5-qtbase-static
b9afa90
Requires:      mingw32-qt5-qtdeclarative-static
b9afa90
b9afa90
%description -n mingw32-qt5-%{qt_module}-static
b9afa90
Static version of the mingw32-qt5-qtquickcontrols2 library.
b9afa90
b9afa90
# Win64
b9afa90
%package -n mingw64-qt5-%{qt_module}
b9afa90
Summary:        Qt5 for Windows - QtQuickControls2 component
b9afa90
Requires:       mingw64-qt5-qtdeclarative
b9afa90
b9afa90
%description -n mingw64-qt5-%{qt_module}
b9afa90
This package contains the Qt software toolkit for developing
b9afa90
cross-platform applications.
b9afa90
b9afa90
This is the Windows version of Qt, for use in conjunction with the
b9afa90
Fedora Windows cross-compiler.
b9afa90
b9afa90
%package -n mingw64-qt5-%{qt_module}-static
b9afa90
Summary:       Static version of the mingw64-qt5-qtquickcontrols2 library
b9afa90
Requires:      mingw64-qt5-%{qt_module} = %{version}-%{release}
b9afa90
Requires:      mingw64-qt5-qtbase-static
b9afa90
Requires:      mingw64-qt5-qtdeclarative-static
b9afa90
b9afa90
%description -n mingw64-qt5-%{qt_module}-static
b9afa90
Static version of the mingw64-qt5-qtquickcontrols2 library.
b9afa90
b9afa90
b9afa90
%{?mingw_debug_package}
b9afa90
b9afa90
b9afa90
%prep
b9afa90
%autosetup -p1 -n %{source_folder}
b9afa90
%if 0%{?commit:1}
b9afa90
# Make sure the syncqt tool is run when using a git snapshot
b9afa90
mkdir .git
b9afa90
%endif
b9afa90
b9afa90
b9afa90
%build
b9afa90
MINGW_BUILDDIR_SUFFIX=_static %mingw_qmake_qt5 ../%{qt_module}.pro CONFIG+=static
00a1b99
MINGW_BUILDDIR_SUFFIX=_static %mingw_make_build
b9afa90
b9afa90
MINGW_BUILDDIR_SUFFIX=_shared %mingw_qmake_qt5 ../%{qt_module}.pro CONFIG+=shared
00a1b99
MINGW_BUILDDIR_SUFFIX=_shared %mingw_make_build
b9afa90
b9afa90
b9afa90
%install
b9afa90
MINGW_BUILDDIR_SUFFIX=_static %mingw_make install INSTALL_ROOT=%{buildroot}
b9afa90
MINGW_BUILDDIR_SUFFIX=_shared %mingw_make install INSTALL_ROOT=%{buildroot}
b9afa90
b9afa90
# Remove .la leftovers
b9afa90
rm -f %{buildroot}%{_qt5_libdir}/libQt5*.la
b9afa90
b9afa90
# Create a list of .dll.debug files which need to be excluded from the main packages
b9afa90
# We do this to keep the %%files section as clean/readable as possible (otherwise every
b9afa90
# single file and directory would have to be mentioned individually in the %%files section)
b9afa90
# Note: the .dll.debug files aren't created yet at this point (as it happens after
b9afa90
# the %%install section). Therefore we have to assume that all .dll files will
b9afa90
# eventually get a .dll.debug counterpart
b9afa90
find %{buildroot}%{mingw32_prefix} | grep .dll | grep -v .dll.a | sed s@"^%{buildroot}"@"%%exclude "@ | sed s/".dll\$"/".dll.debug"/ > mingw32-qt5-%{qt_module}.excludes
b9afa90
find %{buildroot}%{mingw64_prefix} | grep .dll | grep -v .dll.a | sed s@"^%{buildroot}"@"%%exclude "@ | sed s/".dll\$"/".dll.debug"/ > mingw64-qt5-%{qt_module}.excludes
b9afa90
b9afa90
b9afa90
# Win32
b9afa90
%files -n mingw32-qt5-%{qt_module} -f mingw32-qt5-%{qt_module}.excludes
b9afa90
%license LICENSE.LGPL* LICENSE.GPL*
b9afa90
%{mingw32_bindir}/Qt5QuickControls2.dll
b9afa90
%{mingw32_bindir}/Qt5QuickTemplates2.dll
b9afa90
%{mingw32_libdir}/Qt5QuickControls2.prl
b9afa90
%{mingw32_libdir}/Qt5QuickTemplates2.prl
b9afa90
%{mingw32_libdir}/qt5/qml/Qt/labs/calendar
b9afa90
%{mingw32_libdir}/qt5/qml/Qt/labs/platform
b9afa90
%{mingw32_libdir}/qt5/qml/QtQuick/Controls.2/
b9afa90
%{mingw32_libdir}/qt5/qml/QtQuick/Templates.2/
b9afa90
%{mingw32_includedir}/qt5/QtQuickControls2/
b9afa90
%{mingw32_includedir}/qt5/QtQuickTemplates2/
b9afa90
%{mingw32_libdir}/cmake/Qt5QuickControls2
b9afa90
%{mingw32_libdir}/cmake/Qt5QuickTemplates2
b9afa90
%{mingw32_libdir}/pkgconfig/*.pc
b9afa90
%{mingw32_datadir}/qt5/mkspecs/modules/
b9afa90
%exclude %{mingw32_libdir}/qt5/qml/Qt/labs/calendar/libqtlabscalendarplugin.a
b9afa90
%exclude %{mingw32_libdir}/qt5/qml/Qt/labs/calendar/libqtlabscalendarplugin.a
b9afa90
%exclude %{mingw32_libdir}/qt5/qml/QtQuick/Controls.2/Fusion/libqtquickcontrols2fusionstyleplugin.a
b9afa90
%exclude %{mingw32_libdir}/qt5/qml/QtQuick/Controls.2/Imagine/libqtquickcontrols2imaginestyleplugin.a
b9afa90
%exclude %{mingw32_libdir}/qt5/qml/QtQuick/Controls.2/Material/libqtquickcontrols2materialstyleplugin.a
b9afa90
%exclude %{mingw32_libdir}/qt5/qml/QtQuick/Controls.2/Universal/libqtquickcontrols2universalstyleplugin.a
b9afa90
%exclude %{mingw32_libdir}/qt5/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.a
b9afa90
%exclude %{mingw32_libdir}/qt5/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.a
b9afa90
b9afa90
%files -n mingw32-qt5-%{qt_module}-static
b9afa90
%{mingw32_libdir}/libQt5QuickControls2.a
b9afa90
%{mingw32_libdir}/libQt5QuickControls2.dll.a
b9afa90
%{mingw32_libdir}/libQt5QuickTemplates2.a
b9afa90
%{mingw32_libdir}/libQt5QuickTemplates2.dll.a
b9afa90
%{mingw32_libdir}/qt5/qml/Qt/labs/calendar/libqtlabscalendarplugin.a
b9afa90
%{mingw32_libdir}/qt5/qml/Qt/labs/platform/libqtlabsplatformplugin.a
b9afa90
%{mingw32_libdir}/qt5/qml/QtQuick/Controls.2/Fusion/libqtquickcontrols2fusionstyleplugin.a
b9afa90
%{mingw32_libdir}/qt5/qml/QtQuick/Controls.2/Imagine/libqtquickcontrols2imaginestyleplugin.a
b9afa90
%{mingw32_libdir}/qt5/qml/QtQuick/Controls.2/Material/libqtquickcontrols2materialstyleplugin.a
b9afa90
%{mingw32_libdir}/qt5/qml/QtQuick/Controls.2/Universal/libqtquickcontrols2universalstyleplugin.a
b9afa90
%{mingw32_libdir}/qt5/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.a
b9afa90
%{mingw32_libdir}/qt5/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.a
b9afa90
b9afa90
# Win64
b9afa90
%files -n mingw64-qt5-%{qt_module} -f mingw64-qt5-%{qt_module}.excludes
b9afa90
%license LICENSE.LGPL* LICENSE.GPL*
b9afa90
%{mingw64_bindir}/Qt5QuickControls2.dll
b9afa90
%{mingw64_bindir}/Qt5QuickTemplates2.dll
b9afa90
%{mingw64_libdir}/qt5/qml/Qt/labs/calendar
b9afa90
%{mingw64_libdir}/qt5/qml/Qt/labs/platform
b9afa90
%{mingw64_libdir}/qt5/qml/QtQuick/Controls.2/
b9afa90
%{mingw64_libdir}/qt5/qml/QtQuick/Templates.2/
b9afa90
%{mingw64_includedir}/qt5/QtQuickControls2/
b9afa90
%{mingw64_includedir}/qt5/QtQuickTemplates2/
b9afa90
%{mingw64_libdir}/Qt5QuickControls2.prl
b9afa90
%{mingw64_libdir}/Qt5QuickTemplates2.prl
b9afa90
%{mingw64_libdir}/cmake/Qt5QuickControls2
b9afa90
%{mingw64_libdir}/cmake/Qt5QuickTemplates2
b9afa90
%{mingw64_libdir}/pkgconfig/*.pc
b9afa90
%{mingw64_datadir}/qt5/mkspecs/modules/
b9afa90
%exclude %{mingw64_libdir}/qt5/qml/Qt/labs/calendar/libqtlabscalendarplugin.a
b9afa90
%exclude %{mingw64_libdir}/qt5/qml/Qt/labs/calendar/libqtlabscalendarplugin.a
b9afa90
%exclude %{mingw64_libdir}/qt5/qml/QtQuick/Controls.2/Fusion/libqtquickcontrols2fusionstyleplugin.a
b9afa90
%exclude %{mingw64_libdir}/qt5/qml/QtQuick/Controls.2/Imagine/libqtquickcontrols2imaginestyleplugin.a
b9afa90
%exclude %{mingw64_libdir}/qt5/qml/QtQuick/Controls.2/Material/libqtquickcontrols2materialstyleplugin.a
b9afa90
%exclude %{mingw64_libdir}/qt5/qml/QtQuick/Controls.2/Universal/libqtquickcontrols2universalstyleplugin.a
b9afa90
%exclude %{mingw64_libdir}/qt5/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.a
b9afa90
%exclude %{mingw64_libdir}/qt5/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.a
b9afa90
b9afa90
%files -n mingw64-qt5-%{qt_module}-static
b9afa90
%{mingw64_libdir}/libQt5QuickControls2.a
b9afa90
%{mingw64_libdir}/libQt5QuickControls2.dll.a
b9afa90
%{mingw64_libdir}/libQt5QuickTemplates2.a
b9afa90
%{mingw64_libdir}/libQt5QuickTemplates2.dll.a
b9afa90
%{mingw64_libdir}/qt5/qml/Qt/labs/calendar/libqtlabscalendarplugin.a
b9afa90
%{mingw64_libdir}/qt5/qml/Qt/labs/platform/libqtlabsplatformplugin.a
b9afa90
%{mingw64_libdir}/qt5/qml/QtQuick/Controls.2/Fusion/libqtquickcontrols2fusionstyleplugin.a
b9afa90
%{mingw64_libdir}/qt5/qml/QtQuick/Controls.2/Imagine/libqtquickcontrols2imaginestyleplugin.a
b9afa90
%{mingw64_libdir}/qt5/qml/QtQuick/Controls.2/Material/libqtquickcontrols2materialstyleplugin.a
b9afa90
%{mingw64_libdir}/qt5/qml/QtQuick/Controls.2/Universal/libqtquickcontrols2universalstyleplugin.a
b9afa90
%{mingw64_libdir}/qt5/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.a
b9afa90
%{mingw64_libdir}/qt5/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.a
b9afa90
b9afa90
%changelog
4256440
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.2-2
4256440
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4256440
4a7051c
* Mon Nov 23 18:36:49 CET 2020 Sandro Mani <manisandro@gmail.com> - 5.15.2-1
4a7051c
- Update to 5.15.2
4a7051c
b9afa90
* Mon Nov 2 2020 Jan Grulich <Jan Grulich> - 5.15.1-1
b9afa90
- Initial release (5.15.1)