File xbindkeys.spec of Package xbindkeys
# norootforbuild
%define _prefix /usr
# 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.2
Release: 0
Summary: Events Grabbing Program for X-Window
Source: http://hocwp.free.fr/xbindkeys/xbindkeys-%{version}.tar.gz
URL: http://hocwp.free.fr/xbindkeys/xbindkeys.html
Group: System/Hardware
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
%debug_package
%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
%__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*
%changelog
* Fri Oct 5 2007 Pascal Bleser <guru@unixtech.be> 1.8.2
- moved to openSUSE Build Service
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: