Blame SPECS/qt5.spec

9e5f65
# include qt5,qt5-devel metapackages or not
9e5f65
# dropped for f32+
9e5f65
%if 0%{?fedora} < 32
9e5f65
%global metapackage 1
9e5f65
%endif
9e5f65
9e5f65
Name: qt5
952f01
Version: 5.15.3
952f01
Release: 1%{?dist}
9e5f65
Summary: Qt5 meta package
9e5f65
License: GPLv3
9e5f65
URL: https://getfedora.org/
9e5f65
Source0: macros.qt5
9e5f65
Source1: macros.qt5-srpm
9e5f65
Source2: qmake-qt5.sh
9e5f65
BuildArch: noarch
9e5f65
9e5f65
Requires: qt5-qdbusviewer
9e5f65
Requires: qt5-qt3d
9e5f65
Requires: qt5-qtbase
9e5f65
Requires: qt5-qtbase-gui
9e5f65
Requires: qt5-qtbase-mysql
9e5f65
Requires: qt5-qtbase-postgresql
9e5f65
Requires: qt5-qtconnectivity
9e5f65
Requires: qt5-qtdeclarative
9e5f65
Requires: qt5-qtdoc
9e5f65
Requires: qt5-qtgraphicaleffects
9e5f65
Requires: qt5-qtimageformats
9e5f65
Requires: qt5-qtlocation
9e5f65
Requires: qt5-qtmultimedia
9e5f65
Requires: qt5-qtquickcontrols
9e5f65
Requires: qt5-qtquickcontrols2
9e5f65
Requires: qt5-qtscript
9e5f65
Requires: qt5-qtsensors
9e5f65
Requires: qt5-qtserialport
9e5f65
Requires: qt5-qtsvg
9e5f65
Requires: qt5-qttools
9e5f65
Requires: qt5-qtwayland
9e5f65
Requires: qt5-qtwebchannel
9e5f65
## qtwebengine is not available on all archs, omit for now
9e5f65
## else, need to make qt5 arch'd and deps conditional (on arch)
9e5f65
#Requires: qt5-qtwebengine
9e5f65
Requires: qt5-qtwebsockets
9e5f65
Requires: qt5-qtx11extras
9e5f65
Requires: qt5-qtxmlpatterns
9e5f65
9e5f65
%description
9e5f65
%{summary}.
9e5f65
9e5f65
%package devel
9e5f65
Summary: Qt5 meta devel package
9e5f65
Requires: qt5-rpm-macros
9e5f65
Requires: qt5-qttools-static
9e5f65
Requires: qt5-qtdeclarative-static
9e5f65
Requires: qt5-qtbase-static
9e5f65
Requires: qt5-designer
9e5f65
Requires: qt5-qdoc
9e5f65
Requires: qt5-qhelpgenerator
9e5f65
Requires: qt5-linguist
9e5f65
Requires: qt5-qt3d-devel
9e5f65
Requires: qt5-qtbase-devel
9e5f65
Requires: qt5-qtconnectivity-devel
9e5f65
Requires: qt5-qtdeclarative-devel
9e5f65
Requires: qt5-qtlocation-devel
9e5f65
Requires: qt5-qtmultimedia-devel
9e5f65
Requires: qt5-qtscript-devel
9e5f65
Requires: qt5-qtsensors-devel
9e5f65
Requires: qt5-qtserialport-devel
9e5f65
Requires: qt5-qtsvg-devel
9e5f65
Requires: qt5-qttools-devel
9e5f65
Requires: qt5-qtwayland-devel
9e5f65
Requires: qt5-qtwebchannel-devel
9e5f65
#Requires: qt5-qtwebengine-devel
9e5f65
Requires: qt5-qtwebsockets-devel
9e5f65
Requires: qt5-qtx11extras-devel
9e5f65
Requires: qt5-qtxmlpatterns-devel
9e5f65
9e5f65
%description devel
9e5f65
%{summary}.
9e5f65
9e5f65
%package rpm-macros
9e5f65
Summary: RPM macros for building Qt5 and KDE Frameworks 5 packages
9e5f65
Conflicts: qt5-qtbase-devel < 5.6.0-0.23
9e5f65
%if 0%{?fedora} || 0%{?rhel} >= 8
9e5f65
Requires: cmake >= 3
9e5f65
%endif
9e5f65
%if 0%{?rhel} && 0%{?rhel} < 8
9e5f65
Requires: cmake3
9e5f65
%endif
9e5f65
Requires: gcc-c++
9e5f65
%description rpm-macros
9e5f65
%{summary}.
9e5f65
9e5f65
%package srpm-macros
9e5f65
Summary: RPM macros for source Qt5 packages
9e5f65
%description srpm-macros
9e5f65
%{summary}.
9e5f65
9e5f65
9e5f65
%install
9e5f65
install -Dpm644 %{SOURCE0} %{buildroot}%{_rpmconfigdir}/macros.d/macros.qt5
9e5f65
install -Dpm644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.qt5-srpm
9e5f65
install -Dpm755 %{SOURCE2} %{buildroot}%{_bindir}/qmake-qt5.sh
9e5f65
mkdir -p %{buildroot}%{_datadir}/qt5/wrappers
9e5f65
ln -s %{_bindir}/qmake-qt5.sh %{buildroot}%{_datadir}/qt5/wrappers/qmake-qt5
9e5f65
ln -s %{_bindir}/qmake-qt5.sh %{buildroot}%{_datadir}/qt5/wrappers/qmake
9e5f65
9e5f65
# substitute custom flags, and the path to binaries: binaries referenced from
9e5f65
# macros should not change if an application is built with a different prefix.
9e5f65
# %_libdir is left as /usr/%{_lib} (e.g.) so that the resulting macros are
9e5f65
# architecture independent, and don't hardcode /usr/lib or /usr/lib64.
9e5f65
sed -i \
9e5f65
  -e "s|@@QT5_CFLAGS@@|%{?qt5_cflags}|g" \
