File mapdb-elsa.spec of Package mapdb-elsa

#
# spec file for package mapdb-elsa
#
# Copyright (c) 2022 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/
#


%global short_name elsa
%global ver 3.0.0
%global ver_tag M7
Name:           mapdb-%{short_name}
Version:        %{ver}~%{ver_tag}
Release:        0
Summary:        Java serialization, faster and space efficient version of ObjectOutputStream
License:        Apache-2.0
Group:          Development/Libraries/Java
URL:            https://github.com/jankotek/%{short_name}
Source:         %{url}/archive/refs/tags/%{short_name}-%{ver}-%{ver_tag}.tar.gz
BuildRequires:  fdupes
BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch:      noarch

%description
Elsa is object graph serialization framework for Java. It has good
compatibility with Java Serialization, but is faster and more space efficient.
Elsa is great for storing objects on disk, network transfer, deep cloning etc..

Elsa handles cyclic references and Java Serialization features such as
Externalizable or writeReplace().

Elsa was originally part of MapDB database engine, but was moved into separate
library.

%package javadoc
Summary:        API documentation for %{name}
Group:          Documentation/HTML

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{short_name}-%{short_name}-%{ver}-%{ver_tag}

%pom_remove_plugin org.jetbrains.kotlin:kotlin-maven-plugin
%pom_remove_plugin :maven-source-plugin

%{mvn_file} : mapdb/%{short_name}

%build
%{mvn_build} -f -- -Dmaven.compiler.release=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
openSUSE Build Service is sponsored by