2005-07-08 07:22:42 +00:00
|
|
|
%define shortname statgrab
|
|
|
|
|
|
|
|
Summary: Make system statistics
|
|
|
|
Name: libstatgrab
|
|
|
|
|
2011-04-10 17:55:36 +00:00
|
|
|
Version: 0.17
|
2013-08-03 07:07:51 +00:00
|
|
|
Release: 6%{?dist}
|
2005-07-08 07:22:42 +00:00
|
|
|
|
2006-04-20 09:30:51 +00:00
|
|
|
Source0: http://ftp.i-scream.org/pub/i-scream/%{name}/%{name}-%{version}.tar.gz
|
2005-07-08 07:22:42 +00:00
|
|
|
Patch0: %{name}.nochmod.patch
|
|
|
|
|
2007-08-20 15:54:02 +00:00
|
|
|
License: LGPLv2+
|
2005-07-08 07:22:42 +00:00
|
|
|
Group: System Environment/Libraries
|
|
|
|
URL: http://www.i-scream.org/%{name}/
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: libtool ncurses-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
Libstatgrab is a library that provides cross platform access to statistics
|
|
|
|
about the system on which it's run. It's written in C and presents a selection
|
|
|
|
of useful interfaces which can be used to access key system statistics. The
|
|
|
|
current list of statistics includes CPU usage, memory utilisation, disk usage,
|
|
|
|
process counts, network traffic, disk I/O, and more.
|
|
|
|
|
|
|
|
The current list of platforms is Solaris 2.x, Linux, and FreeBSD 4.x/5.x.
|
|
|
|
The aim is to extend this to include as many operating systems as possible.
|
|
|
|
|
|
|
|
The package also includes a couple of useful tools. The first, saidar,
|
|
|
|
provides a curses-based interface to viewing the current state of the
|
|
|
|
system. The second, statgrab, gives a sysctl-style interface to the
|
|
|
|
statistics gathered by libstatgrab. This extends the use of libstatgrab
|
|
|
|
to people writing scripts or anything else that can't easily make C
|
|
|
|
function calls. Included with statgrab is a script to generate an MRTG
|
|
|
|
configuration file to use statgrab.
|
|
|
|
|
|
|
|
%package -n %{shortname}-tools
|
|
|
|
Summary: Tools from %{name} to monitoring the system
|
2007-08-20 15:54:02 +00:00
|
|
|
License: GPLv2+
|
2005-07-08 07:22:42 +00:00
|
|
|
Group: Applications/System
|
|
|
|
|
|
|
|
%description -n %{shortname}-tools
|
|
|
|
This package contains a few tools shiped with libstatgrab.
|
|
|
|
Eg. A tool called saidar, which shows various system
|
|
|
|
information like top, but - of course - OTHER informations.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: The development files from %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains header files and man pages for those
|
|
|
|
use to develop libstatgrab based applications.
|
|
|
|
|
|
|
|
%package examples
|
|
|
|
Summary: The example files from %{name}
|
2007-08-20 15:54:02 +00:00
|
|
|
License: GPLv2+
|
2005-07-08 07:22:42 +00:00
|
|
|
Group: Development/Tools
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description examples
|
|
|
|
This package contains various examples used to show how
|
|
|
|
to develop libstatgrab based applications.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p0
|
|
|
|
|
|
|
|
%build
|
2010-02-12 13:20:08 +00:00
|
|
|
%configure --with-ncurses --disable-static
|
2007-08-20 15:54:02 +00:00
|
|
|
|
|
|
|
# remove rpath from libtool
|
|
|
|
# shamelessly stolen from cinepaint.spec (thanks!)
|
|
|
|
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
|
2005-07-08 07:22:42 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
cd examples/.libs
|
|
|
|
install -m 755 cpu_usage disk_traffic load_stats network_iface_stats \
|
2007-01-24 19:45:06 +00:00
|
|
|
network_traffic os_info page_stats process_snapshot \
|
|
|
|
process_stats user_list vm_stats $RPM_BUILD_ROOT%{_bindir}
|
2005-07-08 07:22:42 +00:00
|
|
|
chmod 755 $RPM_BUILD_ROOT%{_bindir}/statgrab-make-mrtg-config
|
|
|
|
chmod 755 $RPM_BUILD_ROOT%{_bindir}/saidar
|
|
|
|
chmod 755 $RPM_BUILD_ROOT%{_bindir}/statgrab
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %shortname-tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING
|
|
|
|
%{_bindir}/saidar
|
|
|
|
%{_bindir}/statgrab
|
|
|
|
%{_bindir}/statgrab-make-mrtg-config
|
|
|
|
%{_bindir}/statgrab-make-mrtg-index
|
|
|
|
%{_mandir}/*/statgrab*
|
2005-08-10 08:45:32 +00:00
|
|
|
%{_mandir}/*/saidar*
|
2005-07-08 07:22:42 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS INSTALL README ChangeLog NEWS COPYING.LGPL examples/*.c
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/*.la
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_libdir}/pkgconfig/%name.pc
|
|
|
|
%{_mandir}/*/sg_*
|
|
|
|
|
|
|
|
%files examples
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/cpu_usage
|
|
|
|
%{_bindir}/disk_traffic
|
|
|
|
%{_bindir}/load_stats
|
|
|
|
%{_bindir}/network_iface_stats
|
|
|
|
%{_bindir}/network_traffic
|
|
|
|
%{_bindir}/os_info
|
|
|
|
%{_bindir}/page_stats
|
|
|
|
%{_bindir}/process_snapshot
|
|
|
|
%{_bindir}/process_stats
|
|
|
|
%{_bindir}/user_list
|
|
|
|
%{_bindir}/vm_stats
|
|
|
|
|
|
|
|
%changelog
|
2013-08-03 07:07:51 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-17 08:02:59 +00:00
|
|
|
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.17-5
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-02-14 05:18:20 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-19 21:18:07 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-13 08:29:28 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-04-10 17:55:36 +00:00
|
|
|
* Sun Apr 10 2011 Sven Lankes <sven@lank.es> - 0.17-1
|
|
|
|
- new upstream release
|
|
|
|
|
2011-02-08 11:53:35 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-27 13:12:30 +00:00
|
|
|
* Thu Jan 27 2011 Oliver Falk <oliver@linux-kernel.at> 0.16-5
|
|
|
|
- Rebuild for new perl-5.12.3
|
|
|
|
|
2010-02-12 13:20:08 +00:00
|
|
|
* Fri Feb 12 2010 Oliver Falk <oliver@linux-kernel.at> 0.16-4
|
|
|
|
- Disable building of static libs #556075
|
|
|
|
|
2009-07-25 08:42:11 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-25 19:07:29 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-03-20 08:49:19 +00:00
|
|
|
* Thu Mar 20 2008 Oliver Falk <oliver@linux-kernel.at> 0.16-1
|
|
|
|
- Update
|
|
|
|
|
2008-02-13 16:38:30 +00:00
|
|
|
* Wed Feb 13 2008 Patrick "Jima" Laughton <jima@beer.tclug.org> 0.15-2
|
|
|
|
- Bump-n-build for GCC 4.3
|
|
|
|
|
2007-08-20 15:54:02 +00:00
|
|
|
* Mon Aug 20 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 0.15-1
|
|
|
|
- New upstream version
|
|
|
|
- License clarification
|
|
|
|
- Fixed License tags for statgrab-tools and libstatgrab-examples
|
|
|
|
- Fix for rpath (problem found in previous versions, as well)
|
|
|
|
|
2007-01-24 19:45:06 +00:00
|
|
|
* Wed Jan 24 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 0.14-1
|
|
|
|
- New upstream version
|
|
|
|
- Minor cleanup for rpmlint warning
|
|
|
|
|
2006-10-04 19:50:08 +00:00
|
|
|
* Wed Oct 04 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> 0.13-3
|
|
|
|
- Bump-n-build
|
|
|
|
|
2006-09-19 14:21:32 +00:00
|
|
|
* Tue Sep 19 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> - 0.13-2
|
|
|
|
- Bump for FC6 rebuild
|
|
|
|
|
2006-04-20 09:30:51 +00:00
|
|
|
* Thu Apr 20 2006 Oliver Falk <oliver@linux-kernel.at> - 0.13-1
|
|
|
|
- Update
|
|
|
|
|
2005-08-10 08:45:32 +00:00
|
|
|
* Wed Aug 10 2005 Oliver Falk <oliver@linux-kernel.at> - 0.12-1
|
|
|
|
- Update
|
|
|
|
- Added saidar manpage
|
|
|
|
|
2005-07-08 07:22:42 +00:00
|
|
|
* Fri Jul 08 2005 Oliver Falk <oliver@linux-kernel.at> - 0.11.1-3
|
|
|
|
- Included examples/*.c in doc
|
|
|
|
|
|
|
|
* Wed Jul 6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.11.1-2
|
|
|
|
- a lot of fixes for Fedora Extras
|
|
|
|
|
|
|
|
* Thu May 19 2005 Oliver Falk <oliver@linux-kernel.at> - 0.11.1-1.1
|
|
|
|
- Specfile cleanup
|
|
|
|
|
|
|
|
* Sun Apr 03 2005 Oliver Falk <oliver@linux-kernel.at> - 0.11.1-1
|
|
|
|
- Update
|
|
|
|
|
|
|
|
* Fri Mar 25 2005 Oliver Falk <oliver@linux-kernel.at> - 0.11-2.1
|
|
|
|
- Fix rpmlint warnings
|
|
|
|
|
|
|
|
* Tue Feb 15 2005 Oliver Falk <oliver@linux-kernel.at> - 0.11-2
|
|
|
|
- Don't require coreutils. They are normally installed on Fedora, but
|
|
|
|
not available on RH 8, where the tools are usually also installed.
|
|
|
|
Yes, rebuilding with nodeps would also do it, but it's not fine...
|
|
|
|
|
|
|
|
* Tue Feb 15 2005 Oliver Falk <oliver@linux-kernel.at> - 0.11-1
|
|
|
|
- Initial build for Fedora Core
|