File vkeybd.spec of Package vkeybd

#
# spec file for package vkeybd (Version 0.1.18b)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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
Summary:        Vkeybd - Virtual Keyboard Instrument
Version:        0.1.18b
Release:        1
License:        GPL v2 or later
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 \
	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
* Thu Apr 17 2008 tiwai@suse.de
- version 0.1.18b:
  * improved vkeybd.desktop
- use 48x48 pixmap for the default icon
- automated tcl version detection in spec file
* Mon Apr 07 2008 ro@suse.de
- hardcode tcl version for the moment to fix build
* Mon Jan 14 2008 tiwai@suse.de
- version 0.1.18a:
  * fixed a packaging bug
- version 0.1.18:
  * select the default keymap per locale
* Mon Aug 06 2007 tiwai@suse.de
- version 0.1.17b:
  * fix build without linux/awe_voice.h
* Tue Jan 16 2007 tiwai@suse.de
- use $RPM_OPT_FLAGS.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Oct 11 2005 tiwai@suse.de
- updated to version 0.1.17a.
- removed ladcca support (temprarily)
* Wed Sep 15 2004 tiwai@suse.de
- fixed missing icon; create symlink vkeybd_32x32.png -> vkeybd.png.
* Tue Aug 31 2004 tiwai@suse.de
- updated to version 0.1.17.
* Wed Mar 03 2004 tiwai@suse.de
- updated to version 0.1.16
  desktop and icons are included in tarball.
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Thu Nov 20 2003 tiwai@suse.de
- updated to version 0.1.15.
- added jack and e2fsprogs to neededforbuild, which are required
  by the new ladcca.
* Mon Sep 15 2003 tiwai@suse.de
- added desktop icon.
* Tue Aug 19 2003 tiwai@suse.de
- updated to version 0.1.14.
* Mon Aug 18 2003 tiwai@suse.de
- added desktop file.
* Thu Jul 24 2003 tiwai@suse.de
- added tk-devel to neededforbuild.
* Thu Jul 03 2003 tiwai@suse.de
- updated to version 0.1.13a.
- added the support of LADCCA.
* Fri Feb 28 2003 tiwai@suse.de
- removed the annoying debug messages.
* Thu Jan 23 2003 tiwai@suse.de
- updated to version 0.1.13.
* Fri Jan 17 2003 tiwai@suse.de
- added the extended rc file for the german keyboard layout.
* Tue Nov 12 2002 ro@suse.de
- changed neededforbuild <xshared> to <x-devel-packages>
- changed neededforbuild <xdevel> to <>
* Fri Aug 23 2002 tiwai@suse.de
- removed (again) debug prints.
* Wed Aug 14 2002 tiwai@suse.de
- neededforbuild xf86 -> xdevel, xshared
* Thu Jul 25 2002 tiwai@suse.de
- removed debug prints.
* Fri Jul 12 2002 max@suse.de
- Detecting Tcl/Tk version at build time.
* Mon May 06 2002 tiwai@suse.de
- fixed build on 64bit architectures.
- check Tk_Main is defined.
- do not bind default keys if already defined by user.
* Thu Jan 17 2002 tiwai@suse.de
- fixed mouse motion on ebony keys.
* Mon Jan 07 2002 tiwai@suse.de
- updated to ver.0.1.11.
  key auto-repeat hack is enabled.
* Tue Jul 24 2001 tiwai@suse.de
- updated to ver.0.1.10a.
  ALSA 0.9.x API is supported.
* Fri Jul 13 2001 grimmer@suse.de
- Fixed file list (using wildcards for man pages)
* Wed Nov 29 2000 ro@suse.de
- changed neededforbuild <tcld> to <tcl-devel>
* Tue Nov 28 2000 tiwai@suse.de
- Fixed title bar on alsa device mode.
- Added a hack to avoid kernel oops on alsa device mode.
* Mon Nov 20 2000 tiwai@suse.de
- Updated to ver.0.1.9.
- Added --octave and --name options.
* Fri Nov 17 2000 tiwai@suse.de
- Fixed window title.
* Thu Nov 02 2000 tiwai@suse.de
- Fixed typo.
* Thu Nov 02 2000 tiwai@suse.de
- Fixed spec file for long package-name support.
* Fri Oct 13 2000 tiwai@suse.de
- Updated to 0.1.8
* Tue Sep 26 2000 tiwai@suse.de
- Changed to bzip2
* Tue Jul 11 2000 tiwai@suse.de
- First version: 0.1.7c
openSUSE Build Service is sponsored by