Dominique Leuenberger
1d83c255d2
1 OBS-URL: https://build.opensuse.org/request/show/363494 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libgtop?expand=0&rev=60
169 lines
4.9 KiB
RPMSpec
169 lines
4.9 KiB
RPMSpec
#
|
|
# spec file for package libgtop
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libgtop
|
|
Version: 2.33.91
|
|
Release: 0
|
|
%define soname 10
|
|
Summary: LibGTop Library
|
|
License: GPL-2.0+
|
|
Group: System/Libraries
|
|
Source: http://download.gnome.org/sources/libgtop/2.33/%{name}-%{version}.tar.xz
|
|
Source99: baselibs.conf
|
|
BuildRequires: fdupes
|
|
BuildRequires: glib2-devel
|
|
BuildRequires: gobject-introspection-devel
|
|
BuildRequires: intltool
|
|
BuildRequires: translation-update-upstream
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.26.0
|
|
BuildRequires: pkgconfig(xau)
|
|
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.
|
|
|
|
%package -n libgtop-2_0-%{soname}
|
|
Summary: LibGTop Library
|
|
Group: System/Libraries
|
|
Recommends: %{name}-lang
|
|
# Needed to make lang package installable
|
|
Provides: %{name} = %{version}
|
|
Obsoletes: %{name} < %{version}
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libgtop-64bit
|
|
%endif
|
|
#
|
|
|
|
%description -n libgtop-2_0-%{soname}
|
|
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.
|
|
|
|
%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.
|
|
|
|
%package devel
|
|
Summary: Include Files and Libraries mandatory for Development
|
|
Group: Development/Libraries/GNOME
|
|
Requires: libgtop-2_0-%{soname} = %{version}
|
|
Requires: typelib-1_0-GTop-2_0 = %{version}
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libgtop-devel-64bit
|
|
%endif
|
|
#
|
|
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
|
|
Requires: libgtop-2_0-%{soname} = %{version}
|
|
PreReq: /sbin/install-info
|
|
|
|
%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.
|
|
|
|
%lang_package
|
|
%prep
|
|
%setup -q
|
|
translation-update-upstream
|
|
# rpmlint note: libgtop has a separate translation for both Bengali and Bengali India
|
|
|
|
%build
|
|
%configure\
|
|
--disable-static
|
|
%__make %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
%makeinstall
|
|
%if 0%{?suse_version} <= 1110
|
|
%{__rm} %{buildroot}%{_datadir}/locale/la/LC_MESSAGES/*
|
|
%endif
|
|
%if 0%{?suse_version} <= 1120
|
|
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
|
|
%endif
|
|
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
|
%find_lang %{name}-2.0
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post -n libgtop-2_0-%{soname} -p /sbin/ldconfig
|
|
|
|
%postun -n libgtop-2_0-%{soname} -p /sbin/ldconfig
|
|
|
|
%preun doc
|
|
%install_info_delete --info-dir=%{_datadir}/info %{_datadir}/info/%{name}2.info.gz
|
|
|
|
%post doc
|
|
%install_info --info-dir=%{_datadir}/info %{_datadir}/info/%{name}2.info.gz
|
|
|
|
%files lang -f %{name}-2.0.lang
|
|
|
|
%files -n libgtop-2_0-%{soname}
|
|
%defattr(-, root, root)
|
|
%doc AUTHORS COPYING NEWS README copyright.txt
|
|
%{_libdir}/*.so.*
|
|
|
|
%files -n typelib-1_0-GTop-2_0
|
|
%defattr(-, root, root)
|
|
%{_libdir}/girepository-1.0/GTop-2.0.typelib
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%{_includedir}/libgtop-2.0
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_datadir}/gir-1.0/GTop-2.0.gir
|
|
%doc %{_datadir}/gtk-doc/html/libgtop/
|
|
|
|
%files doc
|
|
%defattr(-, root, root)
|
|
%doc %{_infodir}/*.info*
|
|
|
|
%changelog
|