diff --git a/README.md b/README.md index e05e640..c04163f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # qt5-qtserialbus +Qt5 serial bus components. + diff --git a/qt5-qtserialbus.spec b/qt5-qtserialbus.spec new file mode 100644 index 0000000..fa3ec63 --- /dev/null +++ b/qt5-qtserialbus.spec @@ -0,0 +1,81 @@ +%define majver %(echo %version | cut -d. -f1-2) + +Name: qt5-qtserialbus +Version: 5.15.2 +Release: 2mamba +Summary: Qt5 serial bus components +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.qt.io/ +Source: https://download.qt.io/official_releases/qt/%{majver}/%{version}/submodules/qtserialbus-everywhere-src-%{version}.tar.xz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +BuildRequires: qt5-qtbase-devel +## AUTOBUILDREQ-END +Provides: libqt5-canbus +Obsoletes: libqt5-canbus <= 5.15.2-1mamba + +%description +Qt5 serial bus components. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q -n qtserialbus-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 -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/qt5/bin/canbusutil +%{_libdir}/libQt5SerialBus.so.* +%dir %{_libdir}/qt5/plugins/canbus +%{_libdir}/qt5/plugins/canbus/libqt*.so +%doc LICENSE.* + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/qt5/QtSerialBus +%{_includedir}/qt5/QtSerialBus/* +%{_libdir}/libQt5SerialBus.la +%{_libdir}/libQt5SerialBus.prl +%{_libdir}/libQt5SerialBus.so +%{_libdir}/qt5/mkspecs/modules/qt_lib_serialbus.pri +%{_libdir}/qt5/mkspecs/modules/qt_lib_serialbus_private.pri +%dir %{_libdir}/cmake/Qt5SerialBus +%{_libdir}/cmake/Qt5SerialBus/Qt5SerialBus*.cmake +%{_libdir}/pkgconfig/Qt5SerialBus.pc + +%changelog +* Sat Nov 06 2021 Silvan Calarco 5.15.2-2mamba +- bump release + +* Sat Nov 06 2021 Silvan Calarco 5.15.2-1mamba +- package created using the webbuild interface