qt5/qt5.spec

428 lines
14 KiB
RPMSpec
Raw Normal View History

2020-04-06 15:49:06 +00:00
# include qt5,qt5-devel metapackages or not
# dropped for f32+
%if 0%{?fedora} < 32
%global metapackage 1
%endif
2016-07-15 13:34:36 +00:00
Name: qt5
2024-07-15 09:53:19 +00:00
# This version MUST remain in sync with Qt5 versions!
2024-09-04 08:02:27 +00:00
Version: 5.15.15
Release: 1.0.riscv64%{?dist}
2016-07-15 13:34:36 +00:00
Summary: Qt5 meta package
2023-01-31 11:26:57 +00:00
License: GPL-3.0-only
2024-07-15 09:53:19 +00:00
URL: https://getfedora.org/
2016-07-15 13:34:36 +00:00
Source0: macros.qt5
Source1: macros.qt5-srpm
Source2: qmake-qt5.sh
2017-10-10 14:56:22 +00:00
2016-07-15 13:34:36 +00:00
Requires: qt5-qdbusviewer
Requires: qt5-qt3d
Requires: qt5-qtbase
Requires: qt5-qtbase-gui
Requires: qt5-qtbase-mysql
Requires: qt5-qtbase-postgresql
Requires: qt5-qtconnectivity
Requires: qt5-qtdeclarative
Requires: qt5-qtdoc
Requires: qt5-qtgraphicaleffects
Requires: qt5-qtimageformats
Requires: qt5-qtlocation
Requires: qt5-qtmultimedia
Requires: qt5-qtquickcontrols
Requires: qt5-qtquickcontrols2
Requires: qt5-qtscript
Requires: qt5-qtsensors
Requires: qt5-qtserialport
Requires: qt5-qtsvg
Requires: qt5-qttools
Requires: qt5-qtwayland
Requires: qt5-qtwebchannel
## qtwebengine is not available on all archs, omit for now
## else, need to make qt5 arch'd and deps conditional (on arch)
#Requires: qt5-qtwebengine
2016-07-15 13:34:36 +00:00
Requires: qt5-qtwebsockets
Requires: qt5-qtx11extras
Requires: qt5-qtxmlpatterns
%description
%{summary}.
%package devel
Summary: Qt5 meta devel package
Requires: qt5-rpm-macros
Requires: qt5-qttools-static
Requires: qt5-qtdeclarative-static
Requires: qt5-qtbase-static
Requires: qt5-designer
Requires: qt5-qdoc
Requires: qt5-qhelpgenerator
Requires: qt5-linguist
Requires: qt5-qt3d-devel
Requires: qt5-qtbase-devel
Requires: qt5-qtconnectivity-devel
Requires: qt5-qtdeclarative-devel
Requires: qt5-qtlocation-devel
Requires: qt5-qtmultimedia-devel
Requires: qt5-qtscript-devel
Requires: qt5-qtsensors-devel
Requires: qt5-qtserialport-devel
Requires: qt5-qtsvg-devel
Requires: qt5-qttools-devel
Requires: qt5-qtwayland-devel
Requires: qt5-qtwebchannel-devel
#Requires: qt5-qtwebengine-devel
2016-07-15 13:34:36 +00:00
Requires: qt5-qtwebsockets-devel
Requires: qt5-qtx11extras-devel
Requires: qt5-qtxmlpatterns-devel
%description devel
%{summary}.
%package rpm-macros
Summary: RPM macros for building Qt5 and KDE Frameworks 5 packages
2016-07-15 13:34:36 +00:00
Conflicts: qt5-qtbase-devel < 5.6.0-0.23
2020-08-19 20:43:34 +00:00
%if 0%{?fedora} || 0%{?rhel} >= 8
2016-07-15 13:34:36 +00:00
Requires: cmake >= 3
2020-08-19 20:43:34 +00:00
%endif
%if 0%{?rhel} && 0%{?rhel} < 8
Requires: cmake3
%endif
2018-03-07 18:50:14 +00:00
Requires: gcc-c++
2024-07-15 09:53:19 +00:00
BuildArch: noarch
%description rpm-macros
%{summary}.
2016-07-15 13:34:36 +00:00
%package srpm-macros
Summary: RPM macros for source Qt5 packages
2024-07-15 09:53:19 +00:00
BuildArch: noarch
%description srpm-macros
%{summary}.
2016-07-15 13:34:36 +00:00
2024-07-15 09:53:19 +00:00
%package filesystem
Summary: Filesystem for Qt 5 packages
%description filesystem
Filesystem for Qt 5 packages.
2016-07-15 13:34:36 +00:00
%install
2024-07-15 09:53:19 +00:00
mkdir -p %{buildroot}%{_prefix}/{lib,%{_lib}}/qt5
mkdir -p %{buildroot}%{_prefix}/{lib,%{_lib}}/qt5/bin
mkdir -p %{buildroot}%{_prefix}/{lib,%{_lib}}/qt5/cmake
mkdir -p %{buildroot}%{_prefix}/{lib,%{_lib}}/qt5/examples
mkdir -p %{buildroot}%{_prefix}/{lib,%{_lib}}/qt5/imports
mkdir -p %{buildroot}%{_prefix}/{lib,%{_lib}}/qt5/metatypes
mkdir -p %{buildroot}%{_prefix}/{lib,%{_lib}}/qt5/modules
mkdir -p %{buildroot}%{_prefix}/{lib,%{_lib}}/qt5/libexec
mkdir -p %{buildroot}%{_prefix}/{lib,%{_lib}}/qt5/mkspecs
mkdir -p %{buildroot}%{_prefix}/{lib,%{_lib}}/qt5/plugins
mkdir -p %{buildroot}%{_prefix}/{lib,%{_lib}}/qt5/qml
mkdir -p %{buildroot}%{_datadir}/qt5
mkdir -p %{buildroot}%{_docdir}/qt5
mkdir -p %{buildroot}%{_includedir}/qt5
mkdir -p %{buildroot}%{_datadir}/qt5/translations
install -Dpm644 %{SOURCE0} %{buildroot}%{_rpmconfigdir}/macros.d/macros.qt5
2016-09-14 13:36:50 +00:00
install -Dpm644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.qt5-srpm
install -Dpm755 %{SOURCE2} %{buildroot}%{_bindir}/qmake-qt5.sh
mkdir -p %{buildroot}%{_datadir}/qt5/wrappers
ln -s %{_bindir}/qmake-qt5.sh %{buildroot}%{_datadir}/qt5/wrappers/qmake-qt5
ln -s %{_bindir}/qmake-qt5.sh %{buildroot}%{_datadir}/qt5/wrappers/qmake
# substitute custom flags, and the path to binaries: binaries referenced from
# macros should not change if an application is built with a different prefix.
# %_libdir is left as /usr/%{_lib} (e.g.) so that the resulting macros are
# architecture independent, and don't hardcode /usr/lib or /usr/lib64.
sed -i \
-e "s|@@QT5_CFLAGS@@|%{?qt5_cflags}|g" \
-e "s|@@QT5_CXXFLAGS@@|%{?qt5_cxxflags}|g" \
-e "s|@@QT5_RPM_LD_FLAGS@@|%{?qt5_rpm_ld_flags}|g" \
-e "s|@@QT5_RPM_OPT_FLAGS@@|%{?qt5_rpm_opt_flags}|g" \
-e "s|@@QMAKE@@|%{_prefix}/%%{_lib}/qt5/bin/qmake|g" \
-e "s|@@QMAKE_QT5_WRAPPER@@|%{_bindir}/qmake-qt5.sh|g" \
%{buildroot}%{_rpmconfigdir}/macros.d/macros.qt5
2016-07-15 13:34:36 +00:00
2020-04-06 15:49:06 +00:00
%if 0%{?metapackage}
2016-07-15 13:34:36 +00:00
mkdir -p %{buildroot}%{_docdir}/qt5
mkdir -p %{buildroot}%{_docdir}/qt5-devel
echo "- Qt5 meta package" > %{buildroot}%{_docdir}/qt5/README
echo "- Qt5 devel meta package" > %{buildroot}%{_docdir}/qt5-devel/README
%files
%{_docdir}/qt5/README
%files devel
%{_docdir}/qt5-devel/README
2020-04-06 15:49:06 +00:00
%endif
2016-07-15 13:34:36 +00:00
%files rpm-macros
%{_rpmconfigdir}/macros.d/macros.qt5
%{_bindir}/qmake-qt5.sh
%{_datadir}/qt5/wrappers/
2016-07-15 13:34:36 +00:00
%files srpm-macros
%{_rpmconfigdir}/macros.d/macros.qt5-srpm
2024-07-15 09:53:19 +00:00
%files filesystem
%dir %{_prefix}/lib/qt5
%dir %{_prefix}/%{_lib}/qt5
%dir %{_prefix}/lib/qt5/bin
%dir %{_prefix}/%{_lib}/qt5/bin
%dir %{_prefix}/lib/qt5/cmake
%dir %{_prefix}/%{_lib}/qt5/cmake
%dir %{_prefix}/lib/qt5/examples
%dir %{_prefix}/%{_lib}/qt5/examples
%dir %{_prefix}/lib/qt5/imports
%dir %{_prefix}/%{_lib}/qt5/imports
%dir %{_prefix}/lib/qt5/metatypes
%dir %{_prefix}/%{_lib}/qt5/metatypes
%dir %{_prefix}/lib/qt5/modules
%dir %{_prefix}/%{_lib}/qt5/modules
%dir %{_prefix}/lib/qt5/libexec
%dir %{_prefix}/%{_lib}/qt5/libexec
%dir %{_prefix}/lib/qt5/mkspecs
%dir %{_prefix}/%{_lib}/qt5/mkspecs
%dir %{_prefix}/lib/qt5/plugins
%dir %{_prefix}/%{_lib}/qt5/plugins
%dir %{_prefix}/lib/qt5/qml
%dir %{_prefix}/%{_lib}/qt5/qml
%dir %{_datadir}/qt5
%dir %{_docdir}/qt5
%dir %{_includedir}/qt5
%dir %{_datadir}/qt5/translations
2016-07-15 13:34:36 +00:00
%changelog
* Mon Sep 16 2024 David Abdurachmanov <davidlt@rivosinc.com> - 5.15.15-1.0.riscv64
- Remove riscv64 from %%qt5_qtwebengine_arches.
2024-09-04 08:02:27 +00:00
* Wed Sep 04 2024 Jan Grulich <jgrulich@redhat.com> - 5.15.15-1
- 5.15.15
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.14-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
2024-07-15 09:53:19 +00:00
* Mon Jul 15 2024 Jan Grulich <jgrulich@redhat.com> - 5.15.14-2
- Introduce qt5-filesystem package
2024-05-29 06:22:07 +00:00
* Wed May 29 2024 Jan Grulich <jgrulich@redhat.com> - 5.15.14-1
- 5.15.14
2024-05-06 06:54:49 +00:00
* Mon May 06 2024 Liu Yang <Yang.Liu.sn@gmail.com> - 5.15.13-2
- Add riscv64 to macro %qt5_qtwebengine_arches.
2024-03-11 09:11:48 +00:00
* Mon Mar 11 2024 Jan Grulich <jgrulich@redhat.com> - 5.15.13-1
- 5.15.13
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.12-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2024-01-02 10:28:26 +00:00
* Tue Jan 02 2024 Jan Grulich <jgrulich@redhat.com> - 5.15.12-1
- 5.15.12
2023-10-08 13:34:56 +00:00
* Sun Oct 08 2023 Jan Grulich <jgrulich@redhat.com> - 5.15.11-1
- 5.15.11
2023-10-06 11:55:54 +00:00
* Fri Oct 06 2023 Jan Grulich <jgrulich@redhat.com> - 5.15.10-3
- 5.15.11
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2023-06-12 09:21:10 +00:00
* Mon Jun 12 2023 Jan Grulich <jgrulich@redhat.com> - 5.15.10-1
- 5.15.10
2023-04-11 04:47:01 +00:00
* Tue Apr 11 2023 Jan Grulich <jgrulich@redhat.com> - 5.15.9-1
- 5.15.9
2023-01-31 11:26:57 +00:00
* Tue Jan 31 2023 Jan Grulich <jgrulich@redhat.com> - 5.15.8-3
- migrated to SPDX license
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2023-01-05 06:34:01 +00:00
* Thu Jan 05 2023 Jan Grulich <jgrulich@redhat.com> - 5.15.8-1
- 5.15.8
2022-10-31 07:49:23 +00:00
* Mon Oct 31 2022 Jan Grulich <jgrulich@redhat.com> - 5.15.7-1
- 5.15.7
2022-09-20 06:24:28 +00:00
* Tue Sep 20 2022 Jan Grulich <jgrulich@redhat.com> - 5.15.6-1
- 5.15.6
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-07-13 08:08:51 +00:00
* Wed Jul 13 2022 Jan Grulich <jgrulich@redhat.com> - 5.15.5-1
- 5.15.5
2022-05-16 13:19:29 +00:00
* Mon May 16 2022 Jan Grulich <jgrulich@redhat.com> - 5.15.4-1
- 5.15.4
2022-03-04 09:51:41 +00:00
* Fri Mar 04 2022 Jan Grulich <jgrulich@redhat.com> - 5.15.3-1
- 5.15.3
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-11-20 07:56:12 +00:00
* Fri Nov 20 08:56:04 CET 2020 Jan Grulich <jgrulich@redhat.com> - 5.15.2-1
- 5.15.2
2020-09-10 16:11:44 +00:00
* Thu Sep 10 2020 Jan Grulich <jgrulich@redhat.com> - 5.15.1-1
2020-09-10 16:07:30 +00:00
- 5.15.1
2020-08-19 20:03:52 +00:00
* Wed Aug 19 2020 Troy Dawson <tdawson@redhat.com> - 5.14.2-5
2020-08-19 20:43:34 +00:00
- fix rpm-macros for RHEL builds
2020-08-19 20:03:52 +00:00
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.14.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-04-06 15:49:06 +00:00
* Mon Apr 06 2020 Rex Dieter <rdieter@fedoraproject.org> - 5.14.2-3
- drop qt5,qt5-devel metapackages f32+
2020-04-06 15:34:18 +00:00
* Mon Apr 06 2020 Rex Dieter <rdieter@fedoraproject.org> - 5.14.2-2
- qt5-devel: drop R: qt5-qtenginio-devel
2020-04-04 21:35:43 +00:00
* Sat Apr 04 2020 Rex Dieter <rdieter@fedoraproject.org> - 5.14.2-1
- 5.14.2
- drop qt5-qtwebkit from metapackage (hasn't been a core qt5 pkg for awhile)
2020-04-04 21:35:43 +00:00
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.13.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-12-09 09:58:54 +00:00
* Mon Dec 09 2019 Jan Grulich <jgrulich@redhat.com> - 5.13.2-1
- 5.13.2
2019-09-24 11:00:10 +00:00
* Tue Sep 24 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.5-1
- 5.12.5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.12.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-06-14 06:42:35 +00:00
* Tue Jun 11 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.4-1
- 5.12.4
2019-06-04 11:31:11 +00:00
* Tue Jun 04 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.3-1
- 5.12.3
2019-02-14 22:11:54 +00:00
* Thu Feb 14 2019 Rex Dieter <rdieter@fedoraproject.org> - 5.12.1-1
- 5.12.1
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.11.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-12-07 18:49:42 +00:00
* Fri Dec 07 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.11.3-1
- 5.11.3
2018-09-21 09:29:36 +00:00
* Fri Sep 21 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.2-1
- 5.11.2
* Tue Aug 21 2018 Owen Taylor <otaylor@redhat.com> - 5.11.1-4
- rpm-macros: always refer to binaries in their installed location, even if %%_libdir
and %%_bindir are redefined.
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.11.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 29 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.11.1-2
- %%_qt5_prefix=%%_prefix (was %%_libdir/qt5}
2018-06-20 12:52:16 +00:00
* Tue Jun 19 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.11.1-1
- 5.11.1
* Sat Jun 02 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.11.0-2
- rpm-macros: do not define _qt5_archdatadir, _qt5_bindir in terms of _qt5_prefix anymore
2018-05-26 13:41:36 +00:00
* Sat May 26 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.11.0-1
- 5.11.0
2018-03-07 18:50:14 +00:00
* Wed Mar 07 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.10.1-1
- 5.10.1
- rpm-macros: Requires: gcc-c++
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.10.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jan 24 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.10.0-4
- macros.qt5: fix path to qmake-qt5.sh wrapper
2018-01-24 21:12:03 +00:00
* Wed Jan 24 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.10.0-3
- use noarch-friendly paths for qmake-qt5.sh wrapper
* Wed Jan 24 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.10.0-2
- provide qmake-qt5.sh wrapper and new macro: %%qmake_qt5_wrapper
2018-01-03 17:12:50 +00:00
* Wed Jan 03 2018 Rex Dieter <rdieter@fedoraproject.org> 5.10.0-1
- 5.10.0
2018-01-03 17:12:14 +00:00
* Wed Jan 03 2018 Rex Dieter <rdieter@fedoraproject.org> 5.9.3-1
- 5.9.3
2017-10-10 14:56:22 +00:00
* Tue Oct 10 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.2-1
- 5.9.2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-07-19 13:25:59 +00:00
* Wed Jul 19 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.1-1
- 5.9.1
* Thu Jun 01 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.0-2
- drop -fno-delete-null-pointer-checks hack/workaround
2017-05-05 20:48:50 +00:00
* Sat Apr 15 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-1
- Up to match upcoming 5.9.0
2017-03-31 15:23:22 +00:00
* Fri Mar 31 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.8.0-3
- rebuild
* Fri Jan 27 2017 Helio Chissini de Castro <helio@kde.org> - 5.8.0-1
- Tie to new upstream release
* Mon Jan 02 2017 Rex Dieter <rdieter@math.unl.edu> - 5.7.1-2
2017-01-02 13:11:01 +00:00
- drop Requires: qt5-gstreamer qt5-qtacountsservice qt5-qtconfiguration (not from qtproject.org)
2016-11-23 11:40:16 +00:00
* Wed Nov 09 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.1-1
- Prepare for new release
* Tue Sep 27 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.0-10
- s/%%rhel/%%epel/ , cmake3 is only available in epel
2016-09-14 13:36:50 +00:00
* Wed Sep 14 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.0-9
- install the right macros.qt5-srpm file
* Wed Sep 14 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.0-8
2016-09-14 13:46:58 +00:00
- introduce -srpm-macros (initially defines %%qt5_qtwebengine_arches)
- -devel: drop Requires: qt5-qtwebengine-devel (since not all archs are supported)
* Sat Jul 23 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.0-7
- drop Requires: qt5-qtwebengine (not available on all archs)
2016-07-15 13:34:36 +00:00
* Tue Jul 12 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-6
- Fix macros with invalid substitutions.
* Wed Jul 06 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-5
- Fix typo. Thanks to Diego Herrera.
- Add macro qt5_includedir as more logical than headerdir. Old one still available
* Mon Jul 04 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-4
- Clang is not default anymore. End of experimentation phase
* Wed Jun 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-3
- Move package to be qt5 and create meta packages
- Add new macro for qml dir
* Mon Jun 13 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-2
- Test repositories using clang by default
* Thu Jun 09 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-1
- Decouple macros from main qtbase package