Blame SPECS/jaxb-api.spec

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