Package gkrellm-alltraxclock2: Specfile

%define plugin alltraxclock2

Name: gkrellm-%plugin
Version: 0.2
Release: alt1
Packager: Grigory Batalov <bga@altlinux.ru>

Summary: GKrellM analog clock plugin
Summary(ru_RU.KOI8-R): \xfe\xc1\xd3\xd9 \xd3\xcf \xd3\xd4\xd2\xc5\xcc\xcb\xc1\xcd\xc9 \xc4\xcc\xd1 GKrellM
License: GPL
Group: Monitoring
Url: http://perso.wanadoo.fr/alltrax/alltraxclock.html

Source: http://perso.wanadoo.fr/alltrax/alltraxclock2_0.2-1.tar.bz2
Patch0: http://lrn.ru/~bga/gkrellm/alltraxclock2-0.2-alt-i18n.patch.gz
Patch1: http://lrn.ru/~bga/gkrellm/alltraxclock2-0.2-alt-ru_po.patch.gz

Requires: gkrellm >= 2.0

# Automatically added by buildreq on Thu Jun 19 2003
BuildRequires: gkrellm-devel glib2-devel libatk-devel libgtk+2-devel libpango-devel pkgconfig

%description
A plugin for GKrellM, which displays a nice analog clock
with the theme colors.
%description -l ru_RU.KOI8-R
\xf0\xcc\xc1\xc7\xc9\xce \xc4\xcc\xd1 GKrellM, \xcf\xd4\xcf\xc2\xd2\xc1\xd6\xc1\xc0\xdd\xc9\xca \xd7\xd2\xc5\xcd\xd1 \xce\xc1 \xde\xc1\xd3\xc1\xc8 \xd3\xcf \xd3\xd4\xd2\xc5\xcc\xcb\xc1\xcd\xc9
\xd3\xcf\xcf\xd4\xd7\xc5\xd4\xd3\xd4\xd7\xc5\xce\xce\xcf \xcf\xc6\xcf\xd2\xcd\xcc\xc5\xce\xc9\xc0 GkrellM.

%prep
%setup -q -n %{plugin}_%version
%patch0 -p1
%patch1 -p1

%build
%make_build enable_nls=1
# CFLAGS="$RPM_OPT_FLAGS" LOCALEDIR=%_datadir/locale

%install
#%__mkdir_p %buildroot%_libdir/gkrellm2/plugins
%make_install install enable_nls=1 PLUGIN_DIR=%buildroot%_libdir/gkrellm2/plugins INSTALL_PREFIX=%buildroot LOCALEDIR=%_datadir/locale
%find_lang alltraxclock

%files -f alltraxclock.lang
%doc debian/changelog debian/changelog.old
%_libdir/gkrellm2/plugins/alltraxclock.so

%changelog
* Thu Jun 19 2003 Grigory Batalov <bga@altlinux.ru> 0.2-alt1
- 0.2
- I18n and ru.po patches