Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package portmidi for openSUSE:Factory 
checked in at 2022-12-31 11:22:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/portmidi (Old)
 and      /work/SRC/openSUSE:Factory/.portmidi.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "portmidi"

Sat Dec 31 11:22:55 2022 rev:7 rq:1045826 version:2.0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/portmidi/portmidi.changes        2022-10-15 
16:40:43.710625053 +0200
+++ /work/SRC/openSUSE:Factory/.portmidi.new.1563/portmidi.changes      
2022-12-31 11:22:59.908484570 +0100
@@ -1,0 +2,6 @@
+Fri Dec 30 10:50:46 UTC 2022 - Hans-Peter Jansen <[email protected]>
+
+- If we don't build the java bindings, we can reduce the minimum 
+  cmake version to a level, that allows building for current Leaps
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ portmidi.spec ++++++
--- /var/tmp/diff_new_pack.BPdGKV/_old  2022-12-31 11:23:00.284486821 +0100
+++ /var/tmp/diff_new_pack.BPdGKV/_new  2022-12-31 11:23:00.288486845 +0100
@@ -32,11 +32,13 @@
 URL:            https://github.com/PortMidi/portmidi
 Source:         
https://github.com/PortMidi/portmidi/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildRequires:  alsa-devel >= 0.9
-BuildRequires:  cmake >= 3.21
 BuildRequires:  gcc-c++
+# we can reduce the minimum cmake version, if not building the java bindings
 %if %{with java}
+BuildRequires:  cmake >= 3.21
 BuildRequires:  java-devel >= 11
 %else
+BuildRequires:  cmake >= 3.20
 Obsoletes:      portmidi-java <= %{version}-%{release}
 %endif
 Requires:       libportmidi%{soname} = %{version}
@@ -81,6 +83,10 @@
 find -type f -iname \*.txt -print0 | xargs -r0 chmod a-x
 find -type f -iname \*.txt -print0 | xargs -r0 perl -p -i -e 's|\r\n|\n|g'
 
+%if ! %{with java}
+sed -i 's|cmake_minimum_required(VERSION 3.21)|cmake_minimum_required(VERSION 
3.20)|' CMakeLists.txt
+%endif
+
 %build
 %cmake \
   %if %{with java}
@@ -100,12 +106,14 @@
 done
 popd
 
+%if %{with java}
 install -D -m 0644 pm_java/pmdefaults/pmdefaults.jar 
%{buildroot}%{_javadir}/pmdefaults.jar
 cat > %{buildroot}%{_bindir}/pmdefaults <<EOF
 #!/bin/bash
 exec java -jar "@@JAVADIR@@/pmdefaults.jar" "$@" >/dev/null
 EOF
 chmod a+rx %{buildroot}%{_bindir}/pmdefaults
+%endif
 
 %post   -n libportmidi%{soname} -p /sbin/ldconfig
 %postun -n libportmidi%{soname} -p /sbin/ldconfig

Reply via email to