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}
67045f6
Version:        5.15.9
67045f6
Release:        1%{?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
fc5f1ce
Source0:        http://download.qt.io/%{?pre:development}%{?!pre:official}_releases/qt/%{release_version}/%{version}%{?pre:-%pre}/submodules/%{qt_module}-everywhere-opensource-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
b9afa90
# Win32
1403c1a
%files -n mingw32-qt5-%{qt_module}
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/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/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
1403c1a
%files -n mingw64-qt5-%{qt_module}
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/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/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
67045f6
* Thu Apr 13 2023 Sandro Mani <manisandro@gmail.com> - 5.15.9-1
67045f6
- Update to 5.15.9
67045f6
79e3a69
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.8-2
79e3a69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
79e3a69
aeb96ca
* Mon Jan 09 2023 Sandro Mani <manisandro@gmail.com> - 5.15.8-1
aeb96ca
- Update to 5.15.8
aeb96ca
8cf2763
* Fri Nov 04 2022 Sandro Mani <manisandro@gmail.com> - 5.15.7-1
8cf2763
- Update to 5.15.7
8cf2763
6e0320f
* Thu Sep 22 2022 Sandro Mani <manisandro@gmail.com> - 5.15.6-1
6e0320f
- Update to 5.15.6
6e0320f
6af6bd8
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.5-2
6af6bd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
6af6bd8
f7fa54e
* Thu Jul 14 2022 Sandro Mani <manisandro@gmail.com> - 5.15.5-1
f7fa54e
- Update to 5.15.5
f7fa54e
fe957c8
* Sat May 21 2022 Sandro Mani <manisandro@gmail.com> - 5.15.4-1
fe957c8
- Update to 5.15.4
fe957c8
272fd81
* Fri Mar 25 2022 Sandro Mani <manisandro@gmail.com> - 5.15.3-2
272fd81
- Rebuild with mingw-gcc-12
272fd81
60a536b
* Tue Mar 15 2022 Sandro Mani <manisandro@gmail.com> - 5.15.3-1
60a536b
- Update to 5.15.3
60a536b
1e004cf
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.2-4
1e004cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1e004cf
e991f25
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.2-3
e991f25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
e991f25
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)