Package gkrellm-shoot: Specfile

%define sourcename gkrellshoot
%define plugin shoot

Name: gkrellm-%plugin
Version: 0.4.4
Release: alt1.qa1

Summary: GKrellM shoot plugin
Summary(ru_RU.CP1251): \xcf\xeb\xe0\xe3\xe8\xed shoot \xe4\xeb\xff GKrellM
License: GPL
Group: Monitoring
Url: http://%sourcename.sourceforge.net/

Packager: Andrey Rahmatullin <wrar@altlinux.ru>

Source: http://umn.dl.sourceforge.net/sourceforge/%sourcename/%sourcename-%version.tar.gz

Patch0: %sourcename-0.4.4-alt-i18n.patch
Patch1: %sourcename-0.4.1-alt-ru.patch
Patch2: %sourcename-0.4.1-alt-install.patch

Provides: %sourcename = %version
Obsoletes: %sourcename <= %version

Requires: gkrellm >= 2.0

BuildPreReq: gkrellm-devel

%description
This GKrellM plugin gives you convenient one button access to initiating a
screen lock (screensaver) and screen shots. It also has charts with various
nice screensaver style animations.

%description -l ru_RU.CP1251
\xdd\xf2\xee\xf2 GKrellM \xef\xeb\xe0\xe3\xe8\xed \xef\xee\xe7\xe2\xee\xeb\xff\xe5\xf2 \xf3\xe4\xee\xe1\xed\xee \xe7\xe0\xef\xe8\xf0\xe0\xf2\xfc \xfd\xea\xf0\xe0\xed \xe8 \xe4\xe5\xeb\xe0\xf2\xfc \xf1\xed\xe8\xec\xea\xe8
\xfd\xea\xf0\xe0\xed\xe0 \xf1 \xef\xee\xec\xee\xf9\xfc\xfe \xee\xe4\xed\xee\xe9 \xea\xed\xee\xef\xea\xe8. \xc2 \xed\xe5\xec \xf2\xe0\xea\xe6\xe5 \xe5\xf1\xf2\xfc \xf7\xe0\xf0\xf2 \xf1 \xf0\xe0\xe7\xeb\xe8\xf7\xed\xfb\xec\xe8 \xea\xf0\xe0\xf1\xe8\xe2\xfb\xec\xe8
\xe0\xed\xe8\xec\xe0\xf6\xe8\xff\xec\xe8.

%prep
%setup -q -n gkrellShoot-%version
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%make_build enable_nls=1  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 %sourcename

%files -f %sourcename.lang
%doc ChangeLog README
%_libdir/gkrellm2/plugins/gkrell%plugin.so

%changelog
* Wed Apr 17 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 0.4.4-alt1.qa1
- NMU: rebuilt for debuginfo.

* Sat Sep 06 2008 Andrey Rahmatullin <wrar@altlinux.ru> 0.4.4-alt1
- 0.4.4

* Tue May 18 2004 Alex Murygin <murygin@altlinux.ru> 0.4.1-alt3
- renamed to gkrellm-{NAME}
- added russian summary, description

* Sat Mar 29 2003 Alex Murygin <murygin@altlinux.ru> 0.4.1-alt2
- Added i18n support
- Added russian translation

* Mon Mar 03 2003 Alex Murygin <murygin@altlinux.ru> 0.4.1-alt1
- Built for ALTLinux