Files
perfmark-api/perfmark-api.spec

68 lines
1.9 KiB
RPMSpec

#
# spec file for package perfmark-api
#
# 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: perfmark-api
Version: 0.27.0
Release: 0
Summary: PerfMark API
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://github.com/perfmark
Source0: perfmark-%{version}.tar.xz
Source1: https://repo1.maven.org/maven2/io/perfmark/%{name}/%{version}/%{name}-%{version}.pom
BuildRequires: fdupes mvn(com.google.errorprone:error_prone_annotations)
BuildRequires: maven-local
BuildArch: noarch
%description
PerfMark is a low-overhead, manually-instrumented, tracing library
for Java. Users can add the tracing function calls to their code
to see how long each part takes.
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation/HTML
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n perfmark-%{version}
cp %{SOURCE1} api/pom.xml
%pom_add_dep com.google.errorprone:error_prone_annotations:2.29.2:provided api
%build
pushd api
%{mvn_build} -f -- -Dmaven.compiler.release=8
popd
%install
pushd api
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f api/.mfiles
%license LICENSE NOTICE
%doc README.md
%files javadoc -f api/.mfiles-javadoc
%license LICENSE NOTICE
%changelog