2 Commits

3 changed files with 24 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
--- jcuber-4.4.1/build-frontend/Makefile.in 2024-09-23 15:57:54.537303310 +0200
+++ jcuber-4.4.1/build-frontend/Makefile.in 2024-09-23 16:13:22.450597929 +0200
@@ -1268,7 +1268,7 @@
list1=`find scalasca | grep '.class'`;\
list2=`find org | grep '.class'`;\
list="$$list1 $$list2";\
- $(JAR) cf $@ $$list
+ $(JAR) --date="$$(date -u -d @$${SOURCE_DATE_EPOCH:-$$(date +%s)} +%Y-%m-%dT%H:%M:%SZ)" --create --file=$@ $$list
classes_dir_struct:
@echo "Create classes directories"; \

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Sep 23 14:17:51 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* jcuber-reproducible-jar.patch
+ Use SOURCE_DATE_EPOCH for reproducible builds
-------------------------------------------------------------------
Mon Jul 15 09:29:59 UTC 2019 - Ana Guerrero Lopez <aguerrero@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package jcuber
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -20,10 +20,11 @@ Name: jcuber
Version: 4.4.1
Release: 0
Summary: Java Cube Reader Library
License: BSD-3-Clause AND Apache-2.0
License: Apache-2.0 AND BSD-3-Clause
Group: Development/Libraries/Java
URL: http://www.scalasca.org/software/cube-4.x/download.html
Source0: http://apps.fz-juelich.de/scalasca/releases/cube/4.4/dist/%{name}-%{version}.tar.gz
Patch0: jcuber-reproducible-jar.patch
BuildRequires: java-devel
BuildRequires: xerces-j2
BuildArch: noarch
@@ -51,6 +52,9 @@ This package contains the documentation and examples for %{name}.
%prep
%setup -q
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
%patch -P 0 -p1
%endif
%build
%configure