Package qvkeyboard: Specfile

Name: qvkeyboard
Version: 1.0.0
Release: alt2.qa3

Summary: Virtual keyboard for X11
License: GPLv2
Group: Accessibility

Source1: %name.png
Source2: %name.desktop
Patch: qvkeyboard-1.0.0-alt-DSO.patch
Packager: Motsyo Gennadi <>

BuildRequires: desktop-file-utils

# Automatically added by buildreq on Thu Apr 03 2008 (-bi)
BuildRequires: gcc-c++ ImageMagick-tools libqt4-devel libXtst-devel

Virtual keyboard for X11. Has support for languages via xml file.

%setup -n %name
%patch0 -p2
%ifarch %e2k
# error: a value of type "const QMyButton *" cannot be assigned to an entity of type "QMyButton *"
sed -i 's/QMyButton \*btn;/const &/' mainfrm.cpp

export PATH=$PATH:%_qt4dir/bin
%add_optflags -fpermissive
qmake "QMAKE_CFLAGS+=%optflags" "QMAKE_CXXFLAGS+=%optflags"

mkdir -p %buildroot%_datadir/%name
install -Dp -m 0755 %name %buildroot%_bindir/%name.bin
cp *.xml %buildroot%_datadir/%name/ && chmod 0644 %buildroot%_datadir/%name/*.xml
install -Dp -m 0644 %SOURCE2 %buildroot%_desktopdir/%name.desktop

cat << EOF > %buildroot%_bindir/%name
cd %_datadir/%name && %name.bin &
chmod +x %buildroot%_bindir/%name

# icons
mkdir -p %buildroot/{%_miconsdir,%_niconsdir,%_liconsdir}
convert -resize 16x16 %SOURCE1 %buildroot%_miconsdir/%name.png
convert -resize 32x32 %SOURCE1 %buildroot%_niconsdir/%name.png
convert -resize 48x48 %SOURCE1 %buildroot%_liconsdir/%name.png
desktop-file-install --dir %buildroot%_desktopdir \
	--add-category=Accessibility \


* Mon Feb 07 2022 Michael Shigorin <> 1.0.0-alt2.qa3
- E2K: ftbfs workaround (by ilyakurdyukov@)

* Wed Jun 13 2012 Eugeny A. Rostovtsev (REAL) <real at> 1.0.0-alt2.qa2
- Fixed build

* Tue Jun 07 2011 Repocop Q. A. Robot <> 1.0.0-alt2.qa1
- NMU (by repocop). See
- applied repocop fixes:
  * freedesktop-desktop-file-proposed-patch for qvkeyboard
  * postclean-03-private-rpm-macros for the spec file

* Thu Nov 20 2008 Motsyo Gennadi <> 1.0.0-alt2
- delete post/postun scripts (new rpm)

* Thu Apr 03 2008 Motsyo Gennadi <> 1.0.0-alt1
- initial build for ALT Linux