68 lines
1.9 KiB
RPMSpec
68 lines
1.9 KiB
RPMSpec
|
#
|
||
|
# spec file for package javapoet
|
||
|
#
|
||
|
# Copyright (c) 2023 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: javapoet
|
||
|
Version: 1.13.0
|
||
|
Release: 0
|
||
|
Summary: A Java API for generating .java source files
|
||
|
License: Apache-2.0
|
||
|
Group: Development/Libraries/Java
|
||
|
URL: https://github.com/square/javapoet
|
||
|
Source0: https://github.com/square/%{name}/archive/%{name}-%{version}.tar.gz
|
||
|
BuildRequires: fdupes
|
||
|
BuildRequires: maven-local
|
||
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description
|
||
|
A utility class which aids in generating Java source files.
|
||
|
|
||
|
%package javadoc
|
||
|
Summary: Javadoc for %{name}
|
||
|
Group: Documentation/HTML
|
||
|
|
||
|
%description javadoc
|
||
|
This package contains javadoc for %{name}.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{name}-%{name}-%{version}
|
||
|
|
||
|
%pom_remove_plugin :maven-checkstyle-plugin
|
||
|
%pom_remove_dep org.codehaus.plexus:plexus-compiler-javac-errorprone
|
||
|
%pom_remove_dep com.google.errorprone:error_prone_core
|
||
|
%pom_xpath_remove pom:compilerId
|
||
|
|
||
|
%{mvn_file} : %{name}
|
||
|
|
||
|
%build
|
||
|
# skip tests due to missing test dependencies
|
||
|
%{mvn_build} -f -- -Dsource=8
|
||
|
|
||
|
%install
|
||
|
%mvn_install
|
||
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||
|
|
||
|
%files -f .mfiles
|
||
|
%doc CHANGELOG.md README.md
|
||
|
%license LICENSE.txt
|
||
|
|
||
|
%files javadoc -f .mfiles-javadoc
|
||
|
%license LICENSE.txt
|
||
|
|
||
|
%changelog
|