3 %bcond_without log4cplus # log4cplus based logging
5 Summary: Easy-to-use interface for accessing system statistics and information
6 Summary(pl.UTF-8): Łatwy w użyciu interfejs dostępu do statystyk i informacji o systemie
12 #Source0Download: https://github.com/libstatgrab/libstatgrab/releases/
13 Source0: https://github.com/libstatgrab/libstatgrab/releases/download/LIBSTATGRAB_0_92_1/%{name}-%{version}.tar.gz
14 # Source0-md5: af685494e985229e0ac46365bc0cd50e
15 Patch0: %{name}-Makefile_fix.patch
16 URL: https://libstatgrab.org/
17 BuildRequires: autoconf >= 2.69
18 BuildRequires: automake
19 BuildRequires: libtool >= 2:2
20 BuildRequires: linux-libc-headers >= 7:2.6.11.1-2
21 %{?with_log4cplus:BuildRequires: log4cplus-devel >= 1.0.5}
22 %{?with_log4cplus:Requires: log4cplus >= 1.0.5}
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The libstatgrab library provides an easy-to-use interface for
27 accessing system statistics and information. Available statistics
28 include CPU, Load, Memory, Swap, Disk I/O, and Network I/O. It was
29 developed to work on Linux, FreeBSD, and Solaris. The package also
30 includes two tools: saidar provides a curses-based interface for
31 viewing live system statistics, and statgrab is a sysctl-like
32 interface to the statistics.
34 %description -l pl.UTF-8
35 Biblioteka libstatgrab dostarcza łatwego w użyciu interfejsu dostępu
36 do informacji i statystyk systemowych. Dostępne statystyki obejmują
37 CPU, obciążenie, pamięć swap, dyskowe i sieciowe operacje we./wy. .
38 libstatgrab został stworzony by działać na linuksie, FreeBSD i
39 Solarisie. Pakiet zawiera także dwa narzędzia: saidar dostarcza
40 bazującego na curses interfejsu do przeglądania statystyk systemu i
41 statgrab, który jest interfejsem podobnym do sysctl dla statystyk.
44 Summary: Header files for libstatgrab library
45 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libstatgrab
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
48 %{?with_log4cplus:Requires: log4cplus-devel >= 1.0.5}
51 Header files for libstatgrab library.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe biblioteki libstatgrab.
57 Summary: Static libstatgrab library
58 Summary(pl.UTF-8): Statyczna biblioteka libstatgrab
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
63 Static libstatgrab library.
65 %description static -l pl.UTF-8
66 Statyczna biblioteka libstatgrab.
69 Summary: sysctl-style interface to system statistics
70 Summary(pl.UTF-8): Podobny do sysctl interfejs do statystyk systemu
72 Group: Applications/System
73 Requires: %{name} = %{version}-%{release}
75 %description -n statgrab
76 statgrab provides a sysctl-style interface to all the system
77 statistics available through libstatgrab. This is useful for
78 applications that don't want to make library calls, but still want to
79 access the statistics.
81 An example of such an application is mrtg, for which scripts are
82 provided to generate configuration files.
84 %description -n statgrab -l pl.UTF-8
85 statgrab udostępnia podobny do sysctl interfejs do wszystkich
86 statystyk systemu dostępnych poprzez libstatgrab. Jest to przydatne
87 dla aplikacji nie chcących wykonywać wywołań bibliotecznych, ale
88 chcących mieć dostęp do statystyk.
90 Przykładem takiej aplikacji jest mrtg, dla którego dostępne są
91 skrypty do generowania plików konfiguracyjnych.
94 Summary: A curses-based tool for viewing system statistics
95 Summary(pl.UTF-8): Oparte na curses narzędzie do oglądania statystyk systemu
97 Group: Applications/System
98 Requires: %{name} = %{version}-%{release}
100 %description -n saidar
101 saidar is a curses-based tool for viewing the system statistics
102 available through libstatgrab. Statistics include CPU, processes,
103 load, memory, swap, network I/O, disk I/O, and file system
106 %description -n saidar -l pl.UTF-8
107 saidar to oparte na curses narzędzie do oglądania statystyk systemu
108 dostępnych poprzez libstatgrab. Statystyki obejmują informacje o
109 procesorach, procesach, obciążeniu, pamięci, swapie, operacjach we/wy
110 sieciowych i dyskowych oraz systemach plików.
123 --with-curses-prefix=/usr \
125 --disable-setgid-binaries \
126 --disable-setuid-binaries \
127 %{?with_log4cplus:--enable-logging}
132 rm -rf $RPM_BUILD_ROOT
135 DESTDIR=$RPM_BUILD_ROOT
137 # obsoleted by pkg-config
138 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libstatgrab.la
141 rm -rf $RPM_BUILD_ROOT
143 %post -p /sbin/ldconfig
144 %postun -p /sbin/ldconfig
147 %defattr(644,root,root,755)
148 %doc AUTHORS ChangeLog NEWS README PLATFORMS
149 %attr(755,root,root) %{_libdir}/libstatgrab.so.*.*.*
150 %attr(755,root,root) %ghost %{_libdir}/libstatgrab.so.10
153 %defattr(644,root,root,755)
155 %attr(755,root,root) %{_libdir}/libstatgrab.so
156 %{_includedir}/statgrab*.h
157 %{_pkgconfigdir}/libstatgrab.pc
158 %{_mandir}/man3/libstatgrab.3*
159 %{_mandir}/man3/sg_*.3*
160 %{_mandir}/man3/statgrab.3*
163 %defattr(644,root,root,755)
164 %{_libdir}/libstatgrab.a
167 %defattr(644,root,root,755)
168 %attr(755,root,root) %{_bindir}/statgrab*
169 %if %{with log4cplus}
170 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/statgrab.properties
172 %{_mandir}/man1/statgrab*.1*
175 %defattr(644,root,root,755)
176 %attr(755,root,root) %{_bindir}/saidar
177 %if %{with log4cplus}
178 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/saidar.properties
180 %{_mandir}/man1/saidar.1*