diff --git a/README.md b/README.md index 3c32050..8bab0ea 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libsysstat +libsysstat is a library to query system information like CPU and memory usage or network traffic. Conceptually it's roughly similar to libstatgrab, a third-party library used by LXQt as well. + diff --git a/libsysstat.spec b/libsysstat.spec new file mode 100644 index 0000000..f7058c1 --- /dev/null +++ b/libsysstat.spec @@ -0,0 +1,72 @@ +Name: libsysstat +Version: 0.4.3 +Release: 1mamba +Summary: A library to query system information like CPU and memory usage or network traffic +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/lxqt/libsysstat +Source: https://github.com/lxqt/libsysstat.git/%{version}/libsysstat-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libgcc +BuildRequires: libqt5-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +libsysstat is a library to query system information like CPU and memory usage or network traffic. Conceptually it's roughly similar to libstatgrab, a third-party library used by LXQt as well. + +%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 + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libsysstat-qt5.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/sysstat-qt5 +%dir %{_includedir}/sysstat-qt5/SysStat +%{_includedir}/sysstat-qt5/SysStat/* +%{_includedir}/sysstat-qt5/*.h +%{_libdir}/libsysstat-qt5.so +%{_libdir}/pkgconfig/sysstat-qt5.pc +%dir %{_datadir}/cmake/sysstat-qt5 +%{_datadir}/cmake/sysstat-qt5/sysstat-qt5-*.cmake +%doc README.md + +%changelog +* Fri Oct 02 2020 Silvan Calarco 0.4.3-1mamba +- package created using the webbuild interface