File xvkbd.spec of Package xvkbd

#
# spec file for package xvkbd (Version 3.2)
#
# 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/
#

# norootforbuild

%if 0%{?suse_version} < 1020
%define _prefix %{_usr}/X11R6
%define _mandir %{_prefix}/man
%define appdefdir %{_prefix}/lib/X11/app-defaults
%else
%define appdefdir %{_datadir}/X11/app-defaults
%endif

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.2
Release:        2
License:        GPLv2+
Group:          System/X11/Utilities
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://homepage3.nifty.com/tsato/xvkbd/
# http://homepage3.nifty.com/tsato/xvkbd/xvkbd-%{version}.tar.gz
Source:         %{name}-%{version}.tar.bz2
Source1:        xvkbd.desktop
Source2:        xvkbd.png
Source3:        xvkbd.default
Patch1:         xvkbd-3.0-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
%patch1 -p1

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

%install
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install.man
%if %suse_version > 820
%__install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_usr}/share/applications/%{name}.desktop"
%if %suse_version > 1010
%suse_update_desktop_file -r %{name} Utility Accessibility
%endif #1010
%endif #820
%__install -D -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_usr}/share/pixmaps/xvkbd.png
%__install -D -m0644 %{SOURCE3} $RPM_BUILD_ROOT%{appdefdir}/xvkbd.default

%clean
%__rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%doc %{_mandir}/man1/xvkbd.1*
%{appdefdir}/XVkbd*
%{appdefdir}/xvkbd.default
%{_bindir}/xvkbd
%if %suse_version > 820
%{_usr}/share/applications/%{name}.desktop
%endif
%{_usr}/share/pixmaps/xvkbd.png
%doc README

%changelog
openSUSE Build Service is sponsored by