Files
serviceloader-maven-plugin/serviceloader-maven-plugin.spec

72 lines
2.3 KiB
RPMSpec

#
# spec file for package serviceloader-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: serviceloader-maven-plugin
Version: 1.4.0
Release: 0
Summary: Maven plugin for generating java serviceloader files
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://github.com/francisdb/%{name}
Source0: %{url}/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-api)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)
BuildArch: noarch
%description
This maven plugin generates services files for the ServiceLoader introduced in
Java 6: https://docs.oracle.com/javase/9/docs/api/java/util/ServiceLoader.html
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
%pom_remove_plugin com.mycila:license-maven-plugin
%pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin
%pom_change_dep :maven-project :maven-core:3.8.1
%pom_change_dep org.apache.maven::3.8.1 :::provided
%build
%{mvn_build} -f
%install
%mvn_install
%files -f .mfiles
%license LICENSE.txt
%doc README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog