Группа :: Мониторинг
Пакет: gkrellm
Главная Изменения Спек Патчи Загрузить Bugs and FR
%def_with M24
%if_with M24
%define _release alt0.M24.1
%else
%define _release alt1
%endif
%ifndef _pkgconfigdir
%define _pkgconfigdir %_libdir/pkgconfig
%endif
Name: gkrellm
Version: 2.2.10
Release: %_release
Packager: Grigory Batalov <bga at altlinux.ru>
Summary: Multiple stacked system monitors
Summary(ru_RU.KOI8-R): Набор различных системных мониторов
License: GPL
Group: Monitoring
Url: http://gkrellm.net/
Source0: http://web.wt.net/~billw/gkrellm/%name-%version.tar.bz2
Source1: gkrellm_16.xpm.bz2
Source2: gkrellm_32.xpm.bz2
Source3: gkrellm_48.xpm.bz2
Source4: gkrellm-2.2.8-alt-init
Source5: gkrellm-2.2.8-alt-sysconfig
Patch0: gkrellm-2.2.0-alt-fonts.patch
Patch2: gkrellm-2.2.8-alt-ru_po.patch
Patch3: gkrellm-2.2.10-alt-lockdir2.patch.gz
# for gkrellm >= 2.2.0
Requires: libgtk+2 >= 2.3.1
# Added on Fri Mar 31 2006
BuildRequires: XFree86-devel glib2-devel libatk-devel libgtk+2-devel libpango-devel libssl-devel pkgconfig
# For libsensors support
BuildRequires: libsensors-devel
%description
GKrellM charts SMP CPU, load, Disk, and all active net interfaces
automatically. An on/off button and online timer for the PPP interface
is provided. Monitors for memory and swap usage, file system, internet
connections, APM laptop battery, mbox style mailboxes, and cpu temps.
Also includes an uptime monitor, a hostname label, and a clock/calendar.
Additional features are:
* Autoscaling grid lines with configurable grid line resolution.
* LED indicators for the net interfaces.
* A gui popup for configuration of chart sizes and resolutions.
%description -l ru_RU.KOI8-R
GKrellM строит в реальном времени графики загрузки процессоров,
активности дисков, сетевых интерфейсов. Следит за использованием
памяти и разделов подкачки, наличием интернет-соединений, уровнем
зарядки батарей и т.п.
%package devel
Summary: Gkrellm include files
Summary(ru_RU.KOI8-R): Заголовки gkrellm
Group: Development/Other
Requires: %name = %version
%description devel
Gkrellm header files for gkrellm development and plugin support.
%description devel -l ru_RU.KOI8-R
Заголовки Gkrellm, необходимые для сборки плагинов.
%package -n gkrellmd
Summary: Gkrellm server
Summary(ru_RU.KOI8-R): Серверная часть gkrellm
Group: Monitoring
%description -n gkrellmd
Gkrellm server allows connections from Gkrellm clients over network.
%description devel -l ru_RU.KOI8-R
Сервер Gkrellm позволяет подключаться клиентам Gkrellm через сеть.
%prep
%setup -q
%patch0 -p1
%patch2 -p1
%patch3 -p1
# gkrellmd tuning
subst 's,^#allow-host\tlocalhost,allow-host localhost,g' server/gkrellmd.conf
subst 's,^max-clients.*,max-clients 5,g' server/gkrellmd.conf
subst 's,^update-hz.*,update-hz 2,g' server/gkrellmd.conf
# set platform-dependent libdir
subst 's,/usr/lib,%_libdir,g' src/gkrellm.h server/gkrellmd.h
%build
%make_build enable_nls=1 \
INSTALLROOT=%prefix \
SMC_LIBS='-L%_x11libdir -lSM -lICE'
#SYS_LIBS=-L%_x11libdir
%install
%__mkdir -p %buildroot%prefix/bin
%__mkdir -p %buildroot%_libdir/gkrellm2/plugins
%make_install install enable_nls=1 \
INSTALLROOT=%buildroot%prefix \
PKGCONFIGDIR=%buildroot%_pkgconfigdir
%__mkdir -p %buildroot%_iconsdir
%__mkdir -p %buildroot%_liconsdir
%__mkdir -p %buildroot%_miconsdir
bzcat %SOURCE2 > %buildroot%_iconsdir/gkrellm.xpm
bzcat %SOURCE3 > %buildroot%_liconsdir/gkrellm.xpm
bzcat %SOURCE1 > %buildroot%_miconsdir/gkrellm.xpm
%__install -D -m755 %SOURCE4 %buildroot%_initdir/gkrellmd
%__install -D -m644 %SOURCE5 %buildroot%_sysconfdir/sysconfig/gkrellmd
%__install -D -m644 server/gkrellmd.conf %buildroot%_sysconfdir/gkrellmd.conf
(cd %buildroot
mkdir -p .%_menudir
cat > .%_menudir/%name <<EOF
?package(%name):\
command="%prefix/bin/gkrellm"\
title="Gkrellm"\
longtitle="a gtk-based monitoring app"\
needs="x11"\
section="Applications/Monitoring" \
icon="gkrellm.xpm"
EOF
)
%find_lang %name
%post
%update_menus
%postun
%clean_menus
%pre -n gkrellmd
/usr/sbin/useradd -M -r -d /dev/null -s /dev/null \
-c "GKrellM server" gkrellmd >/dev/null 2>&1 || :
%post -n gkrellmd
%post_service gkrellmd
%preun -n gkrellmd
%preun_service gkrellmd
%files -f %name.lang
%doc COPYRIGHT Changelog CREDITS README *.html
%_bindir/gkrellm
%_man1dir/gkrellm.*
%_menudir/*
%dir %_libdir/gkrellm2
%_libdir/gkrellm2/*
%_iconsdir/gkrellm.xpm
%_liconsdir/gkrellm.xpm
%_miconsdir/gkrellm.xpm
%files devel
%dir %_includedir/gkrellm2
%_includedir/gkrellm2/*
%_libdir/pkgconfig/*
%files -n gkrellmd
%_bindir/gkrellmd
%config(noreplace) %_initdir/gkrellmd
%config(noreplace) %_sysconfdir/sysconfig/gkrellmd
%config(noreplace) %_sysconfdir/gkrellmd.conf
%_man1dir/gkrellmd.*
%changelog
…
Полный changelog можно просмотреть здесь
%if_with M24
%define _release alt0.M24.1
%else
%define _release alt1
%endif
%ifndef _pkgconfigdir
%define _pkgconfigdir %_libdir/pkgconfig
%endif
Name: gkrellm
Version: 2.2.10
Release: %_release
Packager: Grigory Batalov <bga at altlinux.ru>
Summary: Multiple stacked system monitors
Summary(ru_RU.KOI8-R): Набор различных системных мониторов
License: GPL
Group: Monitoring
Url: http://gkrellm.net/
Source0: http://web.wt.net/~billw/gkrellm/%name-%version.tar.bz2
Source1: gkrellm_16.xpm.bz2
Source2: gkrellm_32.xpm.bz2
Source3: gkrellm_48.xpm.bz2
Source4: gkrellm-2.2.8-alt-init
Source5: gkrellm-2.2.8-alt-sysconfig
Patch0: gkrellm-2.2.0-alt-fonts.patch
Patch2: gkrellm-2.2.8-alt-ru_po.patch
Patch3: gkrellm-2.2.10-alt-lockdir2.patch.gz
# for gkrellm >= 2.2.0
Requires: libgtk+2 >= 2.3.1
# Added on Fri Mar 31 2006
BuildRequires: XFree86-devel glib2-devel libatk-devel libgtk+2-devel libpango-devel libssl-devel pkgconfig
# For libsensors support
BuildRequires: libsensors-devel
%description
GKrellM charts SMP CPU, load, Disk, and all active net interfaces
automatically. An on/off button and online timer for the PPP interface
is provided. Monitors for memory and swap usage, file system, internet
connections, APM laptop battery, mbox style mailboxes, and cpu temps.
Also includes an uptime monitor, a hostname label, and a clock/calendar.
Additional features are:
* Autoscaling grid lines with configurable grid line resolution.
* LED indicators for the net interfaces.
* A gui popup for configuration of chart sizes and resolutions.
%description -l ru_RU.KOI8-R
GKrellM строит в реальном времени графики загрузки процессоров,
активности дисков, сетевых интерфейсов. Следит за использованием
памяти и разделов подкачки, наличием интернет-соединений, уровнем
зарядки батарей и т.п.
%package devel
Summary: Gkrellm include files
Summary(ru_RU.KOI8-R): Заголовки gkrellm
Group: Development/Other
Requires: %name = %version
%description devel
Gkrellm header files for gkrellm development and plugin support.
%description devel -l ru_RU.KOI8-R
Заголовки Gkrellm, необходимые для сборки плагинов.
%package -n gkrellmd
Summary: Gkrellm server
Summary(ru_RU.KOI8-R): Серверная часть gkrellm
Group: Monitoring
%description -n gkrellmd
Gkrellm server allows connections from Gkrellm clients over network.
%description devel -l ru_RU.KOI8-R
Сервер Gkrellm позволяет подключаться клиентам Gkrellm через сеть.
%prep
%setup -q
%patch0 -p1
%patch2 -p1
%patch3 -p1
# gkrellmd tuning
subst 's,^#allow-host\tlocalhost,allow-host localhost,g' server/gkrellmd.conf
subst 's,^max-clients.*,max-clients 5,g' server/gkrellmd.conf
subst 's,^update-hz.*,update-hz 2,g' server/gkrellmd.conf
# set platform-dependent libdir
subst 's,/usr/lib,%_libdir,g' src/gkrellm.h server/gkrellmd.h
%build
%make_build enable_nls=1 \
INSTALLROOT=%prefix \
SMC_LIBS='-L%_x11libdir -lSM -lICE'
#SYS_LIBS=-L%_x11libdir
%install
%__mkdir -p %buildroot%prefix/bin
%__mkdir -p %buildroot%_libdir/gkrellm2/plugins
%make_install install enable_nls=1 \
INSTALLROOT=%buildroot%prefix \
PKGCONFIGDIR=%buildroot%_pkgconfigdir
%__mkdir -p %buildroot%_iconsdir
%__mkdir -p %buildroot%_liconsdir
%__mkdir -p %buildroot%_miconsdir
bzcat %SOURCE2 > %buildroot%_iconsdir/gkrellm.xpm
bzcat %SOURCE3 > %buildroot%_liconsdir/gkrellm.xpm
bzcat %SOURCE1 > %buildroot%_miconsdir/gkrellm.xpm
%__install -D -m755 %SOURCE4 %buildroot%_initdir/gkrellmd
%__install -D -m644 %SOURCE5 %buildroot%_sysconfdir/sysconfig/gkrellmd
%__install -D -m644 server/gkrellmd.conf %buildroot%_sysconfdir/gkrellmd.conf
(cd %buildroot
mkdir -p .%_menudir
cat > .%_menudir/%name <<EOF
?package(%name):\
command="%prefix/bin/gkrellm"\
title="Gkrellm"\
longtitle="a gtk-based monitoring app"\
needs="x11"\
section="Applications/Monitoring" \
icon="gkrellm.xpm"
EOF
)
%find_lang %name
%post
%update_menus
%postun
%clean_menus
%pre -n gkrellmd
/usr/sbin/useradd -M -r -d /dev/null -s /dev/null \
-c "GKrellM server" gkrellmd >/dev/null 2>&1 || :
%post -n gkrellmd
%post_service gkrellmd
%preun -n gkrellmd
%preun_service gkrellmd
%files -f %name.lang
%doc COPYRIGHT Changelog CREDITS README *.html
%_bindir/gkrellm
%_man1dir/gkrellm.*
%_menudir/*
%dir %_libdir/gkrellm2
%_libdir/gkrellm2/*
%_iconsdir/gkrellm.xpm
%_liconsdir/gkrellm.xpm
%_miconsdir/gkrellm.xpm
%files devel
%dir %_includedir/gkrellm2
%_includedir/gkrellm2/*
%_libdir/pkgconfig/*
%files -n gkrellmd
%_bindir/gkrellmd
%config(noreplace) %_initdir/gkrellmd
%config(noreplace) %_sysconfdir/sysconfig/gkrellmd
%config(noreplace) %_sysconfdir/gkrellmd.conf
%_man1dir/gkrellmd.*
%changelog
…
Полный changelog можно просмотреть здесь