Blame SPECS/jaxb-api.spec

f8e844
Name:           jaxb-api
f8e844
Version:        2.3.3
f8e844
Release:        5%{?dist}
f8e844
Summary:        Jakarta XML Binding API
f8e844
License:        BSD
f8e844
f8e844
URL:            https://github.com/eclipse-ee4j/jaxb-api
f8e844
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
f8e844
f8e844
BuildArch:      noarch
f8e844
f8e844
BuildRequires:  maven-local
f8e844
BuildRequires:  mvn(jakarta.activation:jakarta.activation-api)
f8e844
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
f8e844
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
f8e844
f8e844
# package renamed from glassfish-jaxb-api in fedora 33
f8e844
Provides:       glassfish-jaxb-api = %{version}-%{release}
f8e844
Obsoletes:      glassfish-jaxb-api < 2.3.3-2
f8e844
f8e844
# javadoc subpackage is currently not built
f8e844
Obsoletes:      glassfish-jaxb-api-javadoc < 2.3.3-2
f8e844
f8e844
%description
f8e844
The Jakarta XML Binding provides an API and tools that automate the mapping
f8e844
between XML documents and Java objects.
f8e844
f8e844
%prep
f8e844
%setup -q
f8e844
f8e844
# remove unnecessary dependency on parent POM
f8e844
%pom_remove_parent
f8e844
f8e844
# disable unwanted test module
f8e844
%pom_disable_module jaxb-api-test
f8e844
f8e844
# remove unnecessary maven plugins
f8e844
%pom_remove_plugin -r :glassfish-copyright-maven-plugin
f8e844
%pom_remove_plugin -r :buildnumber-maven-plugin
f8e844
%pom_remove_plugin -r :maven-enforcer-plugin
f8e844
f8e844
# mark dependency on jakarta.activation as optional
f8e844
%pom_xpath_inject "pom:dependency[pom:groupId='jakarta.activation']" "<optional>true</optional>" jaxb-api
f8e844
f8e844
# add compatibility aliases for old artifact coordinates
f8e844
%mvn_alias jakarta.xml.bind:jakarta.xml.bind-api javax.xml.bind:jaxb-api
f8e844
%mvn_file :jakarta.xml.bind-api glassfish-jaxb-api/jakarta.xml.bind-api jaxb-api
f8e844
f8e844
f8e844
%build
f8e844
# skip javadoc build due to https://github.com/fedora-java/xmvn/issues/58
f8e844
%mvn_build -j -- -DbuildNumber=unknown -DscmBranch=%{version}
f8e844
f8e844
f8e844
%install
f8e844
%mvn_install
f8e844
f8e844
f8e844
%files -f .mfiles
f8e844
%license LICENSE.md NOTICE.md
f8e844
f8e844
f8e844
%changelog
f8e844
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.3.3-5
f8e844
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
f8e844
  Related: rhbz#1991688
f8e844
f8e844
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.3.3-4
f8e844
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
f8e844
f8e844
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-3
f8e844
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f8e844
f8e844
* Tue Aug 11 2020 Fabio Valentini <decathorpe@gmail.com> - 2.3.3-2
f8e844
- Initial package renamed from glassfish-jaxb-api.
f8e844