Fridrich Strba 2023-03-13 16:12:14 +00:00 committed by Git OBS Bridge
parent 0ff83034b3
commit 9c8e3282d8
2 changed files with 15 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# #
# spec file for package rxtx-java # spec file for package rxtx-java
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -38,6 +38,7 @@ Patch4: rxtx-java-sysio.patch
Patch5: rxtx-java-38400.patch Patch5: rxtx-java-38400.patch
Patch6: rxtx-java-version.patch Patch6: rxtx-java-version.patch
Patch7: rxtx-java-missing-javah.patch Patch7: rxtx-java-missing-javah.patch
Patch8: rxtx-yield.patch
BuildRequires: automake BuildRequires: automake
BuildRequires: java-devel >= 1.8 BuildRequires: java-devel >= 1.8
BuildRequires: libtool BuildRequires: libtool
@ -94,6 +95,7 @@ the specification for Sun's Java Communications API.
%patch5 -p1 %patch5 -p1
%patch6 -p1 %patch6 -p1
%patch7 -p1 %patch7 -p1
%patch8 -p1
%build %build
export THREADS_FLAG=native export THREADS_FLAG=native
@ -115,7 +117,7 @@ mv RXTXcomm-bnd.jar RXTXcomm.jar
# build javadoc # build javadoc
mkdir -p javadoc mkdir -p javadoc
javadoc -d javadoc -source 8 src/gnu/io/*.java javadoc -d javadoc src/gnu/io/*.java
%install %install
install -dm 0755 %{buildroot}%{_jnidir} %{buildroot}%{_libdir} install -dm 0755 %{buildroot}%{_jnidir} %{buildroot}%{_libdir}

11
rxtx-yield.patch Normal file
View File

@ -0,0 +1,11 @@
--- rxtx-2.2pre2/src/gnu/io/LPRPort.java 2023-03-13 17:04:38.449989594 +0100
+++ rxtx-2.2pre2/src/gnu/io/LPRPort.java 2023-03-13 17:07:16.118942900 +0100
@@ -370,7 +370,7 @@
public void run()
{
eventLoop();
- yield();
+ this.yield();
}
}
}