qt6-qtserialport/qt6-qtserialport.spec

108 lines
3.2 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
Name: qt6-qtserialport
Version: 6.4.0
Release: 1mamba
Summary: Qt6 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-src-%{version}.tar.xz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: libudev-devel
BuildRequires: qt6-qtbase-devel
## AUTOBUILDREQ-END
%description
Qt6 serial port component.
%package -n libQt6SerialPort
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n libQt6SerialPort
This package contains shared libraries for %{name}.
%package -n libQt6SerialPort-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: libQt6SerialPort = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n libQt6SerialPort-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
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libQt6SerialPort -p /sbin/ldconfig
%postun -n libQt6SerialPort -p /sbin/ldconfig
%files -n libQt6SerialPort
%defattr(-,root,root)
%{_libdir}/libQt6SerialPort.so.*
%doc LICENSES
%files -n libQt6SerialPort-devel
%defattr(-,root,root)
%dir %{_includedir}/qt6/QtSerialPort
%{_includedir}/qt6/QtSerialPort/*
%{_libdir}/libQt6SerialPort.prl
%{_libdir}/libQt6SerialPort.so
%{_libdir}/metatypes/qt6serialport_release_metatypes.json
%{_datadir}/qt6/modules/SerialPort.json
%{_libdir}/qt6/mkspecs/modules/qt_lib_serialport.pri
%{_libdir}/qt6/mkspecs/modules/qt_lib_serialport_private.pri
%dir %{_libdir}/cmake/Qt6SerialPort
%{_libdir}/cmake/Qt6SerialPort/Qt6SerialPort*.cmake
%{_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtSerialPortTestsConfig.cmake
%{_libdir}/pkgconfig/Qt6SerialPort.pc
%changelog
* Fri Oct 07 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 6.4.0-1mamba
- update to 6.4.0
* Sun Sep 11 2022 Automatic Build System <autodist@mambasoft.it> 6.3.2-1mamba
- automatic version update by autodist
* Sat Jun 18 2022 Automatic Build System <autodist@mambasoft.it> 6.3.1-1mamba
- automatic version update by autodist
* Mon Apr 11 2022 Automatic Build System <autodist@mambasoft.it> 6.3.0-1mamba
- automatic version update by autodist
* Sat Mar 19 2022 Automatic Build System <autodist@mambasoft.it> 6.2.4-1mamba
- automatic version update by autodist
* Sat Jan 29 2022 Automatic Build System <autodist@mambasoft.it> 6.2.3-1mamba
- automatic version update by autodist
* Thu Jan 27 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 6.2.2-1mamba
- update to 6.2.2
* 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