Compare commits
No commits in common. "factory" and "factory" have entirely different histories.
@ -1,8 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 24 05:22:54 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Use SOURCE_DATE_EPOCH for reproducible builds
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 21 12:18:00 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package juniversalchardet
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -30,7 +30,7 @@ Source3: README.txt
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: java-javadoc >= 1.8
|
||||
BuildRequires: javapackages-local >= 6
|
||||
BuildRequires: javapackages-local
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@ -54,22 +54,9 @@ cp %{SOURCE3} .
|
||||
|
||||
%build
|
||||
mkdir -p target/classes
|
||||
javac \
|
||||
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
||||
--release 8 \
|
||||
%else
|
||||
-source 8 -target 8 \
|
||||
%endif
|
||||
-encoding UTF-8 -sourcepath src/main/java -d target/classes $(find src/main/java -name \*.java)
|
||||
|
||||
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 -C target/classes .
|
||||
|
||||
javac -source 8 -target 8 -encoding UTF-8 -sourcepath src/main/java -d target/classes $(find src/main/java -name \*.java)
|
||||
jar -cvf %{name}-%{version}.jar -C target/classes .
|
||||
javadoc -source 8 -encoding UTF-8 \
|
||||
-notimestamp \
|
||||
-d target/apidocs \
|
||||
-sourcepath src/main/java \
|
||||
-link file://%{_javadocdir}/java \
|
||||
@ -81,7 +68,7 @@ install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
||||
install -pm 0644 %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
|
||||
# pom
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||
%{mvn_install_pom} %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
|
||||
install -pm 0644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
|
||||
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar
|
||||
# javadoc
|
||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
|
Loading…
Reference in New Issue
Block a user