From 135bf41518e1781f2eb008e7f25a114bec87e40a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 18 Nov 2024 14:40:09 +0100 Subject: [PATCH] update to 2.0.4 update source, bump epoch, closes #1 [release 2.0.4-1mamba;Sat Nov 16 2024] --- libportmidi.spec | 43 ++++++++++--------------------------------- 1 file changed, 10 insertions(+), 33 deletions(-) diff --git a/libportmidi.spec b/libportmidi.spec index d2f3ccf..cd83360 100644 --- a/libportmidi.spec +++ b/libportmidi.spec @@ -1,27 +1,19 @@ Name: libportmidi -Version: 236 -Release: 2mamba +Epoch: 1 +Version: 2.0.4 +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: 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 +URL: https://github.com/PortMidi/portmidi +Source: https://github.com/PortMidi/portmidi.git/v%{version}/portmidi-%{version}.tar.bz2 License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libalsa-devel ## AUTOBUILDREQ-END -%ifarch %{ix86} arm -Provides: libporttime.so -Provides: libportmidi.so -%endif -%ifarch x86_64 aarch64 -Provides: libporttime.so()(64bit) -Provides: libportmidi.so()(64bit) -%endif %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). @@ -39,43 +31,23 @@ This package contains static libraries and header files needed for development. %prep %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 -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 - %make -#-j1 %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build -#LIBRARY_DESTINATION=%{_libdir} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig - %files %defattr(-,root,root) %{_libdir}/libportmidi.so.* -%{_libdir}/libporttime.so.* -%{_libdir}/libportmidi.so -%{_libdir}/libporttime.so %doc license.txt %files devel @@ -83,11 +55,16 @@ sed -i "s|lib/cmake/PortMidi|%{_lib}/cmake/PortMidi|" CMakeLists.txt %{_includedir}/pmutil.h %{_includedir}/portmidi.h %{_includedir}/porttime.h +%{_libdir}/libportmidi.so %{_libdir}/pkgconfig/portmidi.pc %dir %{_libdir}/cmake/PortMidi %{_libdir}/cmake/PortMidi/PortMidi*.cmake %changelog +* Sat Nov 16 2024 Silvan Calarco 2.0.4-1mamba +- update to 2.0.4 +- update source, bump epoch, closes #1 + * Sun Oct 17 2021 Silvan Calarco 236-2mamba - provide legacy libportmidi.so and libporttime.so