]>
Commit | Line | Data |
---|---|---|
80375716 | 1 | Summary: bbkeys, a completely configurable key-combo grabber for blackbox |
c5956979 | 2 | Summary(pl.UTF-8): Całkowicie konfigurowalny przechwytywacz klawiszy dla blackboksa |
80375716 | 3 | Name: bbkeys |
2de88b99 | 4 | Version: 0.8.6 |
180aaf8d | 5 | Release: 4 |
80375716 | 6 | License: GPL |
7 | Group: X11/Applications | |
5a9a8257 | 8 | Source0: http://dl.sourceforge.net/bbkeys/%{name}-%{version}.tar.gz |
87ecb751 | 9 | # Source0-md5: 6df58a99d136f21682b859b823d31b7d |
df901a21 | 10 | Patch0: %{name}-sysconfdir.patch |
2de88b99 | 11 | Patch1: %{name}-ac_fixes.patch |
8f9cfc28 | 12 | Patch2: %{name}-etc_dir.patch |
ccfc0532 | 13 | URL: http://bbkeys.sourceforge.net/ |
2de88b99 | 14 | BuildRequires: XFree86-devel |
44c9028d | 15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
2de88b99 | 17 | BuildRequires: libstdc++-devel |
318154c2 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
80375716 | 19 | |
80375716 | 20 | %description |
21 | bbkeys is a configurable key-grabber designed for the blackbox window | |
22 | manager which is written by Brad Hughes. It is based on the bbtools | |
23 | object code created by John Kennis and re-uses some of the blackbox | |
24 | window manager classes as well. bbkeys is easily configurable via | |
5593f85b | 25 | directly hand-editing the user's ~/.bbkeysrc file, or by using the |
80375716 | 26 | provided gui configuration tool, bbkeysconf (for lack of a better name |
27 | yet). | |
44c9028d | 28 | |
74f0f5a4 | 29 | %description -l pl.UTF-8 |
d596fcb6 | 30 | bbkeys jest konfigurowalnym programem do przechwytywania klawiszy |
74f0f5a4 | 31 | zaprojektowanym dla zarządcy okien blackbox, napisanego przez Brada |
d596fcb6 | 32 | Hughesa. Bazuje na kodzie obiektowym bbtools napisanym przez Johna |
74f0f5a4 JR |
33 | Kennisa, używa także niektórych klas blackboksa. bbkeys są łatwo |
34 | konfigurowalne przez bezpośrednią edycję pliku użytkownika | |
18b282af ER |
35 | ~/.bbkeysrc, albo poprzez graficzny interfejs bbkeysconf (z braku |
36 | lepszej nazwy). | |
d596fcb6 | 37 | |
80375716 | 38 | %prep |
180aaf8d | 39 | %setup -q |
df901a21 | 40 | %patch0 -p1 |
2de88b99 | 41 | %patch1 -p1 |
a5fb8d15 | 42 | %patch2 -p1 |
f6e733e3 | 43 | |
44 | %build | |
4624ac6b | 45 | %{__aclocal} |
7d35dd62 | 46 | %{__autoconf} |
47 | %{__automake} | |
2de88b99 | 48 | CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions" |
80375716 | 49 | %configure |
2de88b99 | 50 | %{__make} |
80375716 | 51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
974b01f5 PG |
55 | %{__make} install \ |
56 | DESTDIR=$RPM_BUILD_ROOT | |
80375716 | 57 | |
80375716 | 58 | %clean |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
180aaf8d JB |
61 | %triggerpostun -- bbkeys < 0.8.6-4 |
62 | if [ -f /etc/default/bbtools/bbkeys.bb.rpmsave ]; then | |
63 | mv -f %{_sysconfdir}/bbtools/bbkeys.bb %{_sysconfdir}/bbtools/bbkeys.bb.rpmnew | |
64 | mv -f /etc/default/bbtools/bbkeys.bb.rpmsave %{_sysconfdir}/bbtools/bbkeys.bb | |
65 | fi | |
66 | if [ -f /etc/default/bbtools/bbkeys.nobb.rpmsave ]; then | |
67 | mv -f %{_sysconfdir}/bbtools/bbkeys.nobb %{_sysconfdir}/bbtools/bbkeys.nobb.rpmnew | |
68 | mv -f /etc/default/bbtools/bbkeys.nobb.rpmsave %{_sysconfdir}/bbtools/bbkeys.nobb | |
69 | fi | |
70 | rmdir /etc/default/bbtools 2>/dev/null || : | |
71 | ||
80375716 | 72 | %files |
73 | %defattr(644,root,root,755) | |
4624ac6b | 74 | %doc README AUTHORS ChangeLog NEWS TODO |
2de88b99 | 75 | %dir %{_sysconfdir}/bbtools |
18b282af | 76 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bbtools/%{name}.* |
80375716 | 77 | %attr(755,root,root) %{_bindir}/* |
180aaf8d | 78 | %{_mandir}/man[15]/* |