Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package opennlp-tokenize-models for 
openSUSE:Factory checked in at 2024-09-25 21:53:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/opennlp-tokenize-models (Old)
 and      /work/SRC/openSUSE:Factory/.opennlp-tokenize-models.new.29891 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "opennlp-tokenize-models"

Wed Sep 25 21:53:14 2024 rev:2 rq:1203012 version:1.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/opennlp-tokenize-models/opennlp-tokenize-models.changes
  2020-03-05 23:19:32.157219826 +0100
+++ 
/work/SRC/openSUSE:Factory/.opennlp-tokenize-models.new.29891/opennlp-tokenize-models.changes
       2024-09-25 21:53:26.948675777 +0200
@@ -1,0 +2,5 @@
+Tue Sep 24 14:07:03 UTC 2024 - Fridrich Strba <fst...@suse.com>
+
+- Use SOURCE_DATE_EPOCH for reproducible jar mtime
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ opennlp-tokenize-models.spec ++++++
--- /var/tmp/diff_new_pack.Wsftht/_old  2024-09-25 21:53:27.416695244 +0200
+++ /var/tmp/diff_new_pack.Wsftht/_new  2024-09-25 21:53:27.420695410 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package opennlp-tokenize-models
 #
-# Copyright (c) 2020 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
@@ -24,8 +24,8 @@
 URL:            https://opennlp.sourceforge.net
 Source0:        
https://repo1.maven.org/maven2/edu/washington/cs/knowitall/%{name}/%{version}/%{name}-%{version}-sources.jar
 Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
-BuildRequires:  java-devel
-BuildRequires:  javapackages-local
+BuildRequires:  java-devel >= 1.8
+BuildRequires:  javapackages-local >= 6
 BuildRequires:  unzip
 BuildArch:      noarch
 
@@ -38,7 +38,11 @@
 %pom_remove_parent
 
 %build
-jar -cf %{name}-%{version}.jar *.bin
+jar --create --verbose \
+%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
+    --file=%{name}-%{version}.jar *.bin
 
 %install
 # jar
@@ -46,7 +50,7 @@
 install -pm 0644 %{name}-%{version}.jar 
%{buildroot}%{_javadir}/%{name}/%{name}.jar
 # pom
 install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
-install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
+%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
 %add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar
 
 %files -f .mfiles

Reply via email to