libgtop/libgtop.spec

354 lines
11 KiB
RPMSpec

#
# spec file for package libgtop (Version 2.22.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libgtop
BuildRequires: fdupes gdbm-devel glib2-devel gtk-doc intltool licenses popt-devel xorg-x11-devel
License: GPL v2 or later
Group: Development/Libraries/GNOME
Version: 2.22.0
Release: 1
# WARNING: After changing versions please call Re or rpmbuild to auto-update spec file:
#%(sh %{_sourcedir}/%{name}_spec-update.sh %{_sourcedir} %{name} libgtop-2_0)
%define libgtop-2_0_name 7
Summary: LibGTop Library
Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/libgtop/2.19/%{name}-%{version}.tar.bz2
Source1: %{name}_spec-update.sh
#PATCH-FIX-UPSTREAM gnome-system-monitor-resident-schema.patch bnc157022 bgo336376 joeshaw@novell.com -- Probably need to really show Resident by default
Patch: libgtop-resident-field-fix.patch
Requires: libgtop-2_0-7 licenses
Requires: %{name}-lang = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A library that fetches information about the running system, such as
CPU and memory usage and active processes.
On Linux systems, this information is taken directly from the /proc
file system. On other systems, a server is used to read information
from /dev/kmem.
Authors:
--------
Martin Baulig (martin@home-of-linux.org)
Drazen Kacar (dave@srce.hr)
%package -n libgtop-2_0-7
Summary: LibGTop Library
Group: Development/Libraries/GNOME
# Require translation package (%{name}) not older than the library:
Requires: %{name} >= %{version}
%description -n libgtop-2_0-7
A library that fetches information about the running system, such as
CPU and memory usage and active processes.
On Linux systems, this information is taken directly from the /proc
file system. On other systems, a server is used to read information
from /dev/kmem.
Authors:
--------
Martin Baulig (martin@home-of-linux.org)
Drazen Kacar (dave@srce.hr)
%package devel
Summary: Include Files and Libraries mandatory for Development.
Group: Development/Libraries/GNOME
Requires: %{name} = %{version} glib2-devel gdbm-devel xorg-x11-devel
PreReq: %install_info_prereq
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
Authors:
--------
Martin Baulig (martin@home-of-linux.org)
Drazen Kacar (dave@srce.hr)
%package doc
Summary: LibGTop Library
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
%description doc
A library that fetches information about the running system, such as
CPU and memory usage and active processes.
On Linux systems, this information is taken directly from the /proc
file system. On other systems, a server is used to read information
from /dev/kmem.
Authors:
--------
Martin Baulig (martin@home-of-linux.org)
Drazen Kacar (dave@srce.hr)
%lang_package
%prep
%setup -q
%patch
# rpmlint note: libgtop has a separate translation for both Bengali and Bengali India
%build
%configure\
--disable-static
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%find_lang %{name}-2.0
LIBNAME="$(echo $RPM_BUILD_ROOT%{_libdir}/%{name}-*.so.? | sed 's/.*\///;s/\.so\./-/;s/\./_/')"
if test "$LIBNAME" != libgtop-2_0-7 ; then
echo "Library version does not match package name. It should be $LIBNAME."
exit 1
fi
for FILE in COPYING copyright.txt ; do
MD5SUM=$(md5sum $FILE | sed 's/ .*//')
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
fi
done
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libgtop-2_0-7 -p /sbin/ldconfig
%postun -n libgtop-2_0-7 -p /sbin/ldconfig
%post doc
%install_info --info-dir=%{_datadir}/info %{_datadir}/info/%{name}2.info.gz
%postun doc
%install_info_delete --info-dir=%{_datadir}/info %{_datadir}/info/%{name}2.info.gz
%files
%defattr(-, root, root)
# TODO is empty
%doc AUTHORS COPYING NEWS README copyright.txt
%files lang -f %{name}-2.0.lang
%files -n libgtop-2_0-7
%defattr(-, root, root)
%{_libdir}/*.so.*
%files devel
%defattr(-, root, root)
%{_includedir}/libgtop-2.0
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc
%files doc
%defattr(-, root, root)
%dir %{_datadir}/gtk-doc/html/libgtop
%{_datadir}/gtk-doc/html/libgtop/*
%doc %{_infodir}/*.info*
%changelog
* Fri Mar 14 2008 maw@suse.de
- Update to version 2.22.0:
+ Fixed proc_kernel.
* Tue Mar 04 2008 maw@suse.de
- Update to version 2.21.92:
+ Fixed smaps parsing on linux kernels >= 2.6.24.x.
* Wed Jan 30 2008 rodrigo@suse.de
- Update to version 2.21.5:
* Fixed build on GNU/kfreebsd
* Fixed procmem units
* Thu Dec 20 2007 jpr@suse.de
- Update to version 2.21.1
* don't export _p/_s private symbols anymore. This is not an
API/ABI breakage.
* darwin implementation
* linux:
- splitted fsusage and mountlist implementations;
- smarter mountlist(allfs = False);
- fixed some compile warning on 64bit;
* solaris:
- fixed netload build
* Mon Sep 17 2007 sbrabec@suse.cz
- Updated to version 2.20.0:
* updated translations
* Mon Sep 10 2007 maw@suse.de
- Update to version 2.19.92:
+ Fix hardwired path in linux/sysinfo.c.
* Tue Aug 07 2007 maw@suse.de
- Split off a -lang subpackage
- Use %%fdupes.
* Fri Aug 03 2007 mauro@suse.de
- Updated to version 2.19.5
- Small change of the API: get_proclist returns pid_t instead of unsigned
* Tue Jul 17 2007 sbrabec@suse.cz
- Fixed shared library packaging.
- Added script to update library package names.
* Mon Jul 09 2007 maw@suse.de
- Rename the package to libgtop-2_0-7
- Update to version 2.19.4
- Minor API change - get_proclist returns pit_t instead of unsigned
- Portability fixes.
* Mon Apr 02 2007 maw@suse.de
- Update to version 2.14.8
- Support for FreeBSD
- Fixed up signal handling.
* Mon Mar 26 2007 rguenther@suse.de
- Add gdbm-devel BuildRequires.
* Tue Feb 27 2007 maw@suse.de
- Create a -doc subpackage (#248813).
* Mon Feb 19 2007 maw@suse.de
- Update to version 2.14.7
- Remove libgtop-buffer-overflow.patch which is now upstream
- Package gtk-doc generated docs in the -devel subpackage.
* Tue Feb 13 2007 sbrabec@suse.cz
- Do not build unusable static libraries (#238552#c17).
* Fri Jan 19 2007 maw@suse.de
- Add libgtop-buffer-overflow.patch (#235086 and CVE-2007-0235).
* Mon Jan 08 2007 sbrabec@suse.cz
- Spec file cleanup.
* Mon Jan 08 2007 ro@suse.de
- GNOME moved to /usr
* Tue Oct 03 2006 jhargadon@suse.de
- update to version 2.14.4
- Fixed linux maps/smaps parsing on 64bit kernel
- Fixed build with --as-needed
- Added missing G_BEGIN_DECLS/G_END_DECLS
* Tue Aug 15 2006 jhargadon@suse.de
- update to version 2.14.2
- Updated solaris support
- interface addition to handle wireless interfaces.
* Tue Aug 15 2006 sbrabec@suse.cz
- Call ldconfig (#198912).
* Wed Aug 02 2006 gekker@suse.de
- Update to version 2.14.1
* Updated translations.
* Fixed NetBSD port (Julio M. Merino Vidal <jmmv@NetBSD.org>).
* Fixed proc_state documentation.
* Updated mountlist ignore list.
* fix get_procmap for linux < 2.6.14.
* Fixed libtool versioning (James Henstridge)
* fixed proclist
* implemented server->real_ncpu
* Requires automake-1.9 (James Henstridge)
* Supports up to 32 CPU
* Supports Linux smaps
* fixed SMP detection
* Tue Mar 28 2006 joeshaw@suse.de
- Add a patch which makes the "Resident" field RSS - Shared,
rather than just being a duplicate of RSS. Fixes half of
bnc #157022. Submitted upstream as bgo #336376.
- Remove an unused, commented-out patch
* Sat Feb 04 2006 aj@suse.de
- Reduce BuildRequires.
* Thu Jan 26 2006 sbrabec@suse.cz
- Added %%install_info_prereq.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Dec 01 2005 gekker@suse.de
- Update to version 2.12.2
* Mon Sep 05 2005 gekker@suse.de
- Update to version 2.12.0 (GNOME 2.12)
* Tue Aug 23 2005 gekker@suse.de
- Update to version 2.11.92
* Mon Aug 08 2005 rodrigo@suse.de
- Updated to 2.11.91
* Tue Aug 02 2005 gekker@suse.de
- Update to version 2.11.90
- Fixup devel requirements
* Sat Jul 23 2005 gekker@suse.de
- Update to version 2.11.2
* Wed Jun 22 2005 gekker@suse.de
- Update to version 2.11.0
* Fri Jun 17 2005 sbrabec@suse.cz
- Build with libXau on x86_64 (#91187).
* Wed Jun 01 2005 sbrabec@suse.cz
- Fixed devel requirements.
* Thu Mar 10 2005 gekker@suse.de
- Update to version 2.10.0 (GNOME 2.10).
* Fri Mar 04 2005 gekker@suse.de
- Update to version 2.9.92
* Fri Feb 11 2005 gekker@suse.de
- Update to version 2.9.91
* Thu Jan 27 2005 hhetter@suse.de
- updated to version 2.9.90
* Mon Jan 24 2005 ro@suse.de
- fix build on x86_64 working around non-fPIC libXau
* Sat Jan 22 2005 gekker@suse.de
- Update to version 2.9.4
* Tue Jan 04 2005 gekker@suse.de
- Update to version 2.9.3
* Tue Dec 21 2004 gekker@suse.de
- Update to version 2.9.0
* Tue Nov 23 2004 ro@suse.de
- fix name of info file in postinstall
* Mon Oct 25 2004 ro@suse.de
- locale rename: no -> nb
* Thu Apr 29 2004 hhetter@suse.de
- updated to version 2.5.2 [GNOME2.6]
* Mon Mar 22 2004 sbrabec@suse.cz
- Provide and obsolete libgtop2-devel.
* Tue Mar 16 2004 sbrabec@suse.cz
- FHS 2.3 fix (mandir, infodir, #35821).
* Fri Feb 20 2004 sbrabec@suse.cz
- Package renamed to libgtop.
* Mon Feb 16 2004 hhetter@suse.de
- fix filelist
* Mon Feb 09 2004 hhetter@suse.de
- updated to version 2.0.8 [GNOME2.4.2]
* Thu Nov 06 2003 schwab@suse.de
- Fix quoting in configure script.
* Tue Sep 09 2003 sbrabec@suse.cz
- Updated to version 2.0.5.
* Mon Aug 25 2003 sbrabec@suse.cz
- Updated to version 2.0.4.
* Tue Aug 19 2003 sbrabec@suse.cz
- Updated to version 2.0.3.
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Thu Jun 26 2003 sbrabec@suse.cz
- Cleaned up neededforbuild.
- Use %%find_lang.
* Mon Jun 23 2003 ro@suse.de
- added gnome-filesystem to neededforbuild
- added directories to filelist
* Tue May 27 2003 sbrabec@suse.cz
- Updated to version 2.0.2.
- Updated neededforbuild.
- Fixed %%files.
* Thu Jan 16 2003 hhetter@suse.de
- updated to version 2.0.1
- adapted automake fix
* Tue Sep 24 2002 sbrabec@suse.cz
- Fixed incorrect update to 2.0.0.
* Tue Jun 11 2002 hhetter@suse.de
- updated to version 2.0.0
* Tue Jun 04 2002 hhetter@suse.de
- update to source frozen version 1.90.2
- fix filelist
* Wed May 15 2002 ro@suse.de
- use libdir
* Thu Apr 18 2002 ro@suse.de
- fix for automake-1.6
* Thu Jan 17 2002 hhetter@suse.de
- prefixed to /opt/gnome2
* Mon Jan 14 2002 hhetter@suse.de
- initial SuSE package for GNOME 2.0 platform