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 http://bugs.opensuse.org/
#
# 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
Url: http://www.alsa-project.org/~iwai/alsa.html
Source: ftp://ftp.suse.com/pub/people/tiwai/vkeybd/%{name}-%{version}.tar.bz2
%description
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.
Authors:
--------
Takashi Iwai <tiwai@suse.de>
%prep
%setup -q -n %{name}
%build
TCL_VERSION=$(echo 'puts $tcl_version' | tclsh)
make COPTFLAGS="$RPM_OPT_FLAGS" \
PREFIX=%{_prefix} \
TCL_VERSION=$TCL_VERSION \
USE_LASH=1 \
XLIB="-L/usr/X11R6/lib64 -L/usr/X11R6/lib -lX11"
%install
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
%clean
[ "$RPM_BUILD_ROOT" != "/" -a -d "$RPM_BUILD_ROOT" ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_bindir}/*
%{_datadir}/vkeybd
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%doc %{_mandir}/man*/*
%doc README ChangeLog
%changelog