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.
%if %{?_with_guile:1}0
%define with_guile 1
%endif

Name:           xbindkeys
Version:        1.8.4
Release:        0
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
%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}

openSUSE Build Service is sponsored by