2019-03-12 09:13:23 +01:00
|
|
|
#
|
|
|
|
# spec file for package modello
|
|
|
|
#
|
2024-02-21 11:51:16 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-03-12 09:13:23 +01:00
|
|
|
#
|
|
|
|
# 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: modello
|
2024-05-04 14:12:46 +02:00
|
|
|
Version: 2.4.0
|
2019-03-12 09:13:23 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Modello Data Model toolkit
|
2021-04-23 08:56:12 +02:00
|
|
|
License: Apache-2.0 AND MIT
|
2019-03-12 09:13:23 +01:00
|
|
|
Group: Development/Libraries/Java
|
2021-04-23 08:56:12 +02:00
|
|
|
URL: https://codehaus-plexus.github.io/modello
|
|
|
|
Source0: https://repo1.maven.org/maven2/org/codehaus/%{name}/%{name}/%{version}/%{name}-%{version}-source-release.zip
|
2023-09-05 00:36:16 +02:00
|
|
|
Source1: https://www.apache.org/licenses/LICENSE-2.0.txt
|
2019-03-12 09:13:23 +01:00
|
|
|
Source100: %{name}-build.tar.xz
|
2024-06-05 17:49:22 +02:00
|
|
|
Patch0: 0001-Upgrade-to-SnakeYaml-2.2-439.patch
|
|
|
|
Patch1: 0002-Update-build-get-rid-of-legacy-fix-CLI-452.patch
|
|
|
|
Patch2: 0003-Add-support-for-domAsXpp3-and-fail-if-the-old-Java5-.patch
|
2019-03-12 09:13:23 +01:00
|
|
|
BuildRequires: ant
|
2023-09-11 18:10:52 +02:00
|
|
|
BuildRequires: atinject
|
2019-03-12 09:13:23 +01:00
|
|
|
BuildRequires: fdupes
|
2019-11-24 12:38:13 +01:00
|
|
|
BuildRequires: guava
|
2024-04-15 09:32:42 +02:00
|
|
|
BuildRequires: jackson-core
|
2024-04-13 18:11:16 +02:00
|
|
|
BuildRequires: javadoc-parser
|
2023-09-05 00:53:42 +02:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2019-03-12 09:13:23 +01:00
|
|
|
BuildRequires: jsoup
|
2024-04-16 19:17:17 +02:00
|
|
|
BuildRequires: junit
|
2024-05-01 14:23:37 +02:00
|
|
|
BuildRequires: plexus-build-api >= 1.0
|
2024-04-16 19:17:17 +02:00
|
|
|
BuildRequires: plexus-compiler
|
2019-03-12 09:13:23 +01:00
|
|
|
BuildRequires: plexus-utils
|
2024-04-02 19:37:48 +02:00
|
|
|
BuildRequires: plexus-xml
|
2024-04-13 18:11:16 +02:00
|
|
|
BuildRequires: sisu-inject
|
2022-05-13 10:53:40 +02:00
|
|
|
BuildRequires: sisu-plexus
|
2024-04-13 18:11:16 +02:00
|
|
|
BuildRequires: slf4j
|
2024-04-16 15:06:04 +02:00
|
|
|
BuildRequires: snakeyaml
|
2019-03-12 09:13:23 +01:00
|
|
|
BuildRequires: unzip
|
2024-04-16 15:06:04 +02:00
|
|
|
BuildRequires: velocity
|
2023-09-11 18:10:52 +02:00
|
|
|
Requires: aopalliance
|
|
|
|
Requires: atinject
|
|
|
|
Requires: google-guice
|
2019-11-22 06:07:51 +01:00
|
|
|
Requires: guava
|
2024-04-15 09:32:42 +02:00
|
|
|
Requires: jackson-core
|
2024-04-13 18:11:16 +02:00
|
|
|
Requires: javadoc-parser
|
2019-03-12 09:13:23 +01:00
|
|
|
Requires: javapackages-tools
|
2023-09-11 18:10:52 +02:00
|
|
|
Requires: plexus-build-api
|
2024-05-01 14:27:44 +02:00
|
|
|
Requires: plexus-build-api0
|
2023-09-11 18:10:52 +02:00
|
|
|
Requires: plexus-classworlds
|
2024-05-02 13:52:20 +02:00
|
|
|
Requires: plexus-containers-component-annotations
|
2023-09-11 18:10:52 +02:00
|
|
|
Requires: plexus-utils
|
2024-04-02 19:37:48 +02:00
|
|
|
Requires: plexus-xml
|
2023-09-11 18:10:52 +02:00
|
|
|
Requires: sisu-inject
|
|
|
|
Requires: sisu-plexus
|
2024-04-13 18:11:16 +02:00
|
|
|
Requires: slf4j
|
2024-04-16 15:06:04 +02:00
|
|
|
Requires: snakeyaml
|
|
|
|
Requires: velocity
|
2019-03-12 09:13:23 +01:00
|
|
|
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.
|
|
|
|
|
2024-04-16 19:17:17 +02:00
|
|
|
%package test
|
|
|
|
Summary: Modello Test Package
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description test
|
|
|
|
Modello Test Package contains the basis to create Modello generator
|
|
|
|
unit-tests, including sample models and xml files to test every
|
|
|
|
feature for every plugin.
|
|
|
|
|
2019-03-12 09:13:23 +01:00
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -a100
|
2024-02-21 11:51:16 +01:00
|
|
|
%patch -P 0 -p1
|
|
|
|
%patch -P 1 -p1
|
2024-05-03 18:54:50 +02:00
|
|
|
%patch -P 2 -p1
|
2024-05-15 21:40:10 +02:00
|
|
|
cp -p %{SOURCE1} .
|
2022-05-13 10:53:40 +02:00
|
|
|
|
2019-03-12 09:13:23 +01:00
|
|
|
%pom_remove_plugin :maven-site-plugin
|
2023-09-05 00:36:16 +02:00
|
|
|
%pom_remove_plugin :maven-enforcer-plugin
|
2024-06-05 17:49:22 +02:00
|
|
|
%pom_remove_plugin :sisu-maven-plugin
|
2023-09-05 00:36:16 +02:00
|
|
|
|
2024-06-05 17:49:22 +02:00
|
|
|
%pom_add_dep org.codehaus.plexus:plexus-xml:3.0.0 modello-core
|
2022-05-13 10:53:40 +02:00
|
|
|
|
2024-04-16 15:06:04 +02:00
|
|
|
# This builds correctly with the older velocity 1.x and avoids build cycles
|
|
|
|
%pom_change_dep -r :velocity-engine-core :velocity
|
2023-09-05 00:36:16 +02:00
|
|
|
|
2024-04-16 15:06:04 +02:00
|
|
|
%pom_remove_dep :jackson-bom
|
2023-09-05 01:39:55 +02:00
|
|
|
|
2019-03-12 09:13:23 +01:00
|
|
|
%build
|
|
|
|
mkdir -p lib
|
2023-09-05 01:39:55 +02:00
|
|
|
build-jar-repository -s lib \
|
2023-09-11 18:10:52 +02:00
|
|
|
atinject \
|
2023-09-05 01:39:55 +02:00
|
|
|
guava/guava \
|
2024-04-15 09:32:42 +02:00
|
|
|
jackson-core \
|
2024-04-13 18:11:16 +02:00
|
|
|
javadoc-parser \
|
2023-09-05 01:39:55 +02:00
|
|
|
jsoup \
|
2024-04-16 19:17:17 +02:00
|
|
|
junit \
|
2023-09-05 01:39:55 +02:00
|
|
|
org.eclipse.sisu.inject \
|
|
|
|
org.eclipse.sisu.plexus \
|
2023-09-11 18:10:52 +02:00
|
|
|
plexus/cli \
|
2024-04-16 19:17:17 +02:00
|
|
|
plexus-compiler \
|
2023-09-05 01:39:55 +02:00
|
|
|
plexus/plexus-build-api \
|
|
|
|
plexus/utils \
|
2024-04-02 19:37:48 +02:00
|
|
|
plexus/xml \
|
2024-04-16 15:06:04 +02:00
|
|
|
slf4j/api \
|
|
|
|
snakeyaml \
|
|
|
|
velocity
|
2023-09-05 01:39:55 +02:00
|
|
|
|
2019-03-12 09:13:23 +01:00
|
|
|
%{ant} \
|
|
|
|
-Dtest.skip=true \
|
|
|
|
package javadoc
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
|
|
|
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
|
|
|
# poms
|
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
|
|
|
# javadoc
|
|
|
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
|
2024-04-16 19:17:17 +02:00
|
|
|
for i in core test; do
|
2024-04-15 09:50:10 +02:00
|
|
|
install -pm 0644 %{name}-${i}/target/%{name}-${i}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}-${i}.jar
|
|
|
|
%{mvn_install_pom} %{name}-${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}-${i}.pom
|
2024-04-16 19:17:17 +02:00
|
|
|
%add_maven_depmap %{name}/%{name}-${i}.pom %{name}/%{name}-${i}.jar -f ${i}
|
2019-03-12 09:13:23 +01:00
|
|
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/%{name}-${i}
|
|
|
|
cp -pr %{name}-${i}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/%{name}-${i}/
|
|
|
|
done
|
|
|
|
|
2024-04-16 15:06:04 +02:00
|
|
|
for i in converters dom4j java jdom sax stax xdoc xml xpp3 xsd jackson jsonschema snakeyaml velocity; do
|
2024-04-15 09:50:10 +02:00
|
|
|
install -pm 0644 %{name}-plugins/%{name}-plugin-${i}/target/%{name}-plugin-${i}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}-plugin-${i}.jar
|
|
|
|
%{mvn_install_pom} %{name}-plugins/%{name}-plugin-${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}-plugin-${i}.pom
|
|
|
|
%add_maven_depmap %{name}/%{name}-plugin-${i}.pom %{name}/%{name}-plugin-${i}.jar
|
2019-03-12 09:13:23 +01:00
|
|
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/%{name}-plugin-${i}
|
|
|
|
cp -pr %{name}-plugins/%{name}-plugin-${i}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/%{name}-plugin-${i}/
|
|
|
|
done
|
|
|
|
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
# script
|
2024-05-02 13:52:20 +02:00
|
|
|
%jpackage_script org.codehaus.modello.ModelloCli "" "" modello:aopalliance:atinject:google-guice:guava:jackson-core:javadoc-parser:plexus/plexus-build-api:plexus/plexus-build-api0:plexus/classworlds:plexus-containers/plexus-component-annotations:plexus/utils:plexus/xml:org.eclipse.sisu.inject:org.eclipse.sisu.plexus:slf4j/api:slf4j/simple:snakeyaml:velocity %{name} true
|
2019-03-12 09:13:23 +01:00
|
|
|
|
2024-04-16 19:17:17 +02:00
|
|
|
%files -f .mfiles -f .mfiles-core
|
2024-05-15 21:40:10 +02:00
|
|
|
%license LICENSE.txt LICENSE-2.0.txt
|
2019-03-12 09:13:23 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
|
2024-04-16 19:17:17 +02:00
|
|
|
%files test -f .mfiles-test
|
2024-05-15 21:40:10 +02:00
|
|
|
%license LICENSE.txt LICENSE-2.0.txt
|
2024-04-16 19:17:17 +02:00
|
|
|
|
2019-03-12 09:13:23 +01:00
|
|
|
%files javadoc
|
2024-05-15 21:40:10 +02:00
|
|
|
%license LICENSE.txt LICENSE-2.0.txt
|
2019-03-12 09:13:23 +01:00
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|