qt5-qtserialport/qt5-qtserialport.spec

87 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

%define majver %(echo %version | cut -d. -f1-2)
Name: qt5-qtserialport
Version: 5.15.7
Release: 1mamba
Summary: Qt5 serial port component
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.qt.io/
Source: https://download.qt.io/official_releases/qt/%{majver}/%{version}/submodules/qtserialport-everywhere-opensource-src-%{version}.tar.xz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: libudev-devel
BuildRequires: qt5-qtbase-devel
## AUTOBUILDREQ-END
%description
Qt5 serial port component.
%package -n libQt5SerialPort
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n libQt5SerialPort
This package contains shared libraries for %{name}.
%package -n libQt5SerialPort-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: libQt5SerialPort = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n libQt5SerialPort-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n qtserialport-everywhere-src-%{version}
%build
%_qt5_qmake
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall INSTALL_ROOT=%{buildroot} STRIP=/bin/true
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libQt5SerialPort -p /sbin/ldconfig
%postun -n libQt5SerialPort -p /sbin/ldconfig
%files -n libQt5SerialPort
%defattr(-,root,root)
%{_libdir}/libQt5SerialPort.so.*
%doc LICENSE.*
%files -n libQt5SerialPort-devel
%defattr(-,root,root)
%dir %{_includedir}/qt5/QtSerialPort
%{_includedir}/qt5/QtSerialPort/*
%{_libdir}/libQt5SerialPort.prl
%{_libdir}/libQt5SerialPort.so
%{_libdir}/qt5/mkspecs/modules/qt_lib_serialport.pri
%{_libdir}/qt5/mkspecs/modules/qt_lib_serialport_private.pri
%dir %{_libdir}/cmake/Qt5SerialPort
%{_libdir}/cmake/Qt5SerialPort/Qt5SerialPortConfig*.cmake
%{_libdir}/pkgconfig/Qt5SerialPort.pc
%changelog
* Mon Nov 07 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.7-1mamba
- update to 5.15.7
* Sat Nov 06 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.2-2mamba
- bump release
* Sat Nov 06 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.2-1mamba
- package created using the webbuild interface