forked from pool/jnacl
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jnacl?expand=0&rev=11
71 lines
1.9 KiB
RPMSpec
71 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package jnacl
|
|
#
|
|
# Copyright (c) 2024 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: jnacl
|
|
Version: 1.0.0
|
|
Release: 0
|
|
Summary: eu.neilalexander:jnacl
|
|
License: BSD-2-Clause
|
|
Group: Development/Libraries/Java
|
|
URL: https://github.com/neilalexander/jnacl
|
|
Source0: %{name}-%{version}.tar.xz
|
|
Patch0: %{name}-bnd.patch
|
|
BuildRequires: fdupes
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(biz.aQute.bnd:bnd-maven-plugin)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Pure Java implementation of the NaCl: Networking and Cryptography library
|
|
Supports the following crypto primitives: curve25519xsalsa20poly1305
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
This package contains API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch -P 0 -p1
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
|
%pom_remove_plugin :maven-source-plugin
|
|
|
|
%build
|
|
%{mvn_build} -f -- \
|
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
|
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
|
-Dmaven.compiler.release=8 \
|
|
%endif
|
|
-Dsource=8
|
|
|
|
%install
|
|
%mvn_install
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE
|
|
%doc README.md
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE
|
|
|
|
%changelog
|