[vmpk] initial import
cheeselee
cheeselee at fedoraproject.org
Mon Dec 19 14:02:15 UTC 2011
commit f4e3376d126ad00cb3bcbcc6dcc30143c491f150
Author: Robin Lee <cheeselee at fedoraproject.org>
Date: Mon Dec 19 22:02:13 2011 +0800
initial import
.gitignore | 1 +
sources | 1 +
vmpk-0.4.0-shared-rtmidi.patch | 73 ++++++++++++++++++++++++++++++++++++++
vmpk.spec | 76 ++++++++++++++++++++++++++++++++++++++++
4 files changed, 151 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ff6451d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/vmpk-0.4.0.tar.bz2
diff --git a/sources b/sources
index e69de29..d5ebf40 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bc54ac39fe02ce3cbed4b2b7f82cd70f vmpk-0.4.0.tar.bz2
diff --git a/vmpk-0.4.0-shared-rtmidi.patch b/vmpk-0.4.0-shared-rtmidi.patch
new file mode 100644
index 0000000..38efc15
--- /dev/null
+++ b/vmpk-0.4.0-shared-rtmidi.patch
@@ -0,0 +1,73 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4b6a022..69a9a00 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -111,19 +111,16 @@ endif ()
+ if (RTMIDI_DRIVER STREQUAL "JACK")
+ # Check Jack
+ set (HAVE_JACK FALSE)
+- PKG_CHECK_MODULES (JACK REQUIRED jack)
+- if (JACK_FOUND)
++ PKG_CHECK_MODULES (RTMIDI REQUIRED rtmidi-jack)
++ if (RTMIDI_FOUND)
+ set (HAVE_JACK TRUE)
+ add_definitions (-DHAVE_JACK)
+- set (JACK_LIBS ${JACK_LIBRARIES})
+- list (APPEND JACK_LIB_DIR ${JACK_LIBRARY_DIRS} ${JACK_LIBDIR})
+- list (APPEND JACK_INC_DIR ${JACK_INCLUDE_DIRS} ${JACK_INCLUDEDIR})
+- link_directories (${JACK_LIB_DIR})
+- include_directories (${JACK_INC_DIR})
+- add_definitions (-D__LINUX_JACK__)
+- link_libraries (${JACK_LIBS})
++ link_directories (${RTMIDI_LIBRARY_DIRS})
++ include_directories (${RTMIDI_INCLUDE_DIRS})
++ add_definitions (${RTMIDI_CFLAGS})
++ link_libraries (${RTMIDI_LIBRARIES})
+ else ()
+- message (FATAL_ERROR "Please install Jack development libs and headers.")
++ message (FATAL_ERROR "Please install JACK-enabled RtMidi development libs and headers.")
+ endif ()
+ endif ()
+
+@@ -131,20 +128,17 @@ if (RTMIDI_DRIVER STREQUAL "ALSA")
+ find_package (Threads REQUIRED)
+ # Check ALSA 1.0
+ set (HAVE_ALSA FALSE)
+- PKG_CHECK_MODULES (ALSA REQUIRED alsa>=1.0)
+- if (ALSA_FOUND)
++ PKG_CHECK_MODULES (RTMIDI REQUIRED rtmidi)
++ if (RTMIDI_FOUND)
+ set (HAVE_ALSA TRUE)
+ add_definitions (-DHAVE_ALSA)
+- set (ALSA_LIBS ${ALSA_LIBRARIES})
+- list (APPEND ALSA_LIB_DIR ${ALSA_LIBRARY_DIRS} ${ALSA_LIBDIR})
+- list (APPEND ALSA_INC_DIR ${ALSA_INCLUDE_DIRS} ${ALSA_INCLUDEDIR})
+- link_directories (${ALSA_LIB_DIR})
+- include_directories (${ALSA_INC_DIR})
+- add_definitions (-D__LINUX_ALSASEQ__)
++ link_directories (${RTMIDI_LIBRARY_DIRS})
++ include_directories (${RTMIDI_INCLUDE_DIRS})
++ add_definitions (${RTMIDI_CFLAGS})
++ link_libraries (${RTMIDI_LIBRARIES})
+ add_definitions (-DAVOID_TIMESTAMPING)
+- link_libraries (${ALSA_LIBS} ${CMAKE_THREAD_LIBS_INIT})
+ else ()
+- message(FATAL_ERROR "Please install ALSA development libs and headers.")
++ message(FATAL_ERROR "Please install ALSA-enabled RtMidi development libs and headers.")
+ endif ()
+ endif ()
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index eeea50f..dc9db6a 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -73,9 +73,6 @@ set (vmpk_SRCS
+ riff.h
+ riffimportdlg.cpp
+ riffimportdlg.h
+- RtError.h
+- RtMidi.cpp
+- RtMidi.h
+ udpmidi.cpp
+ vpiano.cpp
+ vpiano.h
diff --git a/vmpk.spec b/vmpk.spec
new file mode 100644
index 0000000..3d53d3d
--- /dev/null
+++ b/vmpk.spec
@@ -0,0 +1,76 @@
+Name: vmpk
+Version: 0.4.0
+Release: 4%{?dist}
+Summary: Virtual MIDI Piano Keyboard
+Group: Applications/Multimedia
+# The entire source code is GPLv3+ except src/qticonloader.* which are (LGPLv2
+# with exceptions or GPLv3)
+License: GPLv3+ and (LGPLv2 with exceptions or GPLv3)
+URL: http://vmpk.sourceforge.net/
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
+# Configuration-only patch, to link with RtMidi shared object
+Patch0: vmpk-0.4.0-shared-rtmidi.patch
+
+BuildRequires: qt-devel
+BuildRequires: rtmidi-devel
+BuildRequires: cmake
+BuildRequires: desktop-file-utils
+
+%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.
+
+This package is compiled with JACK driver.
+
+%prep
+%setup -q
+%patch0 -p1
+rm -f src/Rt{Error,Midi}.*
+
+%build
+%cmake . -DRTMIDI_DRIVER=JACK
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%check
+desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+ touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files
+%doc NEWS README ChangeLog AUTHORS TODO COPYING
+%{_bindir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/%{name}/
+%{_datadir}/icons/hicolor/*/apps/*
+%{_mandir}/man1/%{name}.1.*
+
+
+%changelog
+* Sun Oct 9 2011 Robin Lee <cheeselee at fedoraproject.org> - 0.4.0-4
+- Use the RtMidi shared object
+- License revised to "GPLv3+ and (LGPLv2 with exceptions or GPLv3)"
+
+* Sat Jul 30 2011 Robin Lee <cheeselee at fedoraproject.org> - 0.4.0-3
+- License specified to "GPLv3+ and MIT and (LGPLv2 with exceptions or GPLv3)"
+
+* Wed Jun 22 2011 Robin Lee <cheeselee at fedoraproject.org> - 0.4.0-2
+- Use JACK driver instead of ALSA
+
+* Mon Jun 6 2011 Robin Lee <cheeselee at fedoraproject.org> - 0.4.0-1
+- Initial specfile
More information about the scm-commits
mailing list