glassfish-jaxb-api/glassfish-jaxb-api.spec
2024-06-13 14:53:51 +08:00

65 lines
2.1 KiB
RPMSpec

Name: glassfish-jaxb-api
Version: 2.2.12
Release: 12
Summary: Java Architecture of XML Binding
License: CDDL-1.1 or GPLv2 with exception
URL: http://jaxb.java.net/
Source0: https://repo1.maven.org/maven2/javax/xml/bind/jaxb-api/2.2.12-b141001.1542/jaxb-api-%{version}-b141001.1542-sources.jar
Source1: https://repo1.maven.org/maven2/javax/xml/bind/jaxb-api/2.2.12-b141001.1542/jaxb-api-%{version}-b141001.1542.pom
BuildRequires: java-javadoc maven-local mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildArch: noarch
%description
The Java Architecture for XML Binding(JAXB) provides an API and tools
that automate the mapping between XML documents and Java objects.
%package help
Summary: Help documents of jaxb-api
Provides: glassfish-jaxb-api-javadoc = %{version}-%{release}
Obsoletes: glassfish-jaxb-api-javadoc < %{version}-%{release}
Requires: glassfish-jaxb-api = %{version}-%{release}
%description help
Help documents of jaxb-api.
%prep
%autosetup -T -c -n %{name}-%{version} -p1
install -d src/main/java
(
pushd src/main/java
unzip -qq %{SOURCE0}
rm -rf META-INF
popd
)
install -p %{SOURCE1} pom.xml
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin
%pom_remove_plugin org.glassfish.build:gfnexus-maven-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :cobertura-maven-plugin
%pom_xpath_set "pom:instructions/pom:Import-Package" "javax.activation;resolution:=optional,*"
sed -i 's|<location>${basedir}/offline-javadoc</location>|<location>%{_javadocdir}/java</location>|' pom.xml
%build
%mvn_file :jaxb-api jaxb-api
%mvn_build
%install
%mvn_install
%files -f .mfiles
%files help -f .mfiles-javadoc
%changelog
* Thu Jun 13 2024 wulei <wu_lei@hoperun.com> - 2.2.12-12
- Regulate license information
* Wed Apr 22 2020 leiju <leiju4@huawei.com> - 2.2.12-11
- Package init