be41a5
Name:           jaxb-api4
be41a5
Version:        4.0.0
be41a5
Release:        1%{?dist}
be41a5
Summary:        Jakarta XML Binding API
be41a5
License:        BSD
be41a5
URL:            https://github.com/eclipse-ee4j/jaxb-api
be41a5
BuildArch:      noarch
be41a5
be41a5
Source0:        %{url}/archive/%{version}/jaxb-api-%{version}.tar.gz
be41a5
be41a5
BuildRequires:  maven-local
be41a5
BuildRequires:  mvn(jakarta.activation:jakarta.activation-api:2.1.0)
be41a5
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
be41a5
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
be41a5
be41a5
%description
be41a5
The Jakarta XML Binding provides an API and tools that automate the mapping
be41a5
between XML documents and Java objects.
be41a5
be41a5
%package javadoc
be41a5
Summary:        Javadoc for %{name}
be41a5
be41a5
%description javadoc
be41a5
This package contains javadoc for %{name}.
be41a5
be41a5
%prep
be41a5
%setup -q -n jaxb-api-%{version}
be41a5
be41a5
find -name 'module-info.java' -type f -delete
be41a5
be41a5
# Remove unnecessary dependency on parent POM
be41a5
%pom_remove_parent
be41a5
be41a5
%pom_remove_plugin -r :buildnumber-maven-plugin
be41a5
%pom_remove_plugin -r :glassfish-copyright-maven-plugin
be41a5
%pom_remove_plugin -r :maven-enforcer-plugin
be41a5
be41a5
%mvn_compat_version jakarta*: 4 %{version}
be41a5
be41a5
%build
be41a5
%mvn_build
be41a5
be41a5
%install
be41a5
%mvn_install
be41a5
be41a5
%files -f .mfiles
be41a5
%license LICENSE.md NOTICE.md
be41a5
be41a5
%files javadoc -f .mfiles-javadoc
be41a5
%license LICENSE.md NOTICE.md
be41a5
be41a5
%changelog
be41a5
* Tue Jan 17 2023 Marian Koncek <mkoncek@redhat.com> - 4.0.0-1
be41a5
- Initial build