Group :: System/Libraries
RPM: qt6-serialport
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define qdoc_found %{expand:%%(if [ -e %_qt6_bindir/qdoc ]; then echo 1; else echo 0; fi)}
%global qt_module qtserialport
Name: qt6-serialport
Version: 6.2.4
Release: alt1
Group: System/Libraries
Summary: Qt6 - SerialPort component
Url: http://qt.io/
License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later)
Source: %qt_module-everywhere-src-%version.tar
BuildRequires(pre): rpm-macros-qt6 qt6-tools
BuildRequires: cmake glibc-devel qt6-base-devel qt6-tools-devel
BuildRequires: pkgconfig(libudev)
%description
Qt Serial Port provides the basic functionality, which includes configuring,
I/O operations, getting and setting the control signals of the RS-232 pinouts.
%package common
Summary: Common package for %name
Group: System/Configuration/Other
BuildArch: noarch
Requires: qt6-base-common
%description common
Common package for %name
%package devel
Group: Development/KDE and QT
Summary: Development files for %name
Requires: %name-common = %EVR
Requires: qt6-base-devel
%description devel
%summary.
%package devel-static
Group: Development/KDE and QT
Summary: Development files for %name
Requires: %name-common = %EVR
Requires: %name-devel
%description devel-static
%summary.
%package doc
Summary: Document for developing apps which will use Qt6 %qt_module
Group: Development/KDE and QT
Requires: %name-common = %EVR
%description doc
This package contains documentation for Qt6 %qt_module
%package -n libqt6-serialport
Summary: Qt6 library
Group: System/Libraries
Requires: %name-common = %EVR
%description -n libqt6-serialport
%summary
%prep
%setup -n %qt_module-everywhere-src-%version
%build
%Q6build
%if %qdoc_found
%make -C BUILD docs
%endif
%install
%Q6install_qt
%if %qdoc_found
%make -C BUILD DESTDIR=%buildroot install_docs ||:
%endif
%files common
%files -n libqt6-serialport
%doc LICENSE*EXCEPT*
%_qt6_libdir/libQt?SerialPort.so.*
%files devel
%_qt6_headerdir/Qt*/
%_qt6_libdatadir/libQt*.so
%_qt6_libdatadir/libQt*.prl
%_qt6_libdir/libQt*.so
%_qt6_libdir/libQt*.prl
%_qt6_libdir/cmake/Qt*/
%_qt6_archdatadir/mkspecs/modules/qt_lib_*.pri
%_qt6_libdir/metatypes/qt6*.json
%_qt6_datadir/modules/*.json
%files doc
%if %qdoc_found
%_qt6_docdir/*
%endif
#%_qt6_examplesdir/*
%changelog
…
Full changelog you can see here
%global qt_module qtserialport
Name: qt6-serialport
Version: 6.2.4
Release: alt1
Group: System/Libraries
Summary: Qt6 - SerialPort component
Url: http://qt.io/
License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later)
Source: %qt_module-everywhere-src-%version.tar
BuildRequires(pre): rpm-macros-qt6 qt6-tools
BuildRequires: cmake glibc-devel qt6-base-devel qt6-tools-devel
BuildRequires: pkgconfig(libudev)
%description
Qt Serial Port provides the basic functionality, which includes configuring,
I/O operations, getting and setting the control signals of the RS-232 pinouts.
%package common
Summary: Common package for %name
Group: System/Configuration/Other
BuildArch: noarch
Requires: qt6-base-common
%description common
Common package for %name
%package devel
Group: Development/KDE and QT
Summary: Development files for %name
Requires: %name-common = %EVR
Requires: qt6-base-devel
%description devel
%summary.
%package devel-static
Group: Development/KDE and QT
Summary: Development files for %name
Requires: %name-common = %EVR
Requires: %name-devel
%description devel-static
%summary.
%package doc
Summary: Document for developing apps which will use Qt6 %qt_module
Group: Development/KDE and QT
Requires: %name-common = %EVR
%description doc
This package contains documentation for Qt6 %qt_module
%package -n libqt6-serialport
Summary: Qt6 library
Group: System/Libraries
Requires: %name-common = %EVR
%description -n libqt6-serialport
%summary
%prep
%setup -n %qt_module-everywhere-src-%version
%build
%Q6build
%if %qdoc_found
%make -C BUILD docs
%endif
%install
%Q6install_qt
%if %qdoc_found
%make -C BUILD DESTDIR=%buildroot install_docs ||:
%endif
%files common
%files -n libqt6-serialport
%doc LICENSE*EXCEPT*
%_qt6_libdir/libQt?SerialPort.so.*
%files devel
%_qt6_headerdir/Qt*/
%_qt6_libdatadir/libQt*.so
%_qt6_libdatadir/libQt*.prl
%_qt6_libdir/libQt*.so
%_qt6_libdir/libQt*.prl
%_qt6_libdir/cmake/Qt*/
%_qt6_archdatadir/mkspecs/modules/qt_lib_*.pri
%_qt6_libdir/metatypes/qt6*.json
%_qt6_datadir/modules/*.json
%files doc
%if %qdoc_found
%_qt6_docdir/*
%endif
#%_qt6_examplesdir/*
%changelog
…
Full changelog you can see here