Files
echo-maven-plugin/echo-maven-plugin.spec

70 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package echo-maven-plugin
#
# 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: echo-maven-plugin
Version: 2.0.1
Release: 0
Summary: A maven plugin that lets you output text during Maven build
License: BSD-3-Clause
Group: Development/Libraries/Java
URL: https://github.com/Ekryd/echo-maven-plugin
Source0: %{url}/archive/refs/tags/echo-plugin-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: java-devel >= 11
BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildArch: noarch
%description
A maven plugin that lets you output text during Maven build.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n %{name}-echo-plugin-%{version}
%pom_remove_plugin com.github.ekryd.echo-maven-plugin:echo-maven-plugin
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
%pom_remove_plugin org.jacoco:jacoco-maven-plugin
%pom_remove_plugin com.spotify.fmt:fmt-maven-plugin
%pom_remove_plugin com.github.ekryd.sortpom:sortpom-maven-plugin
%build
%{mvn_build} -f
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE.md
%doc {README,CONTRIBUTING}.md
%files javadoc -f .mfiles-javadoc
%license LICENSE.md
%changelog