123 lines
4.5 KiB
RPMSpec
123 lines
4.5 KiB
RPMSpec
#
|
|
# spec file for package modello-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 parent modello
|
|
%global subname maven-plugin
|
|
Name: %{parent}-%{subname}
|
|
Version: 2.4.0
|
|
Release: 0
|
|
Summary: Modello Maven Plugin
|
|
License: Apache-2.0 AND MIT
|
|
Group: Development/Libraries/Java
|
|
URL: https://codehaus-plexus.github.io/modello/modello-maven-plugin
|
|
Source0: https://repo1.maven.org/maven2/org/codehaus/%{parent}/%{parent}/%{version}/%{parent}-%{version}-source-release.zip
|
|
Source1: https://www.apache.org/licenses/LICENSE-2.0.txt
|
|
Patch0: 0001-Fix-ModelloCli-after-moving-from-Plexus-to-JSR330.patch
|
|
Patch1: 0002-Add-support-for-domAsXpp3-and-fail-if-the-old-Java5-.patch
|
|
Patch2: 0003-Fix-Snakeyaml.patch
|
|
BuildRequires: fdupes
|
|
BuildRequires: maven-local
|
|
BuildRequires: unzip
|
|
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-model)
|
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
|
BuildRequires: mvn(org.codehaus.modello:modello-core) = %{version}
|
|
BuildRequires: mvn(org.codehaus.modello:modello-plugin-converters) = %{version}
|
|
BuildRequires: mvn(org.codehaus.modello:modello-plugin-dom4j) = %{version}
|
|
BuildRequires: mvn(org.codehaus.modello:modello-plugin-jackson) = %{version}
|
|
BuildRequires: mvn(org.codehaus.modello:modello-plugin-java) = %{version}
|
|
BuildRequires: mvn(org.codehaus.modello:modello-plugin-jdom) = %{version}
|
|
BuildRequires: mvn(org.codehaus.modello:modello-plugin-jsonschema) = %{version}
|
|
BuildRequires: mvn(org.codehaus.modello:modello-plugin-sax) = %{version}
|
|
BuildRequires: mvn(org.codehaus.modello:modello-plugin-snakeyaml) = %{version}
|
|
BuildRequires: mvn(org.codehaus.modello:modello-plugin-stax) = %{version}
|
|
BuildRequires: mvn(org.codehaus.modello:modello-plugin-velocity) = %{version}
|
|
BuildRequires: mvn(org.codehaus.modello:modello-plugin-xdoc) = %{version}
|
|
BuildRequires: mvn(org.codehaus.modello:modello-plugin-xpp3) = %{version}
|
|
BuildRequires: mvn(org.codehaus.modello:modello-plugin-xsd) = %{version}
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-build-api)
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus:pom:)
|
|
#!BuildRequires: maven-compiler-plugin-bootstrap
|
|
#!BuildRequires: maven-jar-plugin-bootstrap
|
|
#!BuildRequires: maven-javadoc-plugin-bootstrap
|
|
#!BuildRequires: maven-plugin-plugin-bootstrap
|
|
#!BuildRequires: maven-resources-plugin-bootstrap
|
|
#!BuildRequires: maven-surefire-plugin-bootstrap
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Modello is a Data Model toolkit in use by the Apache Maven Project.
|
|
|
|
Modello is a framework for code generation from a simple model.
|
|
Modello generates code from a simple model format based on a plugin
|
|
architecture, various types of code and descriptors can be generated
|
|
from the single model, including Java POJOs, XML
|
|
marshallers/unmarshallers, XSD and documentation.
|
|
|
|
Modello Maven Plugin enables the use of Modello in Maven builds.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{parent}-%{version}
|
|
%patch -P 0 -p1
|
|
%patch -P 1 -p1
|
|
%patch -P 2 -p1
|
|
cp -p %{SOURCE1} .
|
|
|
|
%pom_remove_plugin :maven-site-plugin
|
|
%pom_remove_plugin :maven-enforcer-plugin
|
|
%pom_remove_plugin :sisu-maven-plugin
|
|
|
|
%pom_remove_dep :sisu-guice modello-core
|
|
%pom_add_dep com.google.inject:guice modello-core
|
|
|
|
%pom_change_dep -r :velocity-engine-core :velocity
|
|
|
|
%pom_remove_dep :jackson-bom
|
|
|
|
%build
|
|
pushd %{name}
|
|
%{mvn_file} :{*} %{parent}/@1
|
|
%{mvn_build} -f -- -Dsource=8
|
|
popd
|
|
|
|
%install
|
|
pushd %{name}
|
|
|
|
%mvn_install
|
|
|
|
popd
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
%files -f %{name}/.mfiles
|
|
%license LICENSE.txt LICENSE-2.0.txt
|
|
|
|
%files javadoc -f %{name}/.mfiles-javadoc
|
|
%license LICENSE.txt LICENSE-2.0.txt
|
|
|
|
%changelog
|