%define majver %(echo %version | cut -d. -f1-2) %define langname libgtop-2.0 Name: libgtop Version: 2.28.3 Release: 1mamba Summary: The LibGTop library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: gil URL: http://www.gnome.org/ Source: http://ftp.gnome.org/pub/gnome/sources/libgtop/%{majver}/libgtop-%{version}.tar.bz2 License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libglib-devel BuildRequires: libselinux-devel BuildRequires: libXau-devel ## AUTOBUILDREQ-END Requires(post):%{__install_info} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description A library that fetches information about the running system such as CPU and memory useage, active processes and more. On Linux systems, this information is taken directly from the /proc filesystem while on other systems a server is used to read that information from other /dev/kmem, among others. %package -n %{name}-devel Summary: Static libraries and headers for %{name} Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %{name}-devel %description -n %{name}-devel Install this package if you wish to develop applications that access information on system statistics such as CPU and memory usage. %prep %setup -q %build %configure %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall %find_lang %{langname} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post /sbin/ldconfig %install_info %{name}2.info : %preun /sbin/ldconfig %uninstall_info %{name}2.info : %files -f %{langname}.lang %defattr(-,root,root) %{_libdir}/*.so.* %{_infodir}/libgtop2.info.gz %doc AUTHORS COPYING ChangeLog NEWS README %files devel %defattr(-,root,root) %dir %{_includedir}/libgtop-2.0 %{_includedir}/libgtop-2.0/*.h %dir %{_includedir}/libgtop-2.0/glibtop %{_includedir}/libgtop-2.0/glibtop/*.h %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/*.so %{_exec_prefix}/lib/pkgconfig/*.pc %{_datadir}/gtk-doc/html/libgtop/* %{_libdir}/girepository-1.0/GTop-2.0.typelib %{_datadir}/gir-1.0/GTop-2.0.gir %changelog * Sun Mar 27 2011 Automatic Build System 2.28.3-1mamba - automatic update by autodist * Tue Sep 28 2010 Automatic Build System 2.28.2-1mamba - automatic update to 2.28.2 by autodist * Sun May 30 2010 Automatic Build System 2.28.1-1mamba - update to 2.28.1 * Thu Jan 08 2009 Silvan Calarco 2.14.9-1mamba - update to 2.14.9 * Mon May 12 2008 gil 2.14.1-1mamba - package created by autospec