#
# spec file for package vmpk (Version 0.5.1)
#
# norootforbuild

Name:           vmpk
Version:        0.5.1
Release:        alt1
License:        GPL v3 or later
Summary:        Virtual MIDI Piano Keyboard
Group:          Sound
Packager:		Ivan Karpukhin <ikar@altlinux.org>
Source:         http://downloads.sourceforge.net/project/%name/%name/%version/%name-%version.tar.bz2
URL:            http://vmpk.sourceforge.net
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake gcc-c++ libalsa-devel libicu50 libjack-devel libqt4-sql-interbase libqt4-sql-mysql libqt4-sql-odbc libqt4-sql-postgresql libqt4-sql-sqlite2 phonon-devel qt4-designer xsltproc rpm-build-suse-compat desktop-file-utils

#BuildRequires:  cmake gcc4.7-c++ gcc-c++-common rpm-build rpm-build-suse-compat
#BuildRequires:  libalsa-devel libjack-devel
#BuildRequires:  libqt4-devel
#BuildRequires:  desktop-file-utils
Requires: qt4 libalsa libjack libphonon

%description
VMPK is a MIDI event generator/receiver. It doesn't produce any sound by itself, 
but can be used to drive a MIDI synthesizer (either hardware or software, 
internal or external). You can use the computer's keyboard to play MIDI notes, 
and also the mouse. You can use the Virtual MIDI Piano Keyboard to display the 
played MIDI notes from another instrument or MIDI file player.

Authors:
--------
    Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>

#%debug_package
%prep
%setup -q

%build
CXXFLAGS="$RPM_OPT_FLAGS -g -fexceptions" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j %jobs} VERBOSE=1

%install
make install DESTDIR=$RPM_BUILD_ROOT
%suse_update_desktop_file -G "Virtual MIDI Piano Keyboard" %name AudioVideo Midi

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc NEWS README ChangeLog AUTHORS TODO COPYING
%doc %{_mandir}/man1/*
%dir %{_datadir}/%name
%dir %{_datadir}/%name/locale
%{_bindir}/%name
%{_datadir}/%name/*
%{_datadir}/%name/locale/*
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/applications/%name.desktop

%changelog
* Mon Nov 18 2013 Ivan Karpukhin <karpuhini@yandex.ru> 0.5.1-alt1
- New release
