Blame SPECS/qt5-qtserialbus.spec

921176
%global qt_module qtserialbus
921176
483594
%global build_tests 1
483594
8f4e3b
Summary: Qt5 - SerialBus component
921176
Name:    qt5-%{qt_module}
8f4e3b
Version: 5.15.2
8f4e3b
Release: 3%{?dist}
921176
921176
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
921176
License: LGPLv2 with exceptions or GPLv3 with exceptions
921176
Url:     http://www.qt.io
921176
%global majmin %(echo %{version} | cut -d. -f1-2)
921176
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-src-%{version}.tar.xz
921176
483594
## upstreamable patches
483594
# workaround FTBFS against kernel-header-5.2.0+
483594
Patch100: qtserialbus-everywhere-src-5.12.3-SIOCGSTAMP.patch
483594
921176
BuildRequires: qt5-qtbase-devel >= %{version}
921176
BuildRequires: qt5-qtbase-private-devel
921176
#libQt5Core.so.5(Qt_5_PRIVATE_API)(64bit)
921176
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
921176
BuildRequires: qt5-qtserialport-devel >= %{version}
921176
921176
%description
483594
Qt Serial Bus (API) provides classes and functions to access the various
483594
industrial serial buses and protocols, such as CAN, ModBus, and others.
921176
921176
%package devel
921176
Summary: Development files for %{name}
921176
Requires: %{name}%{?_isa} = %{version}-%{release}
921176
Requires: qt5-qtbase-devel%{?_isa}
921176
%description devel
921176
%{summary}.
921176
921176
%package examples
921176
Summary: Programming examples for %{name}
921176
Requires: %{name}%{?_isa} = %{version}-%{release}
921176
%description examples
921176
%{summary}.
921176
483594
%if 0%{?build_tests}
483594
%package tests
483594
Summary: Unit tests for %{name}
483594
Requires: %{name}%{?_isa} = %{version}-%{release}
483594
483594
%description tests
483594
%{summary}.
483594
%endif
483594
921176
921176
%prep
921176
%autosetup -n %{qt_module}-everywhere-src-%{version} -p1
921176
921176
921176
%build
483594
%{qmake_qt5} \
921176
  %{?_qt5_examplesdir:CONFIG+=qt_example_installs}
921176
921176
%make_build
921176
483594
%if 0%{?build_tests}
483594
make sub-tests %{?_smp_mflags} -k ||:
483594
%endif
921176
921176
483594
%install
483594
make install INSTALL_ROOT=%{buildroot}
483594
483594
%if 0%{?build_tests}
483594
# Install tests for gating
483594
mkdir -p %{buildroot}%{_qt5_libdir}/qt5
483594
find ./tests -not -path '*/\.*' -type d | while read LINE
483594
do
483594
    mkdir -p "%{buildroot}%{_qt5_libdir}/qt5/$LINE"
483594
done
483594
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
483594
do
483594
    cp -r --parents "$LINE" %{buildroot}%{_qt5_libdir}/qt5/
483594
done
483594
%endif
921176
921176
%ldconfig_scriptlets
921176
921176
%files
921176
%license LICENSE.*
921176
%{_qt5_libdir}/libQt5SerialBus.so.5*
921176
%{_qt5_bindir}/canbusutil
921176
%{_qt5_plugindir}/canbus
921176
921176
%files devel
921176
%{_qt5_headerdir}/QtSerialBus/
921176
%{_qt5_libdir}/libQt5SerialBus.so
921176
%{_qt5_libdir}/libQt5SerialBus.prl
921176
%dir %{_qt5_libdir}/cmake/Qt5SerialBus/
921176
%{_qt5_libdir}/cmake/Qt5SerialBus
921176
%{_qt5_libdir}/pkgconfig/Qt5SerialBus.pc
483594
%{_qt5_archdatadir}/mkspecs/modules/*
921176
%exclude %{_qt5_libdir}/libQt5SerialBus.la
921176
921176
# no examples, yet
921176
%if 0%{?_qt5_examplesdir:1}
921176
%files examples
921176
%{_qt5_examplesdir}/
921176
%endif
921176
483594
%if 0%{?build_tests}
483594
%files tests
483594
%{_qt5_libdir}/qt5/tests
483594
%endif
483594
921176
921176
%changelog
8f4e3b
* Tue Aug 24 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-3
8f4e3b
- Rebuild to include -devel subpkg into RHEL 8 repositories
8f4e3b
  Resolves: bz#1995639
8f4e3b
8f4e3b
* Wed Apr 28 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-2
8f4e3b
- Rebuild (binutils)
8f4e3b
  Resolves: bz#1930053
8f4e3b
8f4e3b
* Mon Apr 05 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-1
8f4e3b
- 5.15.2
8f4e3b
  Resolves: bz#1930053
8f4e3b
483594
* Mon Nov 18 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.5-1
483594
- 5.12.5
483594
  Resolves: bz#1733149
483594
921176
* Mon Dec 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-2
921176
- Rebuild to fix CET notes
921176
  Resolves: bz#1657223
921176
921176
* Tue Jul 03 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-1
921176
- 5.11.1
921176
921176
* Wed Feb 14 2018 Jan Grulich <jgrulich@redhat.com> - 5.10.1-1
921176
- 5.10.1
921176
921176
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.10.0-2
921176
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
921176
921176
* Wed Jan 03 2018 Rex Dieter <rdieter@fedoraproject.org> 5.10.0-1
921176
- 5.10.0
921176
921176
* Thu Nov 23 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.3-1
921176
- 5.9.3
921176
921176
* Tue Oct 17 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.2-2
921176
- BR: qt5-qtbase-private-devel, cosmetics
921176
921176
* Mon Oct 09 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.2-1
921176
- 5.9.2
921176
921176
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.0-3
921176
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
921176
921176
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.0-2
921176
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
921176
921176
* Wed May 31 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-1
921176
- Upstream official release
921176
921176
* Fri May 26 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.1.rc
921176
- Upstream Release Candidate retagged
921176
921176
* Wed May 24 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.rc.1
921176
- Upstream Release Candidate 1
921176
921176
* Fri May 05 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.beta.3
921176
- New upstream beta3 release
921176
921176
* Sun Apr 16 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.beta.1
921176
- New upstream beta release
921176
921176
* Wed Feb 01 2017 Helio Chissini de Castro <helio@kde.org> - 5.8.0-1
921176
- New upstream version
921176
921176
* Sat Dec 17 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.1-2
921176
- updated sources, drop pkgconfig-style deps (for now)
921176
921176
* Thu Nov 10 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.1-1
921176
- New upstream version
921176
921176
* Tue Jul 05 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-1
921176
- New Qt 5.7.0 package