%global qt_module qtopcua %global debug_package %{nil} Summary: Qt5 - OPC UA component Name: qt5-%{qt_module} Version: 5.15.12 Release: 1%{?dist} # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details License: LGPLv2 with exceptions or GPLv3 with exceptions Url: http://www.qt.io %global majmin %(echo %{version} | cut -d. -f1-2) Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-opensource-src-%{version}.tar.xz Patch0: qtopcua_openssl.patch BuildRequires: qt5-qtbase-devel >= %{version} BuildRequires: qt5-qtbase-private-devel #libQt5Core.so.5(Qt_5_PRIVATE_API)(64bit) %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} BuildRequires: openssl-devel BuildRequires: mbedtls-devel #BuildRequires: open62541-devel %description Qt OPC UA (API) provides classes and functions to access the OPC UA bus protocol %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: qt5-qtbase-devel%{?_isa} %description devel %{summary}. %package examples Summary: Programming examples for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description examples %{summary}. %prep %autosetup -n %{qt_module}-everywhere-src-%{version} -p1 %build export CFLAGS+=-Wformat export CXXFLAGS+=-Wformat %{qmake_qt5} # \ # -- -system-open62541 OPEN62541_PREFIX=/usr %make_build %install make install INSTALL_ROOT=%{buildroot} %ldconfig_scriptlets %files %license LICENSE.* %{_qt5_libdir}/libQt5OpcUa.so.* %{_qt5_plugindir}/opcua/libopen62541_backend.so %files devel %{_qt5_headerdir}/QtOpcUa/ %{_qt5_libdir}/libQt5OpcUa.so %{_qt5_libdir}/libQt5OpcUa.prl %{_qt5_libdir}/cmake/Qt5OpcUa %{_qt5_libdir}/pkgconfig/Qt5OpcUa.pc %{_qt5_archdatadir}/mkspecs/modules/* %exclude %{_qt5_libdir}/libQt5OpcUa.la %files examples %{_qt5_examplesdir}/ %changelog * Sat Feb 17 2024 Marie Loise Nolden - 5.15.12-1 - 5.15.12 * Sat Dec 09 2023 Marie Loise Nolden - 5.15.11-1 - 5.15.11 * Tue Jun 13 2023 Marie Loise Nolden - 5.15.10-1 - 5.15.10 * Wed Apr 12 2023 Marie Loise Nolden - 5.15.9-1 - 5.15.9 * Sat Jan 07 2023 Marie Loise Nolden - 5.15.8-1 - 5.15.8 * Sat Dec 03 2022 Marie Loise Nolden - 5.15.7-1 - 5.15.7 * Tue Jul 26 2022 Marie Loise Nolden - 5.15.5-1 - 5.15.5 * Thu May 19 2022 Marie Loise Nolden - 5.15.4-1 - 5.15.4 * Mon Nov 23 2020 Marie Loise Nolden - 5.15.2-1 - 5.15.2 * Sun Sep 13 2020 Marie Loise Nolden - 5.15.1-1 - 5.15.1 * Sat Jun 13 2020 Marie Loise Nolden - 5.15.0-1 - initial version