2024-01-06 05:26:27 +01:00
|
|
|
Name: libportmidi
|
2024-01-06 05:26:28 +01:00
|
|
|
Version: 236
|
|
|
|
Release: 2mamba
|
2024-01-06 05:26:27 +01:00
|
|
|
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 <silvan.calarco@mambasoft.it>
|
2024-01-06 05:26:27 +01:00
|
|
|
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
|
2024-01-06 05:26:27 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libalsa-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 05:26:28 +01:00
|
|
|
%ifarch %{ix86} arm
|
|
|
|
Provides: libporttime.so
|
|
|
|
Provides: libportmidi.so
|
|
|
|
%endif
|
|
|
|
%ifarch x86_64 aarch64
|
|
|
|
Provides: libporttime.so()(64bit)
|
|
|
|
Provides: libportmidi.so()(64bit)
|
|
|
|
%endif
|
2024-01-06 05:26:27 +01:00
|
|
|
|
|
|
|
%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).
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Devel package for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
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.
|
|
|
|
|
2024-01-06 05:26:27 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 05:26:27 +01:00
|
|
|
%prep
|
2024-01-06 05:26:27 +01:00
|
|
|
%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
|
2024-01-06 05:26:27 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 05:26:27 +01:00
|
|
|
%cmake -d build
|
2024-01-06 05:26:27 +01:00
|
|
|
|
2024-01-06 05:26:27 +01:00
|
|
|
# -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY:STRING=%{_builddir}/portmidi/Release \
|
|
|
|
# -DCMAKE_LIBRARY_OUTPUT_DIRECTORY:STRING=%{_builddir}/portmidi/Release \
|
|
|
|
# -DCMAKE_RUNTIME_OUTPUT_DIRECTORY:STRING=%{_builddir}/portmidi/Release
|
2024-01-06 05:26:27 +01:00
|
|
|
|
2024-01-06 05:26:27 +01:00
|
|
|
#sed -i "s|pm_java/pm_java|pm_java|" pm_java/CMakeFiles/pmdefaults_target.dir/build.make
|
2024-01-06 05:26:27 +01:00
|
|
|
|
2024-01-06 05:26:27 +01:00
|
|
|
%make
|
|
|
|
#-j1
|
2024-01-06 05:26:27 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 05:26:27 +01:00
|
|
|
%makeinstall -C build
|
|
|
|
#LIBRARY_DESTINATION=%{_libdir}
|
2024-01-06 05:26:27 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 05:26:28 +01:00
|
|
|
%{_libdir}/libportmidi.so.*
|
|
|
|
%{_libdir}/libporttime.so.*
|
2024-01-06 05:26:27 +01:00
|
|
|
%{_libdir}/libportmidi.so
|
|
|
|
%{_libdir}/libporttime.so
|
2024-01-06 05:26:28 +01:00
|
|
|
%doc license.txt
|
2024-01-06 05:26:27 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 05:26:27 +01:00
|
|
|
%{_includedir}/pmutil.h
|
2024-01-06 05:26:27 +01:00
|
|
|
%{_includedir}/portmidi.h
|
|
|
|
%{_includedir}/porttime.h
|
2024-01-06 05:26:27 +01:00
|
|
|
%{_libdir}/pkgconfig/portmidi.pc
|
|
|
|
%dir %{_libdir}/cmake/PortMidi
|
|
|
|
%{_libdir}/cmake/PortMidi/PortMidi*.cmake
|
2024-01-06 05:26:27 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 05:26:28 +01:00
|
|
|
* Sun Oct 17 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 236-2mamba
|
|
|
|
- provide legacy libportmidi.so and libporttime.so
|
|
|
|
|
|
|
|
* Sun Aug 15 2021 Automatic Build System <autodist@mambasoft.it> 236-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:26:27 +01:00
|
|
|
* Sat Jul 17 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 235.1-1mamba
|
|
|
|
- update to 235.1
|
|
|
|
|
2024-01-06 05:26:27 +01:00
|
|
|
* Tue Apr 09 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 217-2mamba
|
|
|
|
- added libporttime as a symlink to libportmidi, required by denemo
|
|
|
|
|
|
|
|
* Sat Mar 26 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 217-1mamba
|
|
|
|
- package created by autospec
|