diff --git a/libportmidi.spec b/libportmidi.spec index 527eba5..c703a30 100644 --- a/libportmidi.spec +++ b/libportmidi.spec @@ -1,21 +1,20 @@ Name: libportmidi -Version: 217 -Release: 2mamba +Version: 235.1 +Release: 1mamba Summary: A library supporting real-time input and output of MIDI data using a system-independent interface Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://portmedia.sourceforge.net/portmidi/ -Source: http://downloads.sourceforge.net/project/portmedia/portmidi/%{version}/portmidi-src-%{version}.zip +URL: https://github.com/mixxxdj/portmidi +Source: https://github.com/mixxxdj/portmidi.git/%{version}/portmidi-%{version}.tar.bz2 +#Source: http://downloads.sourceforge.net/project/portmedia/portmidi/%{version}/portmidi-src-%{version}.zip License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libalsa-devel ## AUTOBUILDREQ-END -BuildRequires: java-gcj-compat -Provides: libporttime.so -BuildRoot: %{_tmppath}/%{name}-%{version}-root +#Provides: libporttime.so %description PortMidi is a library for software developers. It supports real-time input and output of MIDI data using a system-independent interface. PortMidi runs on Windows (using MME), Macintosh (using CoreMIDI), and Linux (using ALSA). @@ -27,37 +26,35 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel PortMidi is a library for software developers. It supports real-time input and output of MIDI data using a system-independent interface. PortMidi runs on Windows (using MME), Macintosh (using CoreMIDI), and Linux (using ALSA). - This package contains static libraries and header files needed for development. +%debug_package + %prep -%setup -q -n portmidi -sed -i "s|/usr/local|/usr|" \ - pm_common/CMakeLists.txt \ - pm_dylib/CMakeLists.txt \ - pm_java/CMakeLists.txt +%setup -q -n portmidi-%{version} +#sed -i "s|/usr/local|/usr|" \ +# pm_common/CMakeLists.txt \ +# pm_dylib/CMakeLists.txt \ +# pm_java/CMakeLists.txt + +sed -i "s|lib/cmake/PortMidi|%{_lib}/cmake/PortMidi|" CMakeLists.txt %build -%cmake \ - -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY:STRING=%{_builddir}/portmidi/Release \ - -DCMAKE_LIBRARY_OUTPUT_DIRECTORY:STRING=%{_builddir}/portmidi/Release \ - -DCMAKE_RUNTIME_OUTPUT_DIRECTORY:STRING=%{_builddir}/portmidi/Release +%cmake -d build -#-d build \ +# -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY:STRING=%{_builddir}/portmidi/Release \ +# -DCMAKE_LIBRARY_OUTPUT_DIRECTORY:STRING=%{_builddir}/portmidi/Release \ +# -DCMAKE_RUNTIME_OUTPUT_DIRECTORY:STRING=%{_builddir}/portmidi/Release -sed -i "s|pm_java/pm_java|pm_java|" pm_java/CMakeFiles/pmdefaults_target.dir/build.make +#sed -i "s|pm_java/pm_java|pm_java|" pm_java/CMakeFiles/pmdefaults_target.dir/build.make -%make -j1 +%make +#-j1 %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall LIBRARY_DESTINATION=%{_libdir} - -# remove duplicated library -rm -f %{buildroot}%{_libdir}/libportmidi_s.so - -# add libporttime as a link (required by denemo 1.0, see https://bugs.archlinux.org/task/21528) -ln -s libportmidi.so %{buildroot}%{_libdir}/libporttime.so +%makeinstall -C build +#LIBRARY_DESTINATION=%{_libdir} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -68,19 +65,26 @@ ln -s libportmidi.so %{buildroot}%{_libdir}/libporttime.so %files %defattr(-,root,root) -%{_bindir}/pmdefaults -%{_libdir}/libpmjni.so +#%{_bindir}/pmdefaults +#%{_libdir}/libpmjni.so %{_libdir}/libportmidi.so %{_libdir}/libporttime.so -%{_datadir}/java/pmdefaults.jar -%doc README.txt +#%{_datadir}/java/pmdefaults.jar +#%doc license.txt %files devel %defattr(-,root,root) +%{_includedir}/pmutil.h %{_includedir}/portmidi.h %{_includedir}/porttime.h +%{_libdir}/pkgconfig/portmidi.pc +%dir %{_libdir}/cmake/PortMidi +%{_libdir}/cmake/PortMidi/PortMidi*.cmake %changelog +* Sat Jul 17 2021 Silvan Calarco 235.1-1mamba +- update to 235.1 + * Tue Apr 09 2013 Silvan Calarco 217-2mamba - added libporttime as a symlink to libportmidi, required by denemo