update to 235.1 [release 235.1-1mamba;Sat Jul 17 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 05:26:27 +01:00
parent 8c1e88fcf4
commit d5e806606b

View File

@ -1,21 +1,20 @@
Name: libportmidi Name: libportmidi
Version: 217 Version: 235.1
Release: 2mamba Release: 1mamba
Summary: A library supporting real-time input and output of MIDI data using a system-independent interface Summary: A library supporting real-time input and output of MIDI data using a system-independent interface
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://portmedia.sourceforge.net/portmidi/ URL: https://github.com/mixxxdj/portmidi
Source: http://downloads.sourceforge.net/project/portmedia/portmidi/%{version}/portmidi-src-%{version}.zip 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 License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libalsa-devel BuildRequires: libalsa-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: java-gcj-compat #Provides: libporttime.so
Provides: libporttime.so
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %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). 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 %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). 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. This package contains static libraries and header files needed for development.
%debug_package
%prep %prep
%setup -q -n portmidi %setup -q -n portmidi-%{version}
sed -i "s|/usr/local|/usr|" \ #sed -i "s|/usr/local|/usr|" \
pm_common/CMakeLists.txt \ # pm_common/CMakeLists.txt \
pm_dylib/CMakeLists.txt \ # pm_dylib/CMakeLists.txt \
pm_java/CMakeLists.txt # pm_java/CMakeLists.txt
sed -i "s|lib/cmake/PortMidi|%{_lib}/cmake/PortMidi|" CMakeLists.txt
%build %build
%cmake \ %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
#-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 %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall LIBRARY_DESTINATION=%{_libdir} %makeinstall -C build
#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
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -68,19 +65,26 @@ ln -s libportmidi.so %{buildroot}%{_libdir}/libporttime.so
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/pmdefaults #%{_bindir}/pmdefaults
%{_libdir}/libpmjni.so #%{_libdir}/libpmjni.so
%{_libdir}/libportmidi.so %{_libdir}/libportmidi.so
%{_libdir}/libporttime.so %{_libdir}/libporttime.so
%{_datadir}/java/pmdefaults.jar #%{_datadir}/java/pmdefaults.jar
%doc README.txt #%doc license.txt
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/pmutil.h
%{_includedir}/portmidi.h %{_includedir}/portmidi.h
%{_includedir}/porttime.h %{_includedir}/porttime.h
%{_libdir}/pkgconfig/portmidi.pc
%dir %{_libdir}/cmake/PortMidi
%{_libdir}/cmake/PortMidi/PortMidi*.cmake
%changelog %changelog
* Sat Jul 17 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 235.1-1mamba
- update to 235.1
* Tue Apr 09 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 217-2mamba * Tue Apr 09 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 217-2mamba
- added libporttime as a symlink to libportmidi, required by denemo - added libporttime as a symlink to libportmidi, required by denemo