Blame SPECS/qt5-qtlocation.spec

cc2db1
%global qt_module qtlocation
cc2db1
d49471
%global build_tests 1
d49471
cc2db1
Summary: Qt5 - Location component
cc2db1
Name:    qt5-%{qt_module}
5990a9
Version: 5.15.3
afb881
Release: 1.0.1%{?dist}
cc2db1
cc2db1
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
cc2db1
License: LGPLv2 with exceptions or GPLv3 with exceptions
cc2db1
Url:     http://www.qt.io
cc2db1
%global majmin %(echo %{version} | cut -d. -f1-2)
5990a9
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-opensource-src-%{version}.tar.xz
5990a9
5990a9
# build failure with gcc10
5990a9
# various C++ runtime headers indirectly included <string> which in turn
5990a9
# included <local> and <cerrno>.  Those indirect inclusions have been
5990a9
# eliminated which in turn forces packages to include the C++ headers they
5990a9
# actually need.
5990a9
Patch0: qtlocation-gcc10.patch
cc2db1
cc2db1
# filter plugin/qml provides
cc2db1
%global __provides_exclude_from ^(%{_qt5_archdatadir}/qml/.*\\.so|%{_qt5_plugindir}/.*\\.so)$
cc2db1
cc2db1
## upstreamable patches
cc2db1
cc2db1
BuildRequires: qt5-qtbase-devel >= 5.9.0
cc2db1
# QtPositioning core-private
cc2db1
BuildRequires: qt5-qtbase-private-devel
cc2db1
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
cc2db1
BuildRequires: qt5-qtdeclarative-devel >= 5.9.0
cc2db1
cc2db1
BuildRequires: pkgconfig(zlib)
cc2db1
BuildRequires: pkgconfig(icu-i18n)
cc2db1
BuildRequires: pkgconfig(libssl)
cc2db1
BuildRequires: pkgconfig(libcrypto)
cc2db1
cc2db1
%description
cc2db1
The Qt Location and Qt Positioning APIs gives developers the ability to
cc2db1
determine a position by using a variety of possible sources, including
cc2db1
satellite, or wifi, or text file, and so on.
cc2db1
cc2db1
%package devel
cc2db1
Summary: Development files for %{name}
cc2db1
Requires: %{name}%{?_isa} = %{version}-%{release}
cc2db1
Requires: qt5-qtbase-devel%{?_isa}
cc2db1
%description devel
cc2db1
%{summary}.
cc2db1
cc2db1
%package examples
cc2db1
Summary: Programming examples for %{name}
cc2db1
Requires: %{name}%{?_isa} = %{version}-%{release}
cc2db1
%description examples
cc2db1
%{summary}.
cc2db1
d49471
%if 0%{?build_tests}
d49471
%package tests
d49471
Summary: Unit tests for %{name}
d49471
Requires: %{name}%{?_isa} = %{version}-%{release}
d49471
d49471
%description tests
d49471
%{summary}.
d49471
%endif
cc2db1
cc2db1
%prep
cc2db1
%setup -q -n %{qt_module}-everywhere-src-%{version}
5990a9
%patch0 -p1 -b .gcc10
cc2db1
cc2db1
cc2db1
%build
cc2db1
# no shadow builds until fixed: https://bugreports.qt.io/browse/QTBUG-37417
cc2db1
%{qmake_qt5}
cc2db1
cc2db1
%make_build
cc2db1
d49471
%if 0%{?build_tests}
d49471
make sub-tests %{?_smp_mflags} -k ||:
d49471
%endif
d49471
cc2db1
%install
cc2db1
make install INSTALL_ROOT=%{buildroot}
cc2db1
d49471
%if 0%{?build_tests}
d49471
# Install tests for gating
d49471
mkdir -p %{buildroot}%{_qt5_libdir}/qt5
d49471
find ./tests -not -path '*/\.*' -type d | while read LINE
d49471
do
d49471
    mkdir -p "%{buildroot}%{_qt5_libdir}/qt5/$LINE"
d49471
done
d49471
find ./tests -not -path '*/\.*' -not -name '*.h' -not -name '*.cpp' -not -name '*.pro' -not -name 'uic_wrapper.sh' -not -name 'Makefile' -not -name 'target_wrapper.sh' -type f | while read LINE
d49471
do
d49471
    cp -r --parents "$LINE" %{buildroot}%{_qt5_libdir}/qt5/
d49471
done
d49471
%endif
d49471
cc2db1
## .prl/.la file love
cc2db1
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
cc2db1
pushd %{buildroot}%{_qt5_libdir}
cc2db1
for prl_file in libQt5*.prl ; do
cc2db1
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
cc2db1
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
cc2db1
    rm -fv "$(basename ${prl_file} .prl).la"
cc2db1
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
cc2db1
  fi
cc2db1
done
cc2db1
popd
cc2db1
cc2db1
cc2db1
%ldconfig_scriptlets
cc2db1
cc2db1
%files
cc2db1
%license LICENSE.GPL* LICENSE.LGPL*
cc2db1
%{_qt5_libdir}/libQt5Location.so.5*
cc2db1
%{_qt5_archdatadir}/qml/QtLocation/
cc2db1
%{_qt5_plugindir}/geoservices/
cc2db1
%{_qt5_libdir}/libQt5Positioning.so.5*
cc2db1
%dir %{_qt5_archdatadir}/qml/QtPositioning
cc2db1
%{_qt5_archdatadir}/qml/QtPositioning/*
cc2db1
%{_qt5_plugindir}/position/
cc2db1
%{_qt5_libdir}/libQt5PositioningQuick.so.5*
cc2db1
cc2db1
%files devel
cc2db1
%{_qt5_headerdir}/QtLocation/
cc2db1
%{_qt5_libdir}/libQt5Location.so
cc2db1
%{_qt5_libdir}/libQt5Location.prl
cc2db1
%{_qt5_headerdir}/QtPositioning/
cc2db1
%{_qt5_libdir}/libQt5Positioning.so
cc2db1
%{_qt5_libdir}/libQt5Positioning.prl
cc2db1
%{_qt5_headerdir}/QtPositioningQuick/
cc2db1
%{_qt5_libdir}/libQt5PositioningQuick.so
cc2db1
%{_qt5_libdir}/libQt5PositioningQuick.prl
cc2db1
%{_qt5_libdir}/pkgconfig/Qt5Location.pc
cc2db1
%dir %{_qt5_libdir}/cmake/Qt5Location
cc2db1
%{_qt5_libdir}/cmake/Qt5Location/Qt5Location*.cmake
cc2db1
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_location*.pri
cc2db1
%{_qt5_libdir}/pkgconfig/Qt5Positioning.pc
cc2db1
%dir %{_qt5_libdir}/cmake/Qt5Positioning
cc2db1
%{_qt5_libdir}/cmake/Qt5Positioning/Qt5Positioning*.cmake
cc2db1
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_positioning*.pri
cc2db1
%{_qt5_libdir}/pkgconfig/Qt5PositioningQuick.pc
cc2db1
%dir %{_qt5_libdir}/cmake/Qt5PositioningQuick/
cc2db1
%{_qt5_libdir}/cmake/Qt5PositioningQuick/Qt5PositioningQuick*.cmake
cc2db1
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_positioning*.pri
cc2db1
cc2db1
cc2db1
%files examples
cc2db1
%{_qt5_examplesdir}/
cc2db1
d49471
%if 0%{?build_tests}
d49471
%files tests
d49471
%{_qt5_libdir}/qt5/tests
d49471
%endif
cc2db1
cc2db1
%changelog
5990a9
* Mon Mar 28 2022 Jan Grulich <jgrulich@redhat.com> - 5.15.3-1
5990a9
- 5.15.3
5990a9
  Resolves: bz#2061396
5990a9
ee3f9f
* Wed Apr 28 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-2
ee3f9f
- Rebuild (binutils)
ee3f9f
  Resolves: bz#1930047
ee3f9f
b8d921
* Sun Apr 04 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-1
b8d921
- 5.15.2
b8d921
  Resolves: bz#1930047
b8d921
d49471
* Mon Nov 18 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.5-1
d49471
- 5.12.5
d49471
  Resolves: bz#1733143
d49471
cc2db1
* Mon Dec 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-2
cc2db1
- Rebuild to fix CET notes
cc2db1
  Resolves: bz#1657251
cc2db1
cc2db1
* Tue Jul 03 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-1
cc2db1
- 5.11.1
cc2db1
cc2db1
* Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 5.10.1-3
cc2db1
- Rebuild to fix GCC 8 mis-compilation
cc2db1
  See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
cc2db1
cc2db1
* Wed Mar 07 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.10.1-2
cc2db1
- rebuild (gcc)
cc2db1
- use %%make_build %%ldconfig_scriptlets
cc2db1
cc2db1
* Wed Feb 14 2018 Jan Grulich <jgrulich@redhat.com> - 5.10.1-1
cc2db1
- 5.10.1
cc2db1
cc2db1
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.10.0-2
cc2db1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cc2db1
cc2db1
* Tue Dec 19 2017 Jan Grulich <jgrulich@redhat.com> - 5.10.0-1
cc2db1
- 5.10.0
cc2db1
cc2db1
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 5.9.3-2
cc2db1
- Rebuild for ICU 60.1
cc2db1
cc2db1
* Thu Nov 23 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.3-1
cc2db1
- 5.9.3
cc2db1
cc2db1
* Mon Oct 09 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.2-1
cc2db1
- 5.9.2
cc2db1
cc2db1
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.1-3
cc2db1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
cc2db1
cc2db1
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.1-2
cc2db1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cc2db1
cc2db1
* Wed Jul 19 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.1-1
cc2db1
- 5.9.1
cc2db1
cc2db1
* Fri Jun 16 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.0-2
cc2db1
- drop shadow/out-of-tree builds (#1456211,QTBUG-37417)
cc2db1
- directly reference other qt5-related build deps
cc2db1
cc2db1
* Wed May 31 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-1
cc2db1
- Upstream official release
cc2db1
cc2db1
* Fri May 26 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.1.rc
cc2db1
- Upstream Release Candidate retagged
cc2db1
cc2db1
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.0-0.beta.3.1
cc2db1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
cc2db1
cc2db1
* Tue May 09 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.beta.3
cc2db1
- Upstream beta 3
cc2db1
cc2db1
* Mon Apr 03 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.8.0-2
cc2db1
- build docs on all archs
cc2db1
cc2db1
* Mon Jan 30 2017 Helio Chissini de Castro <helio@kde.org> - 5.8.0-1
cc2db1
- New upstream version
cc2db1
cc2db1
* Mon Jan 02 2017 Rex Dieter <rdieter@math.unl.edu> - 5.7.1-4
cc2db1
- filter plugins too
cc2db1
cc2db1
* Mon Jan 02 2017 Rex Dieter <rdieter@math.unl.edu> - 5.7.1-3
cc2db1
- filter qml provides, BR: qt5-qtdeclarative explicitly
cc2db1
cc2db1
* Sat Dec 10 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.1-2
cc2db1
- drop BR: cmake (handled by qt5-rpm-macros now)
cc2db1
- 5.7.1 dec5 snapshot
cc2db1
cc2db1
* Wed Nov 09 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.1-1
cc2db1
- New upstream version
cc2db1
cc2db1
* Mon Jul 04 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-2
cc2db1
- Compiled with gcc
cc2db1
cc2db1
* Tue Jun 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-1
cc2db1
- Qt 5.7.0 release
cc2db1
cc2db1
* Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
cc2db1
- Update to 5.6.1
cc2db1
cc2db1
* Thu Apr 21 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-4
cc2db1
- BR: qt5-qtbase-private-devel
cc2db1
cc2db1
* Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
cc2db1
- rebuild
cc2db1
cc2db1
* Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
cc2db1
- rebuild
cc2db1
cc2db1
* Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
cc2db1
- 5.6.0 final release
cc2db1
cc2db1
* Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.10.rc
cc2db1
- Update to final RC
cc2db1
cc2db1
* Sun Feb 21 2016 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.9.rc
cc2db1
- rebuild
cc2db1
cc2db1
* Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.8
cc2db1
- Update RC release
cc2db1
cc2db1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.7.beta
cc2db1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cc2db1
cc2db1
* Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.6.beta
cc2db1
- update source URL, use %%license, BR: cmake
cc2db1
cc2db1
* Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.5
cc2db1
- Update to final beta release
cc2db1
cc2db1
* Fri Dec 11 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-0.4
cc2db1
- (re) add bootstrap macro support
cc2db1
- drop geoclue(1) dep (unused at build time anyway (#1286886)
cc2db1
- drop (deprecated) gypsy support (#1069225)
cc2db1
cc2db1
* Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.3
cc2db1
- Official beta release
cc2db1
cc2db1
* Sun Dec 06 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.2
cc2db1
- (re)add bootstrap macro support
cc2db1
cc2db1
* Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
cc2db1
- Start to implement 5.6.0 beta
cc2db1
cc2db1
* Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
cc2db1
- Update to final release 5.5.1
cc2db1
cc2db1
* Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
cc2db1
- Update to Qt 5.5.1 RC1
cc2db1
cc2db1
* Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
cc2db1
- -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping
cc2db1
cc2db1
* Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
cc2db1
- tighten qtbase dep (#1233829), .spec cosmetics, (re)enable docs
cc2db1
cc2db1
* Wed Jul 1 2015 Helio Chissini de Castro <helio@kde.org> 5.5.0-1
cc2db1
- New final upstream release Qt 5.5.0
cc2db1
cc2db1
* Wed Jun 24 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc
cc2db1
- Update for official RC1 released packages
cc2db1
cc2db1
* Mon Jun 15 2015 Daniel Vrátil <dvratil@redhat.com> - 5.5.0-0.1.rc
cc2db1
- Qt 5.5.0 RC1
cc2db1
cc2db1
* Wed Jun 03 2015 Jan Grulich <jgrulich@redhat.com> - 5.4.2-1
cc2db1
- 5.4.2
cc2db1
cc2db1
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.4.1-3
cc2db1
- Rebuilt for GCC 5 C++11 ABI change
cc2db1
cc2db1
* Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.1-2
cc2db1
- rebuild (gcc5)
cc2db1
cc2db1
* Tue Feb 24 2015 Jan Grulich <jgrulich@redhat.com> 5.4.1-1
cc2db1
- 5.4.1
cc2db1
cc2db1
* Mon Feb 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-3
cc2db1
- rebuild (gcc5)
cc2db1
cc2db1
* Wed Dec 31 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-2
cc2db1
- BR: pkgconfig(Qt5Qml) > 5.4.0 (#1177986)
cc2db1
cc2db1
* Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
cc2db1
- 5.4.0 (final)
cc2db1
cc2db1
* Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc
cc2db1
- 5.4.0-rc
cc2db1
cc2db1
* Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
cc2db1
- out-of-tree build, use %%qmake_qt5
cc2db1
cc2db1
* Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta
cc2db1
- 5.4.0-beta
cc2db1
cc2db1
* Tue Sep 16 2014 Rex Dieter <rdieter@fedoraproject.org> 5.3.2-1
cc2db1
- 5.3.2
cc2db1
cc2db1
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2
cc2db1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
cc2db1
cc2db1
* Tue Jun 17 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.1-1
cc2db1
- 5.3.1
cc2db1
cc2db1
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
cc2db1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cc2db1
cc2db1
* Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> 5.3.0-1
cc2db1
- 5.3.0
cc2db1
cc2db1
* Mon May 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-2
cc2db1
- sanitize .prl file(s)
cc2db1
cc2db1
* Wed Feb 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
cc2db1
- 5.2.1
cc2db1
cc2db1
* Mon Jan 27 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-3
cc2db1
- build -examples only when supported
cc2db1
cc2db1
* Sun Jan 26 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2
cc2db1
- -examples subpkg
cc2db1
cc2db1
* Thu Jan 02 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1
cc2db1
- first try