2020-03-09 12:06:30 +00:00
|
|
|
#
|
|
|
|
# spec file for package glassfish-jaxb-api
|
|
|
|
#
|
2022-03-04 18:58:41 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2020-03-09 12:06:30 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global oname jaxb-spec
|
2022-03-17 04:42:00 +00:00
|
|
|
%global bundle jaxb-api
|
2020-03-09 12:06:30 +00:00
|
|
|
Name: glassfish-jaxb-api
|
|
|
|
Version: 2.4.0
|
|
|
|
Release: 0
|
|
|
|
Summary: Java Architecture for XML Binding
|
|
|
|
License: CDDL-1.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
URL: https://jaxb.java.net/
|
|
|
|
Source0: https://github.com/javaee/%{oname}/archive/%{version}.tar.gz
|
2022-03-17 04:42:00 +00:00
|
|
|
Source1: %{name}-build.xml
|
|
|
|
BuildRequires: ant
|
2020-03-09 12:06:30 +00:00
|
|
|
BuildRequires: fdupes
|
2022-03-17 04:42:00 +00:00
|
|
|
BuildRequires: jaf
|
2020-03-09 12:06:30 +00:00
|
|
|
BuildRequires: java-devel >= 9
|
2022-03-17 04:42:00 +00:00
|
|
|
BuildRequires: javapackages-local
|
2020-03-09 12:06:30 +00:00
|
|
|
BuildRequires: unzip
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Glassfish - JAXB (JSR 222) API.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{oname}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
Glassfish - JAXB (JSR 222) API.
|
|
|
|
|
|
|
|
This package contains javadoc for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{oname}-%{version}
|
2022-03-17 04:42:00 +00:00
|
|
|
cp %{SOURCE1} jaxb-api/build.xml
|
2020-03-09 12:06:30 +00:00
|
|
|
|
|
|
|
%pom_disable_module jaxb-api-test
|
|
|
|
|
|
|
|
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin jaxb-api
|
|
|
|
%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin jaxb-api
|
|
|
|
%pom_remove_plugin org.glassfish.build:gfnexus-maven-plugin jaxb-api
|
|
|
|
%pom_remove_plugin :findbugs-maven-plugin jaxb-api
|
|
|
|
%pom_remove_plugin :maven-enforcer-plugin jaxb-api
|
|
|
|
%pom_remove_plugin :cobertura-maven-plugin jaxb-api
|
|
|
|
%pom_remove_plugin :maven-dependency-plugin jaxb-api
|
|
|
|
|
2022-03-17 04:42:00 +00:00
|
|
|
%pom_remove_parent jaxb-api
|
|
|
|
%pom_xpath_inject pom:project "
|
|
|
|
<groupId>javax.xml.bind</groupId>
|
|
|
|
<version>%{version}</version>" jaxb-api
|
|
|
|
|
2020-03-18 21:02:26 +00:00
|
|
|
%pom_xpath_inject "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:configuration" "
|
|
|
|
<sourceFileExcludes>
|
|
|
|
<exclude>module-info.java</exclude>
|
|
|
|
</sourceFileExcludes>" jaxb-api
|
|
|
|
|
2020-04-14 09:07:15 +00:00
|
|
|
%build
|
2022-03-17 04:42:00 +00:00
|
|
|
pushd jaxb-api
|
|
|
|
mkdir -p lib
|
|
|
|
build-jar-repository -s lib jaf
|
|
|
|
%{ant} jar javadoc
|
|
|
|
popd
|
2020-03-09 12:06:30 +00:00
|
|
|
|
|
|
|
%install
|
2022-03-17 04:42:00 +00:00
|
|
|
# jar
|
|
|
|
install -d -m 755 %{buildroot}%{_javadir}/%{name}
|
|
|
|
install -m 644 %{bundle}/target/%{bundle}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{bundle}.jar
|
|
|
|
|
|
|
|
# pom
|
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}/%{name}
|
|
|
|
install -pm 644 %{bundle}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{bundle}.pom
|
|
|
|
%add_maven_depmap %{name}/%{bundle}.pom %{name}/%{bundle}.jar
|
|
|
|
|
|
|
|
# javadoc
|
|
|
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -r %{bundle}/target/site/apidocs/* %{buildroot}/%{_javadocdir}/%{name}
|
2020-03-09 12:06:30 +00:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
2020-03-18 20:36:28 +00:00
|
|
|
%license LICENSE.txt
|
2020-03-09 12:06:30 +00:00
|
|
|
|
2022-03-17 04:42:00 +00:00
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
2020-03-18 20:36:28 +00:00
|
|
|
%license LICENSE.txt
|
2020-03-09 12:06:30 +00:00
|
|
|
|
|
|
|
%changelog
|