9e5f65
  -e "s|@@QT5_CXXFLAGS@@|%{?qt5_cxxflags}|g" \
9e5f65
  -e "s|@@QT5_RPM_LD_FLAGS@@|%{?qt5_rpm_ld_flags}|g" \
9e5f65
  -e "s|@@QT5_RPM_OPT_FLAGS@@|%{?qt5_rpm_opt_flags}|g" \
9e5f65
  -e "s|@@QMAKE@@|%{_prefix}/%%{_lib}/qt5/bin/qmake|g" \
9e5f65
  -e "s|@@QMAKE_QT5_WRAPPER@@|%{_bindir}/qmake-qt5.sh|g" \
9e5f65
  %{buildroot}%{_rpmconfigdir}/macros.d/macros.qt5
9e5f65
9e5f65
%if 0%{?metapackage}
9e5f65
mkdir -p %{buildroot}%{_docdir}/qt5
9e5f65
mkdir -p %{buildroot}%{_docdir}/qt5-devel
9e5f65
echo "- Qt5 meta package" > %{buildroot}%{_docdir}/qt5/README
9e5f65
echo "- Qt5 devel meta package" > %{buildroot}%{_docdir}/qt5-devel/README
9e5f65
9e5f65
%files
9e5f65
%{_docdir}/qt5/README
9e5f65
9e5f65
%files devel
9e5f65
%{_docdir}/qt5-devel/README
9e5f65
%endif
9e5f65
9e5f65
%files rpm-macros
9e5f65
%{_rpmconfigdir}/macros.d/macros.qt5
9e5f65
%{_bindir}/qmake-qt5.sh
9e5f65
%{_datadir}/qt5/wrappers/
9e5f65
9e5f65
%files srpm-macros
9e5f65
%{_rpmconfigdir}/macros.d/macros.qt5-srpm
9e5f65
9e5f65
9e5f65
%changelog
952f01
* Thu Mar 24 2022 Jan Grulich <jgrulich@redhat.com> - 5.15.3-1
952f01
- 5.15.3
952f01
  Resolves: bz#2061352
952f01
9e5f65
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 5.15.2-9
9e5f65
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
9e5f65
  Related: rhbz#1991688
9e5f65
9e5f65
* Tue Jun 15 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-8
9e5f65
- Use more robust regular expressions
9e5f65
  Resolves: bz#1969433
9e5f65
9e5f65
* Fri Jun 11 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-7
9e5f65
- Use more precise regular expression for python shebangs
9e5f65
  Resolves: bz#1969433
9e5f65
9e5f65
* Thu Jun 10 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-6
9e5f65
- Handle additional spaces python shebangs
9e5f65
  Resolves: bz#1969433
9e5f65
9e5f65
* Thu Jun 10 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-5
9e5f65
- Let qt5_install_tests macro to handle mangling python shebangs
9e5f65
  Resolves: bz#1969433
9e5f65
9e5f65
* Tue Jun 08 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-4
9e5f65
- Add support for building upstream tests for gating
9e5f65
  Resolves: bz#1969433
9e5f65
9e5f65
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.15.2-3
9e5f65
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
9e5f65
9e5f65
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.15.2-2
9e5f65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9e5f65
9e5f65
* Fri Nov 20 08:56:04 CET 2020 Jan Grulich <jgrulich@redhat.com> - 5.15.2-1
9e5f65
- 5.15.2
9e5f65
9e5f65
* Thu Sep 10 2020 Jan Grulich <jgrulich@redhat.com> - 5.15.1-1
9e5f65
- 5.15.1
9e5f65
9e5f65
* Wed Aug 19 2020 Troy Dawson <tdawson@redhat.com> - 5.14.2-5
9e5f65
- fix rpm-macros for RHEL builds
9e5f65
9e5f65
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.14.2-4
9e5f65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9e5f65
9e5f65
* Mon Apr 06 2020 Rex Dieter <rdieter@fedoraproject.org> - 5.14.2-3
9e5f65
- drop qt5,qt5-devel metapackages f32+
9e5f65
9e5f65
* Mon Apr 06 2020 Rex Dieter <rdieter@fedoraproject.org> - 5.14.2-2
9e5f65
- qt5-devel: drop R: qt5-qtenginio-devel
9e5f65
9e5f65
* Sat Apr 04 2020 Rex Dieter <rdieter@fedoraproject.org> - 5.14.2-1
9e5f65
- 5.14.2
9e5f65
- drop qt5-qtwebkit from metapackage (hasn't been a core qt5 pkg for awhile)
9e5f65
9e5f65
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.13.2-2
9e5f65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9e5f65
9e5f65
* Mon Dec 09 2019 Jan Grulich <jgrulich@redhat.com> - 5.13.2-1
9e5f65
- 5.13.2
9e5f65
9e5f65
* Tue Sep 24 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.5-1
9e5f65
- 5.12.5
9e5f65
9e5f65
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.12.4-2
9e5f65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9e5f65
9e5f65
* Tue Jun 11 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.4-1
9e5f65
- 5.12.4
9e5f65
9e5f65
* Tue Jun 04 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.3-1
9e5f65
- 5.12.3
9e5f65
9e5f65
* Thu Feb 14 2019 Rex Dieter <rdieter@fedoraproject.org> - 5.12.1-1
9e5f65
- 5.12.1
9e5f65
9e5f65
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.11.3-2
9e5f65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9e5f65
9e5f65
* Fri Dec 07 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.11.3-1
9e5f65
- 5.11.3
9e5f65
9e5f65
* Fri Sep 21 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.2-1
9e5f65
- 5.11.2
9e5f65
9e5f65
* Tue Aug 21 2018 Owen Taylor <otaylor@redhat.com> - 5.11.1-4
9e5f65
- rpm-macros: always refer to binaries in their installed location, even if %%_libdir
9e5f65
  and %%_bindir are redefined.
9e5f65
9e5f65
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.11.1-3
9e5f65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9e5f65
9e5f65
* Fri Jun 29 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.11.1-2
9e5f65
- %%_qt5_prefix=%%_prefix (was %%_libdir/qt5}
9e5f65
9e5f65
* Tue Jun 19 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.11.1-1
9e5f65
- 5.11.1
9e5f65
9e5f65
* Sat Jun 02 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.11.0-2
9e5f65
- rpm-macros: do not define _qt5_archdatadir, _qt5_bindir in terms of _qt5_prefix anymore
9e5f65
9e5f65
* Sat May 26 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.11.0-1
9e5f65
- 5.11.0
9e5f65
9e5f65
* Wed Mar 07 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.10.1-1
9e5f65
- 5.10.1
9e5f65
- rpm-macros: Requires: gcc-c++
9e5f65
9e5f65
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.10.0-5
9e5f65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9e5f65
9e5f65
* Wed Jan 24 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.10.0-4
9e5f65
- macros.qt5: fix path to qmake-qt5.sh wrapper
9e5f65
9e5f65
* Wed Jan 24 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.10.0-3
9e5f65
- use noarch-friendly paths for qmake-qt5.sh wrapper
9e5f65
9e5f65
* Wed Jan 24 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.10.0-2
9e5f65
- provide qmake-qt5.sh wrapper and new macro: %%qmake_qt5_wrapper
9e5f65
9e5f65
* Wed Jan 03 2018 Rex Dieter <rdieter@fedoraproject.org> 5.10.0-1
9e5f65
- 5.10.0
9e5f65
9e5f65
* Wed Jan 03 2018 Rex Dieter <rdieter@fedoraproject.org> 5.9.3-1
9e5f65
- 5.9.3
9e5f65
9e5f65
* Tue Oct 10 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.2-1
9e5f65
- 5.9.2
9e5f65
9e5f65
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.1-2
9e5f65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9e5f65
9e5f65
* Wed Jul 19 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.1-1
9e5f65
- 5.9.1
9e5f65
9e5f65
* Thu Jun 01 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.0-2
9e5f65
- drop -fno-delete-null-pointer-checks hack/workaround
9e5f65
9e5f65
* Sat Apr 15 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-1
9e5f65
- Up to match upcoming 5.9.0
9e5f65
9e5f65
* Fri Mar 31 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.8.0-3
9e5f65
- rebuild
9e5f65
9e5f65
* Fri Jan 27 2017 Helio Chissini de Castro <helio@kde.org> - 5.8.0-1
9e5f65
- Tie to new upstream release
9e5f65
9e5f65
* Mon Jan 02 2017 Rex Dieter <rdieter@math.unl.edu> - 5.7.1-2
9e5f65
- drop Requires: qt5-gstreamer qt5-qtacountsservice qt5-qtconfiguration (not from qtproject.org)
9e5f65
9e5f65
* Wed Nov 09 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.1-1
9e5f65
- Prepare for new release
9e5f65
9e5f65
* Tue Sep 27 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.0-10
9e5f65
- s/%%rhel/%%epel/ , cmake3 is only available in epel
9e5f65
9e5f65
* Wed Sep 14 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.0-9
9e5f65
- install the right macros.qt5-srpm file
9e5f65
9e5f65
* Wed Sep 14 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.0-8
9e5f65
- introduce -srpm-macros (initially defines %%qt5_qtwebengine_arches)
9e5f65
- -devel: drop Requires: qt5-qtwebengine-devel (since not all archs are supported)
9e5f65
9e5f65
* Sat Jul 23 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.0-7
9e5f65
- drop Requires: qt5-qtwebengine (not available on all archs)
9e5f65
9e5f65
* Tue Jul 12 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-6
9e5f65
- Fix macros with invalid substitutions.
9e5f65
9e5f65
* Wed Jul 06 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-5
9e5f65
- Fix typo. Thanks to Diego Herrera.
9e5f65
- Add macro qt5_includedir as more logical than headerdir. Old one still available
9e5f65
9e5f65
* Mon Jul 04 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-4
9e5f65
- Clang is not default anymore. End of experimentation phase
9e5f65
9e5f65
* Wed Jun 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-3
9e5f65
- Move package to be qt5 and create meta packages
9e5f65
- Add new macro for qml dir
9e5f65
9e5f65
* Mon Jun 13 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-2
9e5f65
- Test repositories using clang by default
9e5f65
9e5f65
9e5f65
* Thu Jun 09 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-1
9e5f65
- Decouple macros from main qtbase package