File xbindkeys.spec of Package xbindkeys
# vim: set ts=4 sw=4 et:
# Guile support is disabled by default, has no real
# advantages except being able to write xbindkeys
# configuration in a lisp-alike syntax but it pulls
# in guile, which is rarely used by most end-users.
#
# To enable guile support, build the spec file and
# pass --with guile to rpmbuild.
%bcond_with guile
Name: xbindkeys
Version: 1.8.5
Release: 1.1
Summary: Events Grabbing Program for X-Window
# http://www.nongnu.org/xbindkeys/xbindkeys-%{version}.tar.gz
Source: xbindkeys-%{version}.tar.bz2
URL: http://www.nongnu.org/xbindkeys/xbindkeys.html
Group: System/X11/Utilities
License: GNU General Public License version 2 or later (GPL v2 or later)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%if %{?with_guile:1}0
BuildRequires: guile-devel
%endif
BuildRequires: gcc make glibc-devel xorg-x11-devel
BuildRequires: autoconf automake libtool
%description
xbindkeys is a program that associates keys or mouse buttons to shell commands
under X. After a little configuration, it can start many commands with the
keyboard (e.g. control+alt+x starts an xterm) or with the mouse buttons.
%if %{?!with_guile:1}0
guile support is disabled in this package.
To enable guile support, rebuild the src.rpm and pass --with guile
to rpmbuild.
%endif
%prep
%setup -q
%build
%configure \
--disable-tk \
%if %{?with_guile:1}0
--enable-guile
%else
--disable-guile
%endif
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc AUTHORS BUGS ChangeLog COPYING NEWS README TODO
%doc xbindkeysrc
%if %{?with_guile:1}0
%doc xbindkeysrc.scm
%endif
%{_bindir}/xbindkeys
%doc %{_mandir}/man1/xbindkeys.1%{ext_man}
%changelog
* Mon Mar 14 2011 pascal.bleser@opensuse.org
- update to 1.8.5:
* adds Guile 2.0 support
* replaces some deprecated functions
* Tue Dec 7 2010 pascal.bleser@opensuse.org
- update to 1.8.4:
* fixes a memory fault when using it with libX11-1.4.0
* Sun Jan 25 2009 guru@unixtech.be
- update to 1.8.3:
* a listen loop was added in the main loop. This fixes a bug where, in the
previous version, a keypress was needed to reload the configuration file
after a keybinding change. Now one can edit the configuration file and
keybindings are automatically updated after each save.
* Fri Oct 5 2007 guru@unixtech.be
- moved to openSUSE Build Service