From 57631269d05c03df60ff896da1ac58ee543d2a186c364da2be492c25ed2e8724 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 2 Apr 2019 10:10:34 +0000 Subject: [PATCH 1/2] Accepting request 690605 from home:fstrba:maven OBS-URL: https://build.opensuse.org/request/show/690605 OBS-URL: https://build.opensuse.org/package/show/Java:packages/modello?expand=0&rev=4 --- modello-maven-plugin.changes | 5 ++ modello-maven-plugin.spec | 103 +++++++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 modello-maven-plugin.changes create mode 100644 modello-maven-plugin.spec diff --git a/modello-maven-plugin.changes b/modello-maven-plugin.changes new file mode 100644 index 0000000..89c67ab --- /dev/null +++ b/modello-maven-plugin.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Mar 12 08:34:05 UTC 2019 - Fridrich Strba + +- Initial packaging of modello-maven-plugin separate package + * Allows building the rest of modello without needing maven diff --git a/modello-maven-plugin.spec b/modello-maven-plugin.spec new file mode 100644 index 0000000..b5613b2 --- /dev/null +++ b/modello-maven-plugin.spec @@ -0,0 +1,103 @@ +# +# spec file for package modello-maven-plugin +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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: 1.9.1 +Release: 0 +Summary: Modello Maven Plugin +License: MIT AND Apache-2.0 +Group: Development/Libraries/Java +URL: http://codehaus-plexus.github.io/modello/modello-maven-plugin +Source0: http://repo2.maven.org/maven2/org/codehaus/%{parent}/%{parent}/%{version}/%{parent}-%{version}-source-release.zip +Source1: http://www.apache.org/licenses/LICENSE-2.0.txt +BuildRequires: fdupes +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-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-java) = %{version} +BuildRequires: mvn(org.codehaus.modello:modello-plugin-jdom) = %{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-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-container-default) +BuildRequires: mvn(org.codehaus.plexus:plexus-utils) +BuildRequires: mvn(org.sonatype.plexus:plexus-build-api) +BuildRequires: unzip +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} +cp -p %{SOURCE1} LICENSE +# We don't generate site; don't pull extra dependencies. +%pom_remove_plugin :maven-site-plugin +# Avoid using Maven 2.x APIs +sed -i s/maven-project/maven-core/ modello-maven-plugin/pom.xml + +%pom_disable_module modello-plugin-jackson modello-plugins +%pom_disable_module modello-plugin-jsonschema modello-plugins +%pom_remove_dep :modello-plugin-jackson modello-maven-plugin +%pom_remove_dep :modello-plugin-jsonschema modello-maven-plugin + +%build +# skip tests because we have too old xmlunit in openSUSE now (1.5) +pushd %{name} +%{mvn_build} -f -- -Dmaven.version=3.1.1 -Dsource=6 +popd + +%install +pushd %{name} +%mvn_install +popd +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f %{name}/.mfiles +%license LICENSE + +%files javadoc -f %{name}/.mfiles-javadoc +%license LICENSE + +%changelog From 5b79a55b6afe136ae3fbac132dbb2d48d789a22e57ebe0875fc41844fe94efed Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 2 Apr 2019 16:46:25 +0000 Subject: [PATCH 2/2] Accepting request 690710 from Java:packages . OBS-URL: https://build.opensuse.org/request/show/690710 OBS-URL: https://build.opensuse.org/package/show/Java:packages/modello?expand=0&rev=5 --- modello-maven-plugin.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modello-maven-plugin.spec b/modello-maven-plugin.spec index b5613b2..90c5cca 100644 --- a/modello-maven-plugin.spec +++ b/modello-maven-plugin.spec @@ -49,6 +49,12 @@ BuildRequires: mvn(org.codehaus.plexus:plexus-container-default) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) BuildRequires: mvn(org.sonatype.plexus:plexus-build-api) BuildRequires: unzip +#!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