Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1490265
 поиск   регистрация   авторизация 
 
Группа :: Мониторинг
Пакет: gkrellm-gkrellmms

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

%define plugin gkrellmms

%def_with M24

%if_with M24
%define _release alt0.M24.1
%else
%define _release alt1
%endif

Name: gkrellm-%plugin
Version: 2.1.22
Release: %_release
Packager: Grigory Batalov <bga at altlinux.ru>

Summary: GKrellM XMMS plugin
Summary(ru_RU.KOI8-R): XMMS-плагин для GKrellM
License: GPL
Group: Monitoring
Url: http://gkrellm.luon.net/gkrellmms.phtml

Source0: http://gkrellm.luon.net/files/%plugin-%version.tar.bz2
Source1: gkrellmms-2.1.20-alt-ru_po.bz2
# removes gtk+-devel dependence
Patch0: http://lrn.ru/~bga/gkrellm/gkrellmms-2.1.9-alt-makefile.patch.gz
Patch1: http://lrn.ru/~bga/gkrellm/gkrellmms-2.1.6-alt-scroll_separator.patch.gz
Patch3: gkrellmms-2.1.22-alt-beep.patch.gz

Requires: gkrellm >= 2.2.0, xmms

# Automatically added by buildreq on Mon Apr 04 2005

BuildRequires: glib2-devel libatk-devel libgtk+2-devel libpango-devel pkgconfig
BuildRequires: gkrellm-devel >= 2.2.0
# XMMS
BuildRequires: gtk+-devel libxmms-devel
# Beep Media Player
BuildRequires: libbeep-devel >= 0.9.7, gnome-vfs2-devel

%description
A plugin for GKrellM, which allows you to control XMMS player.

%description -l ru_RU.KOI8-R
Плагин для GKrellM, позволяющий управлять проигрывателем XMMS.

%package beep
Summary: GKrellM Beep plugin
Summary(ru_RU.KOI8-R): Beep-плагин для GKrellM
Group: Monitoring
Conflicts: %name
Requires: gkrellm >= 2.2.0, beep >= 0.9.7

%description beep
A plugin for GKrellM, which allows you to control Beep Media Player.

%description beep -l ru_RU.KOI8-R
Плагин для GKrellM, позволяющий управлять проигрывателем Beep.

%prep
%setup -q -n %plugin
#%patch0 -p0
%patch1 -p1
%patch3 -p1
%__bzip2 -cd %SOURCE1 > po/ru.po

# for old beep-0.9.6

#%%if_with M24
#%%__subst 's,pkg-config --cflags bmp,pkg-config --cflags beep,g' Makefile
#%%__subst 's,pkg-config --libs bmp,pkg-config --libs beep,g' Makefile
#%%__subst 's,bmp/beepctrl.h,beep/beepctrl.h,g' gkrellmms.h
#%%__subst 's,bmp/beepctrl.h,beep/beepctrl.h,g' playlist.h
#%%endif

%build
%make_build enable_nls=1 use_beep=yes CFLAGS="$RPM_OPT_FLAGS" LOCALEDIR=%_datadir/locale
%__mv %plugin.so %plugin-beep.so
%__rm -f *.o
%make_build enable_nls=1 use_beep=no CFLAGS="$RPM_OPT_FLAGS" LOCALEDIR=%_datadir/locale

%install
%__mkdir_p %buildroot%_libdir/gkrellm2/plugins
%make_install install enable_nls=1 DESTDIR=%buildroot LOCALEDIR=%_datadir/locale PLUGIN_DIR=%_libdir/gkrellm2/plugins
%__install -m 755 %plugin-beep.so %buildroot%_libdir/gkrellm2/plugins/%plugin-beep.so
%find_lang gkrellmms

%files -f gkrellmms.lang
%doc Changelog README Themes FAQ
%_libdir/gkrellm2/plugins/%plugin.so

%files beep -f gkrellmms.lang
%doc Changelog README Themes FAQ
%_libdir/gkrellm2/plugins/%plugin-beep.so

%changelog

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

 
design & coding: Vladimir Lettiev aka crux © 2004-2005