import qt5-qtserialbus-5.12.5-1.el8
This commit is contained in:
parent
d4730b38c6
commit
c7c44854f6
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/qtserialbus-everywhere-src-5.11.1.tar.xz
|
SOURCES/qtserialbus-everywhere-src-5.12.5.tar.xz
|
||||||
|
@ -1 +1 @@
|
|||||||
0f383e30e6c3f1dd0bbbdddd446c3d4e998ae4b2 SOURCES/qtserialbus-everywhere-src-5.11.1.tar.xz
|
8d3e72216d094c0a2d73fae643c1dc3c45c7b3e9 SOURCES/qtserialbus-everywhere-src-5.12.5.tar.xz
|
||||||
|
16
SOURCES/qtserialbus-everywhere-src-5.12.3-SIOCGSTAMP.patch
Normal file
16
SOURCES/qtserialbus-everywhere-src-5.12.3-SIOCGSTAMP.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
diff --git a/src/plugins/canbus/socketcan/socketcanbackend.cpp b/src/plugins/canbus/socketcan/socketcanbackend.cpp
|
||||||
|
index 74b0d1d..03a3d14 100644
|
||||||
|
--- a/src/plugins/canbus/socketcan/socketcanbackend.cpp
|
||||||
|
+++ b/src/plugins/canbus/socketcan/socketcanbackend.cpp
|
||||||
|
@@ -51,6 +51,11 @@
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
+// Seems that kernel 5.2.0 renames this define to SIOCGSTAMP_OLD
|
||||||
|
+#ifndef SIOCGSTAMP
|
||||||
|
+#define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#ifndef CANFD_MTU
|
||||||
|
// CAN FD support was added by Linux kernel 3.6
|
||||||
|
// For prior kernels we redefine the missing defines here
|
@ -1,9 +1,11 @@
|
|||||||
%global qt_module qtserialbus
|
%global qt_module qtserialbus
|
||||||
|
|
||||||
|
%global build_tests 1
|
||||||
|
|
||||||
Summary: Qt5 - SerialPort component
|
Summary: Qt5 - SerialPort component
|
||||||
Name: qt5-%{qt_module}
|
Name: qt5-%{qt_module}
|
||||||
Version: 5.11.1
|
Version: 5.12.5
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
|
|
||||||
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
|
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
|
||||||
License: LGPLv2 with exceptions or GPLv3 with exceptions
|
License: LGPLv2 with exceptions or GPLv3 with exceptions
|
||||||
@ -11,6 +13,10 @@ Url: http://www.qt.io
|
|||||||
%global majmin %(echo %{version} | cut -d. -f1-2)
|
%global majmin %(echo %{version} | cut -d. -f1-2)
|
||||||
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-src-%{version}.tar.xz
|
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-src-%{version}.tar.xz
|
||||||
|
|
||||||
|
## upstreamable patches
|
||||||
|
# workaround FTBFS against kernel-header-5.2.0+
|
||||||
|
Patch100: qtserialbus-everywhere-src-5.12.3-SIOCGSTAMP.patch
|
||||||
|
|
||||||
BuildRequires: qt5-qtbase-devel >= %{version}
|
BuildRequires: qt5-qtbase-devel >= %{version}
|
||||||
BuildRequires: qt5-qtbase-private-devel
|
BuildRequires: qt5-qtbase-private-devel
|
||||||
#libQt5Core.so.5(Qt_5_PRIVATE_API)(64bit)
|
#libQt5Core.so.5(Qt_5_PRIVATE_API)(64bit)
|
||||||
@ -18,8 +24,8 @@ BuildRequires: qt5-qtbase-private-devel
|
|||||||
BuildRequires: qt5-qtserialport-devel >= %{version}
|
BuildRequires: qt5-qtserialport-devel >= %{version}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Qt Serial Port provides the basic functionality, which includes configuring,
|
Qt Serial Bus (API) provides classes and functions to access the various
|
||||||
I/O operations, getting and setting the control signals of the RS-232 pinouts.
|
industrial serial buses and protocols, such as CAN, ModBus, and others.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
@ -34,23 +40,46 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||||||
%description examples
|
%description examples
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
|
%if 0%{?build_tests}
|
||||||
|
%package tests
|
||||||
|
Summary: Unit tests for %{name}
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description tests
|
||||||
|
%{summary}.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{qt_module}-everywhere-src-%{version} -p1
|
%autosetup -n %{qt_module}-everywhere-src-%{version} -p1
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir %{_target_platform}
|
%{qmake_qt5} \
|
||||||
pushd %{_target_platform}
|
|
||||||
%{qmake_qt5} .. \
|
|
||||||
%{?_qt5_examplesdir:CONFIG+=qt_example_installs}
|
%{?_qt5_examplesdir:CONFIG+=qt_example_installs}
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
%if 0%{?build_tests}
|
||||||
|
make sub-tests %{?_smp_mflags} -k ||:
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
|
make install INSTALL_ROOT=%{buildroot}
|
||||||
|
|
||||||
|
%if 0%{?build_tests}
|
||||||
|
# Install tests for gating
|
||||||
|
mkdir -p %{buildroot}%{_qt5_libdir}/qt5
|
||||||
|
find ./tests -not -path '*/\.*' -type d | while read LINE
|
||||||
|
do
|
||||||
|
mkdir -p "%{buildroot}%{_qt5_libdir}/qt5/$LINE"
|
||||||
|
done
|
||||||
|
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
|
||||||
|
do
|
||||||
|
cp -r --parents "$LINE" %{buildroot}%{_qt5_libdir}/qt5/
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
@ -67,7 +96,7 @@ make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
|
|||||||
%dir %{_qt5_libdir}/cmake/Qt5SerialBus/
|
%dir %{_qt5_libdir}/cmake/Qt5SerialBus/
|
||||||
%{_qt5_libdir}/cmake/Qt5SerialBus
|
%{_qt5_libdir}/cmake/Qt5SerialBus
|
||||||
%{_qt5_libdir}/pkgconfig/Qt5SerialBus.pc
|
%{_qt5_libdir}/pkgconfig/Qt5SerialBus.pc
|
||||||
%{_qt5_prefix}/mkspecs/modules/*
|
%{_qt5_archdatadir}/mkspecs/modules/*
|
||||||
%exclude %{_qt5_libdir}/libQt5SerialBus.la
|
%exclude %{_qt5_libdir}/libQt5SerialBus.la
|
||||||
|
|
||||||
# no examples, yet
|
# no examples, yet
|
||||||
@ -76,8 +105,17 @@ make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
|
|||||||
%{_qt5_examplesdir}/
|
%{_qt5_examplesdir}/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?build_tests}
|
||||||
|
%files tests
|
||||||
|
%{_qt5_libdir}/qt5/tests
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 18 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.5-1
|
||||||
|
- 5.12.5
|
||||||
|
Resolves: bz#1733149
|
||||||
|
|
||||||
* Mon Dec 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-2
|
* Mon Dec 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-2
|
||||||
- Rebuild to fix CET notes
|
- Rebuild to fix CET notes
|
||||||
Resolves: bz#1657223
|
Resolves: bz#1657223
|
||||||
|
Loading…
Reference in New Issue
Block a user