97 lines
3.2 KiB
RPMSpec
97 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package module-info
|
|
#
|
|
# Copyright (c) 2025 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: module-info
|
|
Version: 2.1
|
|
Release: 0
|
|
Summary: Module Info Generator
|
|
License: LGPL-2.1-or-later
|
|
URL: https://github.com/dmlloyd/module-info
|
|
Source0: https://github.com/dmlloyd/%{name}/archive/refs/tags/%{version}.tar.gz
|
|
Source1: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
|
|
Patch0: usage-on-wrong-parameter.patch
|
|
BuildRequires: fdupes
|
|
BuildRequires: java-devel >= 1.8
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(com.beust:jcommander)
|
|
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-install-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|
BuildRequires: mvn(org.apache.maven.shared:maven-filtering)
|
|
BuildRequires: mvn(org.apache.maven:maven-compat)
|
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
|
BuildRequires: mvn(org.apache.maven:maven-settings)
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
|
|
BuildRequires: mvn(org.ow2.asm:asm)
|
|
BuildRequires: mvn(org.ow2.asm:asm-analysis)
|
|
BuildRequires: mvn(org.ow2.asm:asm-tree)
|
|
BuildRequires: mvn(org.yaml:snakeyaml)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
An utility for generating module-info.class files from any JDK
|
|
version(including 8). The module-info.class file is generated by
|
|
reading a source YAML file, optionally merging in values from
|
|
your project and/or build system, and then producing the class
|
|
file from the result.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
|
|
%description javadoc
|
|
This package provides %{summary}.
|
|
|
|
%prep
|
|
%setup -q
|
|
%autopatch -p1
|
|
|
|
cp %{SOURCE1} LICENSE.txt
|
|
|
|
%pom_remove_parent
|
|
|
|
%pom_change_dep :maven-project :maven-core
|
|
|
|
%pom_remove_plugin -r :nexus-staging-maven-plugin
|
|
%pom_remove_plugin -r :maven-shade-plugin
|
|
|
|
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-plugin-plugin']/pom:configuration" "
|
|
<goalPrefix>%{name}</goalPrefix>"
|
|
|
|
%{mvn_file} :{*} %{name}/@1
|
|
|
|
%build
|
|
# build and install the bootstrap version of the plugin
|
|
xmvn --offline install -Dbootstrap -Dmaven.repo.local=$(pwd)/maven-repo
|
|
%{mvn_build} -f -- -Dsource=8 -Dmaven.repo.local=$(pwd)/maven-repo
|
|
|
|
%install
|
|
%mvn_install
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
%jpackage_script io.github.dmlloyd.moduleinfo.ModuleInfoCreator "" "" %{name}:objectweb-asm:beust-jcommander:snakeyaml:commons-codec %{name}
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE.txt
|
|
%doc README.adoc
|
|
%{_bindir}/%{name}
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE.txt
|
|
|
|
%changelog
|