Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37654839
en ru br
Репозитории ALT
S:2.40.0-alt1
5.1: 2.28.0-alt1
4.1: 2.22.3-alt0.M41.1
4.0: 2.14.6-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libgtop

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define oldname libgtop2
%define ver_major 2.14
%def_disable static
%def_with examples

Name: libgtop
Version: %ver_major.6
Release: alt1

Summary: LibGTop library
License: LGPL
Group: System/Libraries
Url: ftp://ftp.gnome.org

Obsoletes: %oldname < 2.14.2
Provides: %oldname = %version-%release

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2
Patch2: %name-2.0.0-texinfo.patch
Patch4: %name-2.9.90-alt-examples_makefile.patch
Patch5: %name-2.0.1-alt-as.patch
Patch7: %name-2.14.0-fix-link-as-needed.patch

# From configure.in

%define glib_ver 2.6.0

BuildPreReq: intltool >= 0.35
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: gtk-doc >= 1.4
BuildPreReq: libpopt-devel libgdbm-devel kernel-headers-std libXau-devel libXt-devel

%if_enabled static
BuildPreReq: glibc-devel-static
%endif

%description
LibGTop is 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 utils
Group: System/Base
Summary: The LibGTop utils
Obsoletes: %oldname-utils < 2.14.2
Provides: %oldname-utils = %version-%release
Requires: %name = %version-%release

%description utils
This package contains some libGTop utils

%package examples
Group: Development/GNOME and GTK+
Summary: The LibGTop samples
Obsoletes: %oldname-examples < 2.14.2
Provides: %oldname-examples = %version-%release
Requires: %name = %version-%release

%description examples
This package contains some example of using %name library

%package devel
Summary: Development files for %name
Group: Development/GNOME and GTK+
Obsoletes: %oldname-devel < 2.14.2
Provides: %oldname-devel = %version-%release
Requires: %name = %version-%release
Requires: libgdbm-devel
Requires: libpopt-devel
Requires(post): %install_info
Requires(preun): %uninstall_info

%description devel
LibGTop is a library that fetches information about the running
system such as CPU and memory useage, active processes and more.

Install this package if you wish to develop applications that access
information on system statistics such as CPU and memory usage.

%package devel-doc
Summary: Development documentation for %name
Group: Development/GNOME and GTK+
Conflicts: %name-devel < %version-%release

%description devel-doc
LibGTop is a library that fetches information about the running
system such as CPU and memory useage, active processes and more.

This package contains development documentation for the library.

%package devel-static
Summary: Static libraries for %name
Group: Development/GNOME and GTK+
Obsoletes: %oldname-devel-static < 2.14.2
Provides: %oldname-devel-static = %version-%release
Requires: %name-devel = %version-%release

%description devel-static
This package contains static libraries for development with %name.

%define _gtk_docdir %_datadir/gtk-doc/html

%prep
%setup -q
%patch2 -p1
%patch4 -p1
%patch5 -p1
#patch7 -p0

rm -rf doc/*.info
#__subst 's,\(\#\#f\)\#\#,\1,' examples/sysdeps.c

%build
%__autoreconf

%configure \
   %{subst_enable static} \
--enable-gtk-doc \
--with-libgtop-inodedb  \
--with-libgtop-smp \
%if_with examples
--with-libgtop-examples \
%endif

%make_build

%install
%makeinstall

%find_lang %name-2.0

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%post devel
%install_info %oldname.info

%preun devel
%uninstall_info %oldname.info

%files -f %name-2.0.lang
%_libdir/*.so.*
%doc AUTHORS ChangeLog NEWS README

%files  utils
%_bindir/*inode*

%if_with examples
%files examples
%dir %_libdir/%name
%_libdir/%name/*
%endif

%files devel
%_includedir/%name-2.0
%_libdir/*.so
%_libdir/pkgconfig/*
%_infodir/*.info*
%doc AUTHORS ChangeLog

%files devel-doc
%_gtk_docdir/*

%if_enabled static
%files devel-static
%_libdir/*.a
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin