File lightcouch.spec of Package lightcouch
#
# spec file for package lightcouch
#
# 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/
#
Name: lightcouch
Version: 0.2.0
Release: 0
Summary: CouchDB Java API
License: Apache-2.0
URL: http://www.lightcouch.org/
Source0: https://github.com/lightcouch/LightCouch/archive/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(com.google.code.gson:gson)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch: noarch
%description
LightCouch is a Java API for communicating with CouchDB database.
It aims at providing a flexible and easy-to-use APIs with minimal
code-base and dependency.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n LightCouch-%{name}-%{version}
%{mvn_file} : %{name}
%build
%{mvn_build} -f -- -Dmaven.compiler.release=8
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%doc README.md
%license LICENSE
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog