Files
pf4j/pf4j.spec

96 lines
2.7 KiB
RPMSpec

#
# spec file for package pf4j
#
# 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: pf4j
Version: 3.2.0
Release: 0
Summary: Plugin Framework for Java (PF4J)
License: Apache-2.0
Group: Development/Libraries/Java
URL: http://www.pf4j.org
Source0: https://github.com/pf4j/pf4j/archive/release-%{version}.tar.gz
Patch0: pf4j-3.2.0-java8build.patch
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(com.github.zafarkhaja:java-semver)
BuildRequires: mvn(org.apache.maven.archetype:archetype-packaging)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-archetype-plugin)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch: noarch
%description
Plugin Framework for Java (PF4J)
%package parent
Summary: Plugin Framework for Java - parent pom
Group: Development/Libraries/Java
%description parent
Plugin Framework for Java (PF4J) - parent pom
%package quickstart
Summary: Quickstart Archetype
Group: Development/Libraries/Java
%description quickstart
Plugin Framework for Java (PF4J) - Quickstart Archetype
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation/HTML
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{name}-release-%{version}
%patch -P 0 -p1
%pom_disable_module demo
rm pf4j/src/main/java/module-info.java
# Not needed for rpm build
%pom_remove_plugin :maven-deploy-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin
%build
%{mvn_build} -f -s
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles-pf4j
%license LICENSE
%doc README.md CHANGELOG.md
%files javadoc -f .mfiles-javadoc
%license LICENSE
%files quickstart -f .mfiles-pf4j-quickstart
%license LICENSE
%files parent -f .mfiles-pf4j-parent
%license LICENSE
%changelog