%def_disable static Name: libstatgrab Version: 0.16 Release: alt0.1 Summary: A library to collect many kinds of system infomation License: LGPL, GPL Group: System/Libraries Url: http://www.i-scream.org/libstatgrab/ Source: %name-%version.tar.gz Patch: %name-alt-makefile.patch Packager: Sergey Zhumatiy %description Statgrab is a crossplatform library to collect system information such as load average, cpu usage, network usage, memory usage, etc. %package tools Summary: Console program to check system activity Group: Monitoring Requires: %name = %version-%release %description tools Console program to check system activity using libstatgrab. %package devel Summary: Headers for %name Group: Development/C Requires: %name = %version-%release %description devel Headers for building software that uses %name %if_enabled static %package devel-static Summary: Static libraries for %name Group: Development/C Requires: %name-devel = %version-%release %description devel-static Static libs for building statically linked software that uses %name %endif %prep %setup %patch -p1 %build %configure --disable-saidar %{subst_enable static} %make_build %install %makeinstall_std %files %_libdir/*.so.* %doc AUTHORS README NEWS %files tools #%_bindir/saidar %_bindir/statgrab %_bindir/statgrab-make-mrtg-config %_bindir/statgrab-make-mrtg-index %_man1dir/* %files devel %_libdir/*.so %_includedir/*.h %_man3dir/* %_pkgconfigdir/libstatgrab.pc %if_enabled static %files -n %name-devel-static %_libdir/*.a %endif %changelog * Thu May 14 2009 Sergey Zhumatiy 0.16-alt0.1 - NMU: 0.16 - fixed pkgconfig file location - spec cleanup * Thu Jan 29 2008 Sergey Zhumatiy 0.14-alt5 - minor fixes * Thu Jan 29 2008 Sergey Zhumatiy 0.14-alt4 - %_libdir/pkgconfig/libstatgrab.pc moved to devel package * Thu Nov 15 2007 Sergey Zhumatiy 0.14-alt3 - saidar deleted from package because of unstable compiling * Fri Oct 19 2007 Sergey Zhumatiy 0.14-alt2 - main pakage is splitted to libstatgrab and libstatgrab-tools * Fri Oct 05 2007 Sergey Zhumatiy 0.14-alt1 - initial build