File jcache.spec of Package jcache.28016

# spec file for package jcache
# 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

Name:           jcache
Version:        1.1.0
Release:        0
Summary:        JSR107 Cache Specification
License:        Apache-2.0
Group:          Development/Libraries/Java
Source0:        %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  maven-local
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch:      noarch

JCache is the Java caching API. It was defined by JSR107. It defines a standard
Java Caching API for use by developers and a standard SPI (“Service Provider
Interface”) for use by implementers.

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

%description javadoc
API documentation for %{name}.

%setup -q -n jsr107spec-%{version}
%pom_xpath_remove pom:packaging
%pom_xpath_remove 'pom:plugin[pom:artifactId/text()="maven-compiler-plugin"]/pom:configuration'
%pom_remove_plugin org.apache.felix:maven-bundle-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-jar-plugin
%{mvn_file} : %{name}

%{mvn_build} -f -- -Dsource=8

%fdupes %{buildroot}%{_javadocdir}/%{name}

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt

openSUSE Build Service is sponsored by