diff --git a/README.md b/README.md index 028e82e..d276e92 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libstatgrab +A library that provides cross platform access to statistics about the system on which it’s run. + diff --git a/libstatgrab.spec b/libstatgrab.spec new file mode 100644 index 0000000..56f5e07 --- /dev/null +++ b/libstatgrab.spec @@ -0,0 +1,89 @@ +%define gitver %(echo %version | tr . _) +Name: libstatgrab +Version: 0.92 +Release: 1mamba +Summary: A library that provides cross platform access to statistics about the system on which it’s run +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://libstatgrab.org/ +Source: https://github.com/libstatgrab/libstatgrab.git/LIBSTATGRAB_%{gitver}/libstatgrab-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libncurses-devel +BuildRequires: perl-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A library that provides cross platform access to statistics about the system on which it’s run. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: %{name}-tools = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package tools +Group: System/Tools +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%debug_package + +%prep +%setup -q +./autogen.sh + +%build +%configure \ + --disable-man + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libstatgrab.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/statgrab.h +%{_libdir}/libstatgrab.a +%{_libdir}/libstatgrab.la +%{_libdir}/libstatgrab.so +%{_libdir}/pkgconfig/libstatgrab.pc +%dir %{_docdir}/libstatgrab +%{_docdir}/libstatgrab/* +%doc NEWS README README.md + +%files tools +%defattr(-,root,root) +%{_bindir}/saidar +%{_bindir}/statgrab +%{_bindir}/statgrab-make-mrtg-config +%{_bindir}/statgrab-make-mrtg-index + +%changelog +* Fri Oct 02 2020 Silvan Calarco 0.92-1mamba +- package created using the webbuild interface