Summary: Virtual Keyboard for X Window System Name: xvkbd Version: 3.0 Release: 3%{?dist} License: GPLv2+ Group: User Interface/X Source0: http://homepage3.nifty.com/tsato/xvkbd/%{name}-%{version}.tar.gz URL: http://homepage3.nifty.com/tsato/xvkbd/index.html BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils BuildRequires: libX11-devel BuildRequires: Xaw3d-devel >= 1.5E-1 BuildRequires: libXaw-devel BuildRequires: libXtst-devel BuildRequires: imake Source1: %{name}.desktop Source2: http://sourceforge.jp/projects/xvkbd-fedora/downloads/45353/%{name}.png Patch0: %{name}-3.0-fix-warn.patch %description xvkbd is a virtual (graphical) keyboard program for X Window System which provides facility to enter characters onto other clients (softwares) by clicking on a keyboard displayed on the screen. This may be used for systems without a hardware keyboard such as kiosk terminals or handheld devices. This program also has facility to send characters specified as the command line option to another client. %prep %setup -q %patch0 -p0 -b .3.0-fix-warn %build xmkmf -a # Installed "normal" files should have 0644 permission, not 0444 permission. # So I modify Makefile directly. %{__sed} -i.mode -e 's|-m 0444|-m 0644|' Makefile %{__make} CFLAGS="%{optflags}" %{?_smp_mflags} %install %{__rm} -rf %{buildroot} # By default this installs some file under /usr/lib/X11/app-defaults, # even on 64 bit architecture. So I had to add "LIBDIR=%{_libdir}/X11". %{__make} LIBDIR=%{_libdir}/X11 DESTDIR=%{buildroot} INSTALLFLAGS="-c -p" \ install install.man %{__rm} -rf %{buildroot}%{_libdir}/X11/app-defaults desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} %{__mkdir} -p %{buildroot}%{_datadir}/pixmaps %{__cp} -p %{SOURCE2} %{buildroot}%{_datadir}/pixmaps %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc README %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %{_datadir}/X11/app-defaults/XVkbd* %{_datadir}/pixmaps/%{name}.png %{_datadir}/applications/%{name}.desktop %changelog * Fri Jan 8 2010 Akio Idehara 3.0-3 - Add the lack of BuildRequires statements - Fix build failure on x86_64 - Fix some trivial mistake * Sat Dec 5 2009 Akio Idehara 3.0-2 - Add Desktop files * Sat Dec 5 2009 Akio Idehara 3.0-1 - Initial RPM release