File xkbset.spec of Package xkbset

#
# spec file for package xkbset (Version 0.5)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           xkbset
BuildRequires:  xorg-x11-devel
License:        X11
Group:          System/X11/Utilties
Summary:        Utility to manage XKB features
Version:        0.5
Release:        1
Source:         %{name}-%{version}.tar.bz2
Url:            http://www.math.missouri.edu/~stephen/software/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
xkbset is a small program to manage many of the XKB features of X window,
including MouseKeys, AccessX, StickyKeys, BounceKeys, and SlowKeys.

%prep
%setup -q

%build
make X11BASE=%{_prefix} LIB_PATH=-L%{_libdir}

%install
# make install INSTALL_BIN=%{_bindir} INSTALL_MAN1=%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -c -m 0755 xkbset $RPM_BUILD_ROOT%{_bindir}
install -c -m 0755 xkbset-gui $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -c -m 0644 xkbset.1 $RPM_BUILD_ROOT%{_mandir}/man1

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc COPYRIGHT README TODO VERSIONS
%{_mandir}/man1/*
%{_bindir}/*

%changelog
openSUSE Build Service is sponsored by