File vkeybd.spec of Package vkeybd

# spec file for package vkeybd (Version 0.1.18d)
# Copyright (c) 2009 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

# norootforbuild

Name:           vkeybd
BuildRequires:  alsa-devel pkgconfig tk-devel update-desktop-files xorg-x11-devel
BuildRequires:  lash-devel
Summary:        Vkeybd - Virtual Keyboard Instrument
Version:        0.1.18d
Release:        1
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Midi
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Vkeybd is a virtual keyboard (as in musical instrument) for AWE32/64,
raw MIDI, and ALSA sequencer drivers.  It is written in Tcl/Tk.  Enjoy
playing music with your "computer" keyboard.

    Takashi Iwai <>

%setup -q -n %{name}

TCL_VERSION=$(echo 'puts $tcl_version' | tclsh)
	PREFIX=%{_prefix} \
	XLIB="-L/usr/X11R6/lib64 -L/usr/X11R6/lib -lX11"

make DESTDIR="$RPM_BUILD_ROOT" PREFIX=%{_prefix} install
make DESTDIR="$RPM_BUILD_ROOT" MAN_DIR=%{_mandir} install-man
make DESTDIR="$RPM_BUILD_ROOT" PREFIX=%{_prefix} install-desktop
ln -sf vkeybd_48x48.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/
%suse_update_desktop_file vkeybd AudioVideo Music

[ "$RPM_BUILD_ROOT" != "/" -a -d "$RPM_BUILD_ROOT" ] && rm -rf $RPM_BUILD_ROOT

%doc %{_mandir}/man*/*
%doc README ChangeLog