Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37748558
en ru br
ALT Linux repos
D:1.10-alt0.0.ldv3

Group :: System/Internationalization
RPM: xxkb-enhanced

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define origname xxkb
%define ldvver 3
Name: xxkb-enhanced
Version: 1.10
Release: alt0.0.ldv%ldvver

Summary: Switcher and indicator of current keyboard layout
Summary(ru_RU.KOI8-R): Индикатор и переключатель состояния клавиатуры
License: Artistic
Group: System/Internationalization
Url: http://www.tsu.ru/~pascal/other/%origname

Source: %url/%origname-%version.tar.bz2
Source1: %origname.xpm
Source2: %origname.menu
Source3: README.emacs
Source4: xxkbrc.emacs

Patch: %origname-1.10-alt-fixes.patch
Patch1: %origname-1.10-markov.patch

Provides: %origname = %{version}-alt%{ldvver}.vla1
Conflicts: %origname < %{version}-alt%{ldvver}.vla1

# Automatically added by buildreq on Sat Oct 26 2002

BuildRequires: XFree86-devel xpm-devel

%description
The xxkb program shows the current keyboard layout (an XKB group) and
allows to switch it with a mouse click.  It has some additional features.
The xxkb remebers the layout for each application window and changes
the keyboard state accordingly when the window gets a focus.  The xxkb
can place an additional button on a window titlebar and that button is
a switcher and an indicator for that separate window.  If the keyboard
map has more than two layouts the xxkb can simplify a switching using a
two_state mode.  In this mode the xxkb allows to choose two layouts, one
as a base layout and another one as an alternative layout and then switch
the keyboard state between them only.  Also the xxkb supports applications
lists which allow to tune its behavior for some separate applications.

The xxkb works with any window manager.

Patch by Evgenii Markov is included. See README.emacs for details (in
Russian).

%DESCRIPTION -l ru_RU.KOI8-R
Эта программа является индикатором и переключателем состояния клавиатуры
("группы" в терминах XKB).

То есть, она
- показывает текущую группу ("картинкой" в своем окне)
- переключает группу "щелчком мыши".
При этом группа может перключаться и "штатным" переключателем - клавишей,
определенной в файлах настройки XKB.

Кроме того xxkb позволяет
- устанавливать отдельно состояние клавиатуры для каждого запущенного
приложения.  Состояние будет автоматически переключаться при изменении
фокуса окна.
- "подвешивать" кнопку ("иконку") на "обрамление" каждого отслеживаемого
окна.  Эта кнопка сама является индикатором и переключателем ("щелчком
мыши" по ней) для данного окна.
- в случае, когда XKB настроен более чем для двух групп, "корректировать"
поведение клавиши переключателя так, чтобы она имела только два состояния
- "основная группа"-"альтернативная группа".  Альтернативную группу
можно устанавливать отдельно для каждого отслеживаемого окна.

Надо заметить, что xxkb может работать с любым Window Manager'ом.

В эту сборку включен патч Евгений Маркова. Подробнее смотрите в файле
README.emacs (на русском).

%prep
%setup -q -n %origname-%version
%patch -p1
%patch1 -p1

%build
%__cp %SOURCE3 %SOURCE4 .
xmkmf
%make_build CDEBUGFLAGS="$RPM_OPT_FLAGS" BASEDIR=%prefix PIXMAPDIR=%_datadir/%origname

%install
%__mkdir_p $RPM_BUILD_ROOT%_datadir/%origname
%__install -p -m644 *.xpm $RPM_BUILD_ROOT%_datadir/%origname/
%__install -pD -m755 %origname $RPM_BUILD_ROOT%_bindir/%origname
%__install -pD -m644 %origname.man $RPM_BUILD_ROOT%_man1dir/%origname.1
%__install -pD -m644 %SOURCE1 $RPM_BUILD_ROOT%_iconsdir/%origname.xpm
%__install -pD -m644 %SOURCE2 $RPM_BUILD_ROOT%_menudir/%origname

%post
%update_menus

%postun
%clean_menus

%files
%_bindir/*
%_man1dir/*
%_menudir/*
%_iconsdir/*.xpm
%_datadir/%origname
%doc CHANGES.koi8 README.koi8 XXkb.ad README.emacs xxkbrc.emacs

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin