89 lines
2.9 KiB
RPMSpec
89 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package jaxb2-maven-plugin
|
|
#
|
|
# Copyright (c) 2023 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: jaxb2-maven-plugin
|
|
Version: 3.1.0
|
|
Release: 0
|
|
Summary: JAXB2 Maven Plugin
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: https://www.mojohaus.org/%{name}/
|
|
Source0: https://github.com/mojohaus/jaxb2-maven-plugin/archive/refs/tags/%{name}-%{version}.tar.gz
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(org.glassfish.jaxb:jaxb-jxc)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|
BuildRequires: mvn(org.codehaus.mojo:mojo-parent:pom:)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
This Maven plugin uses the Java API for XML Binding (JAXB), version 2+, to
|
|
perform one of 2 main tasks:
|
|
|
|
• Generate Java classes from XML Schemas (and optionally binding files). This
|
|
is done by delegating work to the XJC tool, bundled with the Java SDK.
|
|
Documentation for the XJC tool is found at two places — the Unix Documentation
|
|
and the Windows Documentation.
|
|
|
|
• Create XML Schemas from annotated Java classes. This is done by delegating
|
|
work to the Schemagen tool, bundled with the Java SDK. Documentation for the
|
|
Schemagen tool is also found at two places — the Unix Documentation and the
|
|
Windows Documentation.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{name}-%{version}
|
|
|
|
pushd src/main/java/org/codehaus/mojo/jaxb2/schemageneration/postprocessing/javadoc
|
|
sed -i -e 's/jakarta\.xml\.bind\.annotation/javax.xml.bind.annotation/g' \
|
|
JavaDocExtractor.java \
|
|
SortableLocation.java \
|
|
location/ClassLocation.java \
|
|
location/FieldLocation.java \
|
|
location/MethodLocation.java
|
|
popd
|
|
|
|
sed -i -e 's/org\.glassfish\.jaxb\.\(core\|runtime\)\.v2/com.sun.xml.bind.v2/g' \
|
|
src/main/java/org/codehaus/mojo/jaxb2/AbstractJaxbMojo.java
|
|
|
|
%pom_remove_plugin org.apache.servicemix.tooling:depends-maven-plugin
|
|
%pom_change_dep com.sun.xml.bind:jaxb-jxc org.glassfish.jaxb:jaxb-jxc
|
|
|
|
%{mvn_file} : %{name}
|
|
|
|
%build
|
|
%{mvn_build} -f -- -Dmojo.java.target=8 -Dsource=8
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE.txt
|
|
%doc README.md
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE.txt
|
|
|
|
%changelog
|