File kbdsniffd.spec of Package kbdsniffd

#
# spec file for package kbdsniffd (Version 0.4)
#
# Copyright (c) 2008 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:           kbdsniffd
BuildRequires:  gcc-c++ glibc-devel
Version:        0.4
Release:        1
License:        GPL v2 or later
Group:          Hardware/Other
Source:         kbdsniffd-0.4.tbz2
Summary:        keyboard grabber daemon
PreReq:         %insserv_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
kbdsniffd is a keyboard grabber daemon applications like screenreaders
(sbl) can connect via network socket to the daemon and set a modifier
key to enable the grabbing mode if the modifier key is pressed all
key-strokes are send to the connected application this is useful if a
blind user wants to use a screenreader without a braille display the
grabbed keys can be used to trigger special screenreader functions



Authors:
--------
    Marco Skambraks

%prep
%setup -n kbdsniffd-0.4
#%patch -p2

%build
make CFLAGS="$RPM_OPT_FLAGS -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE" LIB_CFLAGS="$RPM_OPT_FLAGS -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -fPIC"

%install 
mkdir -p $RPM_BUILD_ROOT/usr/sbin
mkdir -p $RPM_BUILD_ROOT/etc/init.d
make LIBINSTPATH=%{_libdir} DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/ldconfig
%{insserv_force_if_yast etc/init.d/kbdsniffd }

%postun
/sbin/ldconfig
%{insserv_cleanup}

%files
%defattr (-,root,root,755)
%doc COPYING Changelog
/usr/sbin/kbdsniffd
/usr/sbin/rckbdsniffd
%config /etc/init.d/kbdsniffd
%config /etc/kbdsniffd.conf

%changelog
* Fri Jul 18 2008 marco@suse.de
- added scanoption for highest kbd-dev
- added error handling if keyboard is disconnected
* Sat Jun 21 2008 marco@suse.de
- added X feature
- disable sniffing mode if current console is in X mode
* Sat May 10 2008 marco@suse.de
- removed run_ldconfig from spec-file
* Fri May 09 2008 marco@suse.de
- modified Makefile (install:) to avoid build errors
* Wed Apr 30 2008 marco@suse.de
- added NBIt macro patch from Klaus Knopper
- added X handling (not finished)
* Mon Mar 17 2008 marco@suse.de
- first version of kbdsniffd
openSUSE Build Service is sponsored by