6
0
forked from pool/jnr-posix

Compare commits

...

10 Commits

Author SHA256 Message Date
c8895f1f18 Accepting request 1290553 from Java:packages
OBS-URL: https://build.opensuse.org/request/show/1290553
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jnr-posix?expand=0&rev=6
2025-07-06 15:13:48 +00:00
0e19789e00 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jnr-posix?expand=0&rev=13 2025-07-03 23:28:16 +00:00
a130adde85 Accepting request 1109979 from Java:packages
Reproducible builds improvement

OBS-URL: https://build.opensuse.org/request/show/1109979
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jnr-posix?expand=0&rev=5
2023-09-10 11:10:49 +00:00
9d9eb309c9 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jnr-posix?expand=0&rev=11 2023-09-09 14:31:08 +00:00
5fc67aea7f Accepting request 1089738 from Java:packages
Don't require sun.nio.misc package

OBS-URL: https://build.opensuse.org/request/show/1089738
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jnr-posix?expand=0&rev=4
2023-05-30 20:02:42 +00:00
5ab51e3ff1 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jnr-posix?expand=0&rev=9 2023-05-23 21:37:06 +00:00
4038dbf70b Accepting request 1083178 from Java:packages
3.1.16

OBS-URL: https://build.opensuse.org/request/show/1083178
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jnr-posix?expand=0&rev=3
2023-04-27 18:01:19 +00:00
101937fee9 Accepting request 1080443 from home:urbic:branches:Java:packages
- Update to v3.1.16
  * No changelog provided by upstream
- Update with v3.1.7
  * No changelog provided by upstream
- Wipe obsolete stuff out from the spec
- Install artifact into %{_javadir}/jnr
- Initial packaging of jnr-posix 3.0.47

OBS-URL: https://build.opensuse.org/request/show/1080443
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jnr-posix?expand=0&rev=7
2023-04-25 11:23:20 +00:00
1c5c5c5e78 Accepting request 905169 from Java:packages
3.1.7

OBS-URL: https://build.opensuse.org/request/show/905169
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jnr-posix?expand=0&rev=2
2021-07-09 22:00:17 +00:00
ec7f50b72e OBS-URL: https://build.opensuse.org/package/show/Java:packages/jnr-posix?expand=0&rev=6 2021-07-09 05:21:29 +00:00
5 changed files with 63 additions and 7 deletions

3
jnr-posix-3.1.16.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:236cb57173d46af3c67982891cccbd354d26a4a18da09591b498a69999974b83
size 120553

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:98713cd336ab9440996a01c3dc793305b4b876ade3360aecaac28fb1bd0c7d96
size 119208

View File

@@ -1,10 +1,34 @@
-------------------------------------------------------------------
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>
- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp
-------------------------------------------------------------------
Tue May 23 21:36:17 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Do not require sun.nio.ch package that we access by reflection
-------------------------------------------------------------------
Sun Dec 18 06:36:29 UTC 2022 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to v3.1.16
* No changelog provided by upstream
-------------------------------------------------------------------
Thu Jul 8 14:43:57 UTC 2021 - Anton Shvetz <shvetz.anton@gmail.com>
- Update with v3.1.7
* No changelog provided by upstream
- Wipe obsolete stuff out from the spec
- Install artifact into %{_javadir}/jnr
- Add the _service file
-------------------------------------------------------------------
Fri Jul 24 11:40:24 UTC 2020 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package jnr-posix
#
# Copyright (c) 2021 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
@@ -18,13 +18,14 @@
%global cluster jnr
Name: %{cluster}-posix
Version: 3.1.7
Version: 3.1.16
Release: 0
Summary: Java Posix layer
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.
@@ -55,8 +57,10 @@ Javadoc for %{name}.
# Unnecessary for RPM builds
%pom_remove_plugin ":maven-javadoc-plugin"
%pom_xpath_set pom:configuration/pom:instructions/pom:Import-Package "!sun.misc,!sun.nio.ch,*"
%build
%{mvn_build} -f
%{mvn_build} -f -- -Dsource=8
%install
%mvn_install

28
sun-misc.patch Normal file
View 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>