86 lines
2.6 KiB
RPMSpec
86 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package jwebassembly-api
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: jwebassembly-api
|
|
Version: 0.4
|
|
Release: 0
|
|
Summary: Java API for the JWebAssembly
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: https://github.com/i-net-software/JWebAssembly-API
|
|
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
|
|
BuildRequires: fdupes
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(com.google.code.findbugs:jsr305)
|
|
BuildRequires: mvn(org.openjfx:javafx.graphics)
|
|
BuildRequires: mvn(org.openjfx:javafx.web)
|
|
|
|
%description
|
|
This is a possible API of JWebAssembly for the browser.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
BuildArch: noarch
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n JWebAssembly-API-%{version}
|
|
mkdir -p src/main/java
|
|
mv src/de src/main/java
|
|
|
|
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin \
|
|
'<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Specification-Title>JWebAssembly-API</Specification-Title>
|
|
<Specification-Vendor>i-net software</Specification-Vendor>
|
|
<Specification-Version>%{version}</Specification-Version>
|
|
<Implementation-Title>JWebAssembly-API</Implementation-Title>
|
|
<Implementation-Vendor>i-net software</Implementation-Vendor>
|
|
<Implementation-Version>%{version}</Implementation-Version>
|
|
<Premain-Class>de.inetsoftware.jwebassembly.emulator.PremainEmulator</Premain-Class>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>'
|
|
|
|
%pom_add_dep org.openjfx:javafx.graphics
|
|
%pom_add_dep org.openjfx:javafx.web
|
|
|
|
%{mvn_file} : jwebassembly/%{name}
|
|
|
|
%build
|
|
%{mvn_build} -f -- \
|
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
|
|
-Dmaven.compiler.{source,target}=8
|
|
|
|
%install
|
|
%mvn_install
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE.txt
|
|
%doc README.md
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE.txt
|
|
|
|
%changelog
|