build-helper-maven-plugin/build-helper-maven-plugin.spec

75 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package build-helper-maven-plugin
#
# 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/
#
%global oldname maven-plugin-build-helper
Name: build-helper-maven-plugin
Version: 3.6.0
Release: 0
Summary: Build Helper Maven Plugin
License: MIT
URL: https://www.mojohaus.org/build-helper-maven-plugin/
Source0: https://github.com/mojohaus/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
BuildRequires: mvn(org.apache-extras.beanshell:bsh)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.shared:file-management) >= 3.1.0
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.slf4j:slf4j-api)
Provides: %{oldname} = %{version}
Obsoletes: %{oldname} < %{version}
BuildArch: noarch
%description
This plugin contains various small independent goals to assist with
Maven build lifecycle.
%package javadoc
Summary: API documentation for %{name}
Provides: %{oldname}-javadoc = %{version}
Obsoletes: %{oldname}-javadoc = %{version}
%description javadoc
This package provides %{summary}.
%prep
%setup -q
%pom_remove_plugin :maven-checkstyle-plugin
%build
%{mvn_build} -f -- -Dsource=8
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license LICENSE.txt
%doc README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog