6
0

Compare commits

...

8 Commits

Author SHA256 Message Date
5746b79011 Accepting request 1204555 from Java:packages
Fix build after removal of the default %%{java_home} define

OBS-URL: https://build.opensuse.org/request/show/1204555
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/test-interface?expand=0&rev=4
2024-09-30 13:39:48 +00:00
1f30caf6c4 OBS-URL: https://build.opensuse.org/package/show/Java:packages/test-interface?expand=0&rev=10 2024-09-29 19:40:20 +00:00
a240485e62 OBS-URL: https://build.opensuse.org/package/show/Java:packages/test-interface?expand=0&rev=9 2024-09-29 19:39:13 +00:00
f481942afa OBS-URL: https://build.opensuse.org/package/show/Java:packages/test-interface?expand=0&rev=8 2024-09-28 22:16:47 +00:00
87f0da8ea2 Accepting request 1202926 from Java:packages
Use SOURCE_DATE_EPOCH for reproducible jar mtime

OBS-URL: https://build.opensuse.org/request/show/1202926
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/test-interface?expand=0&rev=3
2024-09-24 15:34:54 +00:00
cdfe5b2525 OBS-URL: https://build.opensuse.org/package/show/Java:packages/test-interface?expand=0&rev=6 2024-09-24 11:26:23 +00:00
80f5ccaaa2 OBS-URL: https://build.opensuse.org/package/show/Java:packages/test-interface?expand=0&rev=5 2024-09-24 11:24:12 +00:00
8ab08e91eb Accepting request 964358 from Java:packages
Build with source and target levels 8

OBS-URL: https://build.opensuse.org/request/show/964358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/test-interface?expand=0&rev=2
2022-03-24 21:57:21 +00:00
2 changed files with 21 additions and 6 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sun Sep 29 19:40:10 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Fix build after removal of the default %%{java_home} define
-------------------------------------------------------------------
Tue Sep 24 11:23:50 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Use SOURCE_DATE_EPOCH for reproducible jar mtime
-------------------------------------------------------------------
Wed Mar 23 18:57:10 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package test-interface
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -28,7 +28,7 @@ Source0: https://github.com/sbt/test-interface/archive/v%{test_interface_
Source1: https://repo1.maven.org/maven2/org/scala-sbt/%{name}/%{version}/%{name}-%{version}.pom
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local
BuildRequires: javapackages-local >= 6
BuildArch: noarch
%description
@@ -49,7 +49,7 @@ Javadoc for %{name}.
%build
mkdir -p classes target/api
%javac -source 8 -target 8 -d classes $(find src/main/java -name "*.java")
javac -source 8 -target 8 -d classes $(find src/main/java -name "*.java")
(
cd classes
@@ -64,10 +64,15 @@ Specification-Vendor: org.scala-sbt
Specification-Title: %{name}
Specification-Version: %{version}
EOF
%jar -cMf ../target/%{name}.jar *
jar \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
--date="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \
%endif
--create --no-manifest --file=../target/%{name}.jar *
)
%{javadoc} -source 8 -d target/api -classpath $PWD/target/%{name}.jar $(find src/main/java -name "*.java")
javadoc -notimestamp -source 8 -d target/api \
-classpath $PWD/target/%{name}.jar $(find src/main/java -name "*.java")
%install
# jar
@@ -76,7 +81,7 @@ install -pm 0644 target/%{name}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
# pom
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
install -pm 0644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
%{mvn_install_pom} %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar
# javadoc