Update to 0.91
This commit is contained in:
parent
65040cb730
commit
b0ae833ad5
|
@ -1,2 +1,3 @@
|
||||||
/libstatgrab-0.90.tar.gz
|
/libstatgrab-0.90.tar.gz
|
||||||
/libstatgrab-0.17.tar.gz
|
/libstatgrab-0.17.tar.gz
|
||||||
|
/libstatgrab-0.91.tar.gz
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@
|
||||||
|
|
||||||
|
Name: libstatgrab
|
||||||
|
Description: A library that provides a useful interface to system statistics
|
||||||
|
Version: @VERSION@
|
||||||
|
Requires.private: log4cplus
|
||||||
|
Libs: -L${libdir} -lstatgrab
|
||||||
|
Libs.private: @LINKFLAGS@
|
||||||
|
Cflags: -I${includedir}
|
175
libstatgrab.spec
175
libstatgrab.spec
|
@ -1,51 +1,56 @@
|
||||||
%global pkgname statgrab
|
%bcond_without log4cplus
|
||||||
|
%bcond_without examples
|
||||||
|
|
||||||
Name: libstatgrab
|
Name: libstatgrab
|
||||||
Version: 0.17
|
Epoch: 1
|
||||||
Release: 8%{?dist}.2
|
Version: 0.91
|
||||||
Epoch: 1
|
Release: 1%{?dist}
|
||||||
Summary: A library that provides cross platform access to statistics about the system
|
Summary: A library that provides cross platform access to statistics of the system
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://www.i-scream.org/libstatgrab
|
URL: http://www.i-scream.org/libstatgrab
|
||||||
Source0: http://ftp.i-scream.org/pub/i-scream/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://ftp.i-scream.org/pub/i-scream/%{name}/%{name}-%{version}.tar.gz
|
||||||
Patch0: %{name}.nochmod.patch
|
# REJECTED due to Solaris or whatever linking issue,
|
||||||
BuildRequires: libtool ncurses-devel
|
# thus we cope with pkgconfig manually.
|
||||||
|
# See: https://github.com/i-scream/libstatgrab/pull/70
|
||||||
|
Source1: libstatgrab.pc.in
|
||||||
|
%if %{with log4cplus}
|
||||||
|
BuildRequires: log4cplus-devel
|
||||||
|
%endif
|
||||||
|
BuildRequires: ncurses-devel
|
||||||
|
# Tests.
|
||||||
|
BuildRequires: perl(Config)
|
||||||
|
BuildRequires: perl(Data::Dumper)
|
||||||
|
BuildRequires: perl(File::Spec)
|
||||||
|
BuildRequires: perl(File::Temp)
|
||||||
|
BuildRequires: perl(File::Basename)
|
||||||
|
BuildRequires: perl(FindBin)
|
||||||
|
BuildRequires: perl(Getopt::Long)
|
||||||
|
BuildRequires: perl(IPC::Cmd)
|
||||||
|
BuildRequires: perl(Pod::Usage)
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
BuildRequires: perl(vars)
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Libstatgrab is a library that provides cross platform access to statistics
|
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
|
about the system on which it's running. It's written in C and presents a
|
||||||
of useful interfaces which can be used to access key system statistics. The
|
selection of useful interfaces which can be used to access key system
|
||||||
current list of statistics includes CPU usage, memory utilisation, disk usage,
|
statistics. The current list of statistics includes CPU usage, memory
|
||||||
process counts, network traffic, disk I/O, and more.
|
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 current list of supported and tested platforms includes FreeBSD, Linux,
|
||||||
The aim is to extend this to include as many operating systems as possible.
|
NetBSD, OpenBSD, Solaris, DragonFly BSD, HP-UX and AIX.
|
||||||
|
|
||||||
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 %{pkgname}-tools
|
|
||||||
Summary: Tools from %{name} to monitoring the system
|
|
||||||
License: GPLv2+
|
|
||||||
|
|
||||||
%description -n %{pkgname}-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
|
%package devel
|
||||||
Summary: The development files from %{name}
|
Summary: Development files for %{name}
|
||||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains header files and man pages for those
|
This package contains libraries, header files and manpages for
|
||||||
use to develop libstatgrab based applications.
|
developing applications that use libstatgrab.
|
||||||
|
|
||||||
|
%if %{with examples}
|
||||||
%package examples
|
%package examples
|
||||||
Summary: The example files from %{name}
|
Summary: The example files from %{name}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
|
@ -54,48 +59,94 @@ Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
%description examples
|
%description examples
|
||||||
This package contains various examples used to show how
|
This package contains various examples used to show how
|
||||||
to develop libstatgrab based applications.
|
to develop libstatgrab based applications.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%package -n saidar
|
||||||
|
Summary: System information real-time monitor
|
||||||
|
License: GPLv2+
|
||||||
|
|
||||||
|
%description -n saidar
|
||||||
|
Saidar is a curses-based interface to viewing the current state of the
|
||||||
|
system.
|
||||||
|
|
||||||
|
%package -n statgrab
|
||||||
|
Summary: Sysctl-style interface to the statistics from libstatgrab
|
||||||
|
License: GPLv2+
|
||||||
|
|
||||||
|
%description -n statgrab
|
||||||
|
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.
|
||||||
|
|
||||||
|
# TODO: F25 must drop -compat.
|
||||||
|
%package compat
|
||||||
|
Summary: Transition package for statgrab-tools
|
||||||
|
Obsoletes: statgrab-tools < 1:0.91-0
|
||||||
|
Requires: statgrab%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
|
Requires: saidar%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
|
%description compat
|
||||||
|
This package only exists to help transition statgrab-tools users to the new
|
||||||
|
package split. It will be removed after 2 distribution release cycles, please
|
||||||
|
do not reference it or depend on it in any way.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p0
|
# Instead of wasting several lines to install these programs, makefile hack
|
||||||
|
# will save the time.
|
||||||
|
sed -i 's|noinst_PROGRAMS|bin_PROGRAMS|g' examples/Makefile*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-ncurses --disable-static
|
cp -pf %{S:1} .
|
||||||
# remove rpath from libtool
|
autoreconf -fiv
|
||||||
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
# Changing to asciidoc --enable-man-build
|
||||||
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
%configure --with-ncurses \
|
||||||
make %{?_smp_mflags}
|
%if %{with log4cplus}
|
||||||
|
--with-log4cplus \
|
||||||
|
%endif
|
||||||
|
%if %{with examples}
|
||||||
|
--enable-examples \
|
||||||
|
%endif
|
||||||
|
--disable-static
|
||||||
|
|
||||||
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot}
|
%make_install
|
||||||
cd examples/.libs
|
%if %{with examples}
|
||||||
install -m 755 cpu_usage disk_traffic load_stats network_iface_stats \
|
%make_install -C examples/
|
||||||
network_traffic os_info page_stats process_snapshot \
|
%endif
|
||||||
process_stats user_list vm_stats %{buildroot}%{_bindir}
|
# Use %%doc instead.
|
||||||
chmod 755 %{buildroot}%{_bindir}/statgrab-make-mrtg-config
|
rm -frv %{buildroot}%{_docdir}
|
||||||
chmod 755 %{buildroot}%{_bindir}/saidar
|
# Drop libtool archive.
|
||||||
chmod 755 %{buildroot}%{_bindir}/statgrab
|
find %{buildroot} -name '*.la' -delete -print
|
||||||
find %{buildroot} -name '*.la' -delete
|
|
||||||
|
%check
|
||||||
|
make check
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS README ChangeLog NEWS COPYING.LGPL
|
%license COPYING.LGPL
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
%doc AUTHORS NEWS PLATFORMS README
|
||||||
%doc examples/*.c
|
%doc examples/*.c
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_includedir}/*.h
|
%{_includedir}/*.h
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
%{_mandir}/*/sg_*
|
%{_mandir}/*/sg_*
|
||||||
|
|
||||||
|
%if %{with examples}
|
||||||
%files examples
|
%files examples
|
||||||
%doc COPYING
|
%license COPYING
|
||||||
%{_bindir}/cpu_usage
|
%{_bindir}/cpu_usage
|
||||||
%{_bindir}/disk_traffic
|
%{_bindir}/disk_traffic
|
||||||
|
%{_bindir}/filesys_snapshot
|
||||||
%{_bindir}/load_stats
|
%{_bindir}/load_stats
|
||||||
%{_bindir}/network_iface_stats
|
%{_bindir}/network_iface_stats
|
||||||
%{_bindir}/network_traffic
|
%{_bindir}/network_traffic
|
||||||
|
@ -104,18 +155,30 @@ find %{buildroot} -name '*.la' -delete
|
||||||
%{_bindir}/process_snapshot
|
%{_bindir}/process_snapshot
|
||||||
%{_bindir}/process_stats
|
%{_bindir}/process_stats
|
||||||
%{_bindir}/user_list
|
%{_bindir}/user_list
|
||||||
|
%{_bindir}/valid_filesystems
|
||||||
%{_bindir}/vm_stats
|
%{_bindir}/vm_stats
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n %{pkgname}-tools
|
%files -n saidar
|
||||||
%doc COPYING
|
%license COPYING
|
||||||
%{_bindir}/saidar
|
%{_bindir}/saidar
|
||||||
%{_bindir}/statgrab
|
%if %{with log4cplus}
|
||||||
%{_bindir}/statgrab-make-mrtg-config
|
%{_sysconfdir}/saidar.properties
|
||||||
%{_bindir}/statgrab-make-mrtg-index
|
%endif
|
||||||
%{_mandir}/*/*statgrab*
|
|
||||||
%{_mandir}/*/saidar*
|
%{_mandir}/*/saidar*
|
||||||
|
|
||||||
|
%files -n statgrab
|
||||||
|
%license COPYING
|
||||||
|
%{_bindir}/statgrab*
|
||||||
|
%if %{with log4cplus}
|
||||||
|
%{_sysconfdir}/statgrab.properties
|
||||||
|
%endif
|
||||||
|
%{_mandir}/*/*statgrab*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jul 26 2015 Christopher Meng <rpm@cicku.me> - 1:0.91-1
|
||||||
|
- Update to 0.91
|
||||||
|
|
||||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.17-8.2
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.17-8.2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue