2023-10-26 04:38:23 +00:00
committed by Git OBS Bridge
parent 96d1af9726
commit db6cb58933
2 changed files with 11 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ License: MIT
URL: https://github.com/TooTallNate/Java-WebSocket
Source0: %{name}-%{version}.tar.xz
Source1: https://raw.githubusercontent.com/TooTallNate/Java-WebSocket/master/LICENSE
BuildRequires: fdupes
BuildRequires: fdupes java-devel >= 1.8
BuildRequires: maven-local
BuildRequires: mvn(biz.aQute.bnd:bnd-maven-plugin)
BuildArch: noarch
@@ -45,8 +45,12 @@ cp %{SOURCE1} .
%pom_remove_plugin :maven-checkstyle-plugin
%pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:source" "1.8"
%pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:target" "1.8"
%build
%{mvn_build} -f
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)
%install
%mvn_install