File kbdd.spec of Package kbdd

#
# spec file for package kbdd (Version 0.5)
#
# Copyright (c) 2010 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/
#

Name:           kbdd
Version:        0.5
Release:        1
License:        GPLv2+
Summary:        A simple daemon and library to make per window layout
Url:            https://github.com/qnikst/kbdd
Group:          System/X11/Utilities
Source:         https://github.com/downloads/qnikst/kbdd/%{name}-%{version}.tar.bz2
BuildRequires:  xorg-x11-devel
%if ! 0%{?sles_version}
BuildRequires:  pkgconfig(dbus-glib-1)
%else
BuildRequires:  dbus-1-glib-devel
%endif

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
simple daemon and library to make per window layout
using XKB(X KeyBoard Extension).

%prep
%setup -q
export CFLAGS="%{optflags} -pthread -lgthread-2.0 -lglib-2.0"
%configure
%build
make

%install
%makeinstall

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README NEWS COPYING INSTALL AUTHORS ChangeLog
%{_bindir}/%{name}
%{_datadir}/dbus-1/interfaces/%{name}-service-interface.xml
%{_mandir}/man1/kbdd.1.gz

%changelog
openSUSE Build Service is sponsored by