6
0
forked from pool/powermock

Compare commits

4 Commits

2 changed files with 17 additions and 5 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Feb 21 10:53:31 UTC 2024 - Gus Kenion <gus.kenion@suse.com>
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Sat Sep 9 14:46:39 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 30 10:02:31 UTC 2022 - Fridrich Strba <fstrba@suse.com> Wed Mar 30 10:02:31 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package powermock # spec file for package powermock
# #
# Copyright (c) 2022 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
@@ -159,9 +159,9 @@ This package contains the API documentation for %{name}.
%prep %prep
%setup -q -n %{name}-%{name}-%{version} %setup -q -n %{name}-%{name}-%{version}
%patch0 -p1 %patch -P 0 -p1
%patch1 -p1 %patch -P 1 -p1
%patch2 -p1 %patch -P 2 -p1
# bundled sources of various libraries # bundled sources of various libraries
rm -r modules/module-impl/agent rm -r modules/module-impl/agent
@@ -216,7 +216,9 @@ rm modules/module-impl/junit4-common/src/test/java/org/powermock/modules/junit4/
%{mvn_package} ::pom: __noinstall %{mvn_package} ::pom: __noinstall
%build %build
%{mvn_build} -f -- -Dsource=8 %{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dsource=8
%install %install
%mvn_install %mvn_install