2007-07-27 01:55:20 +02:00
|
|
|
#
|
2010-04-01 03:28:37 +02:00
|
|
|
# spec file for package libgtop (Version 2.28.0)
|
2007-07-27 01:55:20 +02:00
|
|
|
#
|
2010-02-11 20:03:42 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-07-27 01:55:20 +02:00
|
|
|
#
|
2008-08-29 00:05:01 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-07-27 01:55:20 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-03-05 22:31:08 +01:00
|
|
|
|
2007-07-27 01:55:20 +02:00
|
|
|
Name: libgtop
|
2008-10-09 19:23:27 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: licenses
|
2009-03-25 18:36:08 +01:00
|
|
|
BuildRequires: translation-update-upstream
|
2008-10-09 19:23:27 +02:00
|
|
|
BuildRequires: xorg-x11-devel
|
2010-02-10 14:21:31 +01:00
|
|
|
License: GPLv2+
|
2007-07-27 01:55:20 +02:00
|
|
|
Group: Development/Libraries/GNOME
|
2010-04-01 03:28:37 +02:00
|
|
|
Version: 2.28.0
|
|
|
|
Release: 3
|
2007-07-27 01:55:20 +02:00
|
|
|
# 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
|
2010-02-11 20:03:42 +01:00
|
|
|
Source99: baselibs.conf
|
2007-07-27 01:55:20 +02:00
|
|
|
Requires: libgtop-2_0-7 licenses
|
2009-01-14 01:47:38 +01:00
|
|
|
# assist solver to upgrade old libgtop after info.rpm
|
|
|
|
PreReq: %install_info_prereq
|
2009-01-08 18:36:34 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libgtop-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-08-09 15:57:39 +02:00
|
|
|
Requires: %{name}-lang = %{version}
|
2007-07-27 01:55:20 +02:00
|
|
|
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
|
2010-02-10 14:21:31 +01:00
|
|
|
License: GPLv2+
|
2007-07-27 01:55:20 +02:00
|
|
|
Summary: LibGTop Library
|
|
|
|
Group: Development/Libraries/GNOME
|
|
|
|
# Require translation package (%{name}) not older than the library:
|
|
|
|
Requires: %{name} >= %{version}
|
2009-01-08 18:36:34 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libgtop-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-07-27 01:55:20 +02:00
|
|
|
|
|
|
|
%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
|
2010-02-10 14:21:31 +01:00
|
|
|
License: GPLv2+
|
2008-06-22 03:22:35 +02:00
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2007-07-27 01:55:20 +02:00
|
|
|
Group: Development/Libraries/GNOME
|
|
|
|
Requires: %{name} = %{version} glib2-devel gdbm-devel xorg-x11-devel
|
2009-01-08 18:36:34 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libgtop-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-07-27 01:55:20 +02:00
|
|
|
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
|
2010-02-10 14:21:31 +01:00
|
|
|
License: GPLv2+
|
2007-07-27 01:55:20 +02:00
|
|
|
Summary: LibGTop Library
|
|
|
|
Group: Development/Libraries/GNOME
|
|
|
|
Requires: %{name} = %{version}
|
2008-06-22 03:22:35 +02:00
|
|
|
PreReq: /sbin/install-info
|
2007-07-27 01:55:20 +02:00
|
|
|
|
|
|
|
%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)
|
|
|
|
|
2007-08-09 15:57:39 +02:00
|
|
|
%lang_package
|
2007-07-27 01:55:20 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2009-03-25 18:36:08 +01:00
|
|
|
translation-update-upstream
|
2007-07-27 01:55:20 +02:00
|
|
|
# rpmlint note: libgtop has a separate translation for both Bengali and Bengali India
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure\
|
|
|
|
--disable-static
|
2007-12-22 19:33:40 +01:00
|
|
|
%__make %{?jobs:-j%jobs}
|
2007-07-27 01:55:20 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
2010-02-10 14:21:31 +01:00
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
%{__rm} %{buildroot}%{_datadir}/locale/la/LC_MESSAGES/*
|
|
|
|
%endif
|
2007-07-27 01:55:20 +02:00
|
|
|
%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
|
|
|
|
|
2007-08-09 15:57:39 +02:00
|
|
|
%files
|
2007-07-27 01:55:20 +02:00
|
|
|
%defattr(-, root, root)
|
|
|
|
# TODO is empty
|
|
|
|
%doc AUTHORS COPYING NEWS README copyright.txt
|
|
|
|
|
2007-08-09 15:57:39 +02:00
|
|
|
%files lang -f %{name}-2.0.lang
|
|
|
|
|
2007-07-27 01:55:20 +02:00
|
|
|
%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
|
2009-03-03 00:35:39 +01:00
|
|
|
%{_datadir}/gtk-doc
|
|
|
|
%{_datadir}/gtk-doc/html
|
|
|
|
%{_datadir}/gtk-doc/html/libgtop
|
2007-07-27 01:55:20 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc %{_infodir}/*.info*
|
|
|
|
|
|
|
|
%changelog
|