2007-07-27 01:55:20 +02:00
|
|
|
#
|
2011-03-31 10:45:22 +02:00
|
|
|
# spec file for package libgtop
|
2007-07-27 01:55:20 +02:00
|
|
|
#
|
2017-01-17 13:11:11 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
2013-08-21 23:04:40 +02:00
|
|
|
|
2007-07-27 01:55:20 +02:00
|
|
|
Name: libgtop
|
2017-01-17 13:11:11 +01:00
|
|
|
Version: 2.34.2
|
2011-12-23 16:20:37 +01:00
|
|
|
Release: 0
|
2014-05-10 21:36:05 +02:00
|
|
|
%define soname 10
|
2007-07-27 01:55:20 +02:00
|
|
|
Summary: LibGTop Library
|
2011-12-23 16:20:37 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Libraries
|
2017-01-17 13:11:11 +01:00
|
|
|
Url: https://developer.gnome.org/libgtop/stable/
|
2016-03-22 13:31:34 +01:00
|
|
|
Source: http://download.gnome.org/sources/libgtop/2.34/%{name}-%{version}.tar.xz
|
2010-02-11 20:03:42 +01:00
|
|
|
Source99: baselibs.conf
|
2017-01-20 23:37:28 +01:00
|
|
|
# PATCH-FIX-UPSTREAM libgtop-bsc1020294-cpu-buffer.patch bsc#1020294 bgo#323354 mgorse@suse.com -- dynamically allocate buffer when reading /proc/cpuinfo.
|
|
|
|
Patch0: libgtop-bsc1020294-cpu-buffer.patch
|
2011-03-31 06:40:17 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: glib2-devel
|
2011-04-21 17:37:14 +02:00
|
|
|
BuildRequires: gobject-introspection-devel
|
2016-08-24 17:53:26 +02:00
|
|
|
%if !0%{?is_opensuse}
|
2011-03-31 06:40:17 +02:00
|
|
|
BuildRequires: translation-update-upstream
|
2016-08-24 17:53:26 +02:00
|
|
|
%endif
|
2015-09-04 13:32:05 +02:00
|
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.26.0
|
2014-10-03 22:16:56 +02:00
|
|
|
BuildRequires: pkgconfig(xau)
|
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.
|
|
|
|
|
2014-05-10 21:36:05 +02:00
|
|
|
%package -n libgtop-2_0-%{soname}
|
2007-07-27 01:55:20 +02:00
|
|
|
Summary: LibGTop Library
|
2011-12-23 16:20:37 +01:00
|
|
|
Group: System/Libraries
|
2011-03-31 06:40:17 +02:00
|
|
|
Recommends: %{name}-lang
|
|
|
|
# Needed to make lang package installable
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{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
|
|
|
|
2014-05-10 21:36:05 +02:00
|
|
|
%description -n libgtop-2_0-%{soname}
|
2007-07-27 01:55:20 +02:00
|
|
|
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.
|
|
|
|
|
2011-12-23 16:20:37 +01:00
|
|
|
%package -n typelib-1_0-GTop-2_0
|
|
|
|
Summary: LibGTop Library -- Introspection bindings
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n typelib-1_0-GTop-2_0
|
|
|
|
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.
|
|
|
|
|
|
|
|
This package provides the GObject Introspection bindings for libgtop.
|
|
|
|
|
2007-07-27 01:55:20 +02:00
|
|
|
%package devel
|
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
|
2014-05-10 21:36:05 +02:00
|
|
|
Requires: libgtop-2_0-%{soname} = %{version}
|
2011-12-23 16:20:37 +01:00
|
|
|
Requires: typelib-1_0-GTop-2_0 = %{version}
|
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.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: LibGTop Library
|
|
|
|
Group: Development/Libraries/GNOME
|
2014-05-10 21:36:05 +02:00
|
|
|
Requires: libgtop-2_0-%{soname} = %{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.
|
|
|
|
|
2007-08-09 15:57:39 +02:00
|
|
|
%lang_package
|
2007-07-27 01:55:20 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-01-20 23:37:28 +01:00
|
|
|
%patch0 -p1
|
2016-08-24 17:53:26 +02:00
|
|
|
%if !0%{?is_opensuse}
|
2017-01-12 12:49:29 +01:00
|
|
|
translation-update-upstream po libgtop
|
2007-07-27 01:55:20 +02:00
|
|
|
# rpmlint note: libgtop has a separate translation for both Bengali and Bengali India
|
2016-08-24 17:53:26 +02:00
|
|
|
%endif
|
2007-07-27 01:55:20 +02:00
|
|
|
|
|
|
|
%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
|
2011-09-02 01:48:41 +02:00
|
|
|
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
2016-08-24 17:53:26 +02:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2007-07-27 01:55:20 +02:00
|
|
|
|
2014-05-10 21:36:05 +02:00
|
|
|
%post -n libgtop-2_0-%{soname} -p /sbin/ldconfig
|
2007-07-27 01:55:20 +02:00
|
|
|
|
2014-05-10 21:36:05 +02:00
|
|
|
%postun -n libgtop-2_0-%{soname} -p /sbin/ldconfig
|
2007-07-27 01:55:20 +02:00
|
|
|
|
2016-03-02 11:27:29 +01:00
|
|
|
%preun doc
|
|
|
|
%install_info_delete --info-dir=%{_datadir}/info %{_datadir}/info/%{name}2.info.gz
|
|
|
|
|
2007-07-27 01:55:20 +02:00
|
|
|
%post doc
|
|
|
|
%install_info --info-dir=%{_datadir}/info %{_datadir}/info/%{name}2.info.gz
|
|
|
|
|
2016-08-24 17:53:26 +02:00
|
|
|
%files lang -f %{name}.lang
|
2007-08-09 15:57:39 +02:00
|
|
|
|
2014-05-10 21:36:05 +02:00
|
|
|
%files -n libgtop-2_0-%{soname}
|
2007-07-27 01:55:20 +02:00
|
|
|
%defattr(-, root, root)
|
2011-03-31 06:40:17 +02:00
|
|
|
%doc AUTHORS COPYING NEWS README copyright.txt
|
2007-07-27 01:55:20 +02:00
|
|
|
%{_libdir}/*.so.*
|
2011-12-23 16:20:37 +01:00
|
|
|
|
|
|
|
%files -n typelib-1_0-GTop-2_0
|
|
|
|
%defattr(-, root, root)
|
2011-04-21 17:37:14 +02:00
|
|
|
%{_libdir}/girepository-1.0/GTop-2.0.typelib
|
2007-07-27 01:55:20 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_includedir}/libgtop-2.0
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2011-04-21 17:37:14 +02:00
|
|
|
%{_datadir}/gir-1.0/GTop-2.0.gir
|
2011-09-02 01:48:41 +02:00
|
|
|
%doc %{_datadir}/gtk-doc/html/libgtop/
|
2007-07-27 01:55:20 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc %{_infodir}/*.info*
|
|
|
|
|
|
|
|
%changelog
|