Compare commits
2 Commits
factory
...
8b9f97f6e7
Author | SHA256 | Date | |
---|---|---|---|
8b9f97f6e7 | |||
a5a89a5e08 |
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 3 23:25:08 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Added patch:
|
||||
* sun-misc.patch
|
||||
+ build with source/target 8 instead of release 8 to be able
|
||||
to use the sun.misc package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 9 14:30:59 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
# spec file for package jnr-posix
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -25,6 +25,7 @@ License: CPL-1.0 OR GPL-2.0-or-later OR LGPL-2.1-or-later
|
||||
Group: Development/Libraries/Java
|
||||
URL: https://github.com/%{cluster}/%{name}
|
||||
Source0: %{url}/archive/%{name}-%{version}.tar.gz
|
||||
Patch0: sun-misc.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(com.github.jnr:jnr-constants)
|
||||
@@ -47,6 +48,7 @@ Javadoc for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{name}-%{version}
|
||||
%patch -P 0 -p1
|
||||
%{mvn_file} : %{cluster}/%{name}
|
||||
|
||||
# Remove useless wagon extension.
|
||||
@@ -58,9 +60,7 @@ Javadoc for %{name}.
|
||||
%pom_xpath_set pom:configuration/pom:instructions/pom:Import-Package "!sun.misc,!sun.nio.ch,*"
|
||||
|
||||
%build
|
||||
%{mvn_build} -f -- \
|
||||
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
|
||||
-Dsource=8
|
||||
%{mvn_build} -f -- -Dsource=8
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
28
sun-misc.patch
Normal file
28
sun-misc.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
diff -urEbwB jnr-posix-jnr-posix-3.1.16.orig/pom.xml jnr-posix-jnr-posix-3.1.16/pom.xml
|
||||
--- jnr-posix-jnr-posix-3.1.16.orig/pom.xml 2025-07-04 01:14:29.228326748 +0200
|
||||
+++ jnr-posix-jnr-posix-3.1.16/pom.xml 2025-07-04 01:23:14.708406346 +0200
|
||||
@@ -219,21 +219,9 @@
|
||||
<phase>compile</phase>
|
||||
<goals><goal>compile</goal></goals>
|
||||
<configuration>
|
||||
- <includes>
|
||||
- <include>jnr/posix/util/SunMiscSignal.java</include>
|
||||
- </includes>
|
||||
- </configuration>
|
||||
- </execution>
|
||||
- <execution>
|
||||
- <id>java9-compile</id>
|
||||
- <phase>compile</phase>
|
||||
- <goals><goal>compile</goal></goals>
|
||||
- <configuration>
|
||||
- <!-- Use -release compiler option rather than source/target if 9+ -->
|
||||
- <release>${maven.compiler.target}</release>
|
||||
- <excludes>
|
||||
- <exclude>jnr/posix/util/SunMiscSignal.java</exclude>
|
||||
- </excludes>
|
||||
+ <source>${maven.compiler.source}</source>
|
||||
+ <target>${maven.compiler.target}</target>
|
||||
+ <release combine.self="override"/>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
Reference in New Issue
Block a user