forked from pool/maven-bundle-plugin
Compare commits
7 Commits
Author | SHA256 | Date | |
---|---|---|---|
f24258d405 | |||
5ccd0f6338 | |||
c7e45ca822 | |||
970c683603 | |||
e6d2aa42be | |||
ab79af4b47 | |||
8ee5b73ca0 |
@@ -1,10 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Mon Jul 21 14:19:23 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
|
||||||
|
|
||||||
- Removed patch:
|
|
||||||
* reproducible-from-environment.patch
|
|
||||||
+ patched in a more central place in maven-archiver
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 3 10:26:07 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
Thu Oct 3 10:26:07 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package maven-bundle-plugin
|
# spec file for package maven-bundle-plugin
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -25,6 +25,7 @@ Group: Development/Libraries/Java
|
|||||||
URL: https://felix.apache.org
|
URL: https://felix.apache.org
|
||||||
Source0: https://repo1.maven.org/maven2/org/apache/felix/%{name}/%{version}/%{name}-%{version}-source-release.tar.gz
|
Source0: https://repo1.maven.org/maven2/org/apache/felix/%{name}/%{version}/%{name}-%{version}-source-release.tar.gz
|
||||||
Patch0: new-reporting-api.patch
|
Patch0: new-reporting-api.patch
|
||||||
|
Patch1: reproducible-from-environment.patch
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: maven-local
|
BuildRequires: maven-local
|
||||||
BuildRequires: mvn(biz.aQute.bnd:biz.aQute.bndlib)
|
BuildRequires: mvn(biz.aQute.bnd:biz.aQute.bndlib)
|
||||||
@@ -69,6 +70,7 @@ API documentation for %{name}.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch -P 0 -p1
|
%patch -P 0 -p1
|
||||||
|
%patch -P 1 -p1
|
||||||
|
|
||||||
find -name '*.jar' -delete
|
find -name '*.jar' -delete
|
||||||
|
|
||||||
@@ -76,13 +78,12 @@ find -name '*.jar' -delete
|
|||||||
|
|
||||||
%pom_remove_plugin :maven-invoker-plugin
|
%pom_remove_plugin :maven-invoker-plugin
|
||||||
|
|
||||||
%pom_xpath_remove pom:project/pom:parent/pom:relativePath
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{mvn_build} -f -- \
|
%{mvn_build} -f -- \
|
||||||
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
||||||
-Dmaven.compiler.release=8 \
|
-Dmaven.compiler.release=8 \
|
||||||
%endif
|
%endif
|
||||||
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
|
||||||
-Dsource=8
|
-Dsource=8
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
11
reproducible-from-environment.patch
Normal file
11
reproducible-from-environment.patch
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
--- maven-bundle-plugin-5.1.9/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java 2024-09-23 11:31:10.426888887 +0200
|
||||||
|
+++ maven-bundle-plugin-5.1.9/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java 2024-09-23 11:35:04.561855048 +0200
|
||||||
|
@@ -551,7 +551,7 @@
|
||||||
|
properties.putAll( getDefaultProperties( currentProject ) );
|
||||||
|
properties.putAll( transformDirectives( originalInstructions ) );
|
||||||
|
|
||||||
|
- if ( new MavenArchiver().parseOutputTimestamp( outputTimestamp ) != null )
|
||||||
|
+ if ( new MavenArchiver().parseOutputTimestamp( outputTimestamp ) != null || System.getenv( "SOURCE_DATE_EPOCH" ) != null )
|
||||||
|
{
|
||||||
|
properties.put( Constants.REPRODUCIBLE, "true" );
|
||||||
|
}
|
Reference in New Issue
Block a user