File xvkbd.spec of Package xvkbd

#
# spec file for package xvkbd (Version 3.0)
#
# 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:           xvkbd
BuildRequires:  update-desktop-files xaw3d xorg-x11-devel
%if 0%{?suse_version} > 1020
BuildRequires:  xaw3d-devel
%endif
Summary:        Virtual Keyboard for the X Window System
Version:        3.0
Release:        29
License:        GPL v2 or later
Group:          System/X11/Utilities
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://homepage3.nifty.com/tsato/xvkbd/
Source:         %{name}-%{version}.tar.bz2
Source1:        xvkbd.desktop
Source2:        xvkbd.png
Source3:        xvkbd.default
Patch0:         %{name}-2.7a-compilerwarnings.diff
Patch1:         %{name}-2.8-fix-compilerwarnings.diff

%description
Xvkbd is a virtual (graphical) keyboard program for the X Window System
which provides a facility to enter characters onto other clients
(software) by clicking on an on-screen keyboard.



Authors:
--------
    Tom Sato <VEF00200@nifty.ne.jp>

%prep
%setup -q
%patch0
%patch1

%build
xmkmf -a
make CCOPTIONS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install.man
%if %suse_version > 1010
%suse_update_desktop_file -i xvkbd Utility Accessibility
%endif
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp %{SOURCE3} $RPM_BUILD_ROOT/usr/share/X11/app-defaults/xvkbd.default

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc /usr/share/man/man1/*
/usr/share/X11/app-defaults/XVkbd*
/usr/share/X11/app-defaults/xvkbd.default
/usr/bin/xvkbd
%if %suse_version > 820
%{_datadir}/applications/*.desktop
%endif
%{_datadir}/pixmaps/*.png
%doc README

%changelog
* Thu Dec 18 2008 dkukawka@suse.de
- added default config file with 'Automatic Click' disabled  to be
  able to start xvkbd in the login manager (see bnc#441873) with
  this option.
* Wed Jun 04 2008 dkukawka@suse.de
- enable build on SLE10
* Wed Jun 04 2008 dkukawka@suse.de
- updated to new version 3.0:
  - New Property panel.
  - New automatic click feature.
  - Key-click sounds when key is pressed.
* Fri Apr 11 2008 dkukawka@suse.de
- updated to new version 2.9:
  - Russian (Cyrillic) keyboard layout supported. (thanks, Victor)
  - New -delay option.
  - \D special sequence in -text can be used to put a delay in spe-
  cific position.
  - -text can now simulate mouse operation via \x, \y and \m
  special sequences.
* Fri Jun 01 2007 dkukawka@suse.de
- added xaw3d-devel to BuildRequires
- added patch:
  - xvkbd-2.8-fix-compilerwarnings.diff: to avoid warnings with
  warn_unused_result
* Mon Sep 11 2006 tpatzig@suse.de
- update to version 2.8 which
  o fix some bugs
  o includes some patches
* Wed Sep 06 2006 mskibbe@suse.de
- fix bug #191532 - xvkbd: with german keyboard layout "Alt Gr"
  + X combinations not working
* Fri Aug 11 2006 mskibbe@suse.de
- fix paths for xorg7
* Mon Aug 07 2006 mskibbe@suse.de
- change X paths
* Thu Jul 13 2006 mskibbe@suse.de
- add patch for compiler warnings
* Sat Mar 11 2006 coolo@suse.de
- Fix Menu-description
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jul 02 2005 hvogel@suse.de
- use optflags
* Mon May 09 2005 hvogel@suse.de
- updated to version 2.7a
* Thu Aug 05 2004 tiwai@suse.de
- updated to version 2.6.
* Wed Mar 31 2004 adrian@suse.de
- add Utility Category
* Tue Jan 13 2004 tiwai@suse.de
- build as non-root.
* Mon Sep 15 2003 tiwai@suse.de
- added desktop icon.
* Sun Sep 07 2003 adrian@suse.de
- add Accessibility Category
* Mon Aug 18 2003 tiwai@suse.de
- updated to version 2.5a.
- added desktop file.
* Mon Nov 25 2002 tiwai@suse.de
- updated to version 2.5.
* Mon Nov 11 2002 ro@suse.de
- changed neededforbuild <xshared> to <x-devel-packages>
- changed neededforbuild <xdevel> to <>
* Tue Aug 06 2002 tiwai@suse.de
- updated to version 2.3.
* Wed Jan 16 2002 tiwai@suse.de
- initial version: 0.2.
openSUSE Build Service is sponsored by