200 lines
6.4 KiB
RPMSpec
200 lines
6.4 KiB
RPMSpec
#
|
|
# spec file for package istack-commons
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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 base_name istack-commons
|
|
Name: jaxb-%{base_name}
|
|
Version: 4.2.0
|
|
Release: 0
|
|
Summary: Common code for some Glassfish projects
|
|
License: CDDL-1.1 AND GPL-2.0-only WITH Classpath-exception-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: https://istack-commons.java.net
|
|
Source0: https://github.com/eclipse-ee4j/%{name}/archive/%{version}-RELEASE.tar.gz
|
|
Patch0: missing-module-require.patch
|
|
BuildRequires: java-devel >= 9
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(args4j:args4j)
|
|
BuildRequires: mvn(com.sun.codemodel:codemodel)
|
|
BuildRequires: mvn(jakarta.activation:jakarta.activation-api)
|
|
BuildRequires: mvn(junit:junit)
|
|
BuildRequires: mvn(org.apache.ant:ant)
|
|
BuildRequires: mvn(org.apache.ant:ant-junit)
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|
BuildRequires: mvn(org.apache.maven.resolver:maven-resolver-api)
|
|
BuildRequires: mvn(org.apache.maven.resolver:maven-resolver-impl)
|
|
BuildRequires: mvn(org.apache.maven:maven-artifact)
|
|
BuildRequires: mvn(org.apache.maven:maven-core)
|
|
BuildRequires: mvn(org.apache.maven:maven-model)
|
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-xml)
|
|
BuildRequires: mvn(org.eclipse.ee4j:project:pom:)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Code shared between JAXP, JAXB, SAAJ, and JAX-WS projects.
|
|
|
|
%package maven-plugin
|
|
Summary: Istack-commons Maven Mojo
|
|
Group: Development/Libraries/Java
|
|
Requires: java-headless >= 1.8
|
|
|
|
%description maven-plugin
|
|
This package contains the istack-commons Maven Mojo.
|
|
|
|
%package -n jaxb-import-properties-plugin
|
|
Summary: Istack-commons import properties plugin
|
|
Group: Development/Libraries/Java
|
|
Requires: java-headless >= 1.8
|
|
|
|
%description -n jaxb-import-properties-plugin
|
|
This package contains the istack-commons import properties Maven Mojo.
|
|
|
|
%package buildtools
|
|
Summary: Istack-commons buildtools
|
|
Group: Development/Libraries/Java
|
|
Requires: java-headless >= 1.8
|
|
|
|
%description buildtools
|
|
This package contains istack-commons buildtools.
|
|
|
|
%package runtime
|
|
Summary: Istack-commons runtime
|
|
Group: Development/Libraries/Java
|
|
Requires: java-headless >= 1.8
|
|
|
|
%description runtime
|
|
This package contains istack-commons runtime.
|
|
|
|
%package soimp
|
|
Summary: Istack-commons soimp
|
|
Group: Development/Libraries/Java
|
|
Requires: java-headless >= 1.8
|
|
|
|
%description soimp
|
|
This package contains istack-commons soimp.
|
|
|
|
%package test
|
|
Summary: Istack-commons test
|
|
Group: Development/Libraries/Java
|
|
Requires: java-headless >= 1.8
|
|
|
|
%description test
|
|
This package contains istack-commons test.
|
|
|
|
%package tools
|
|
Summary: Istack-commons tools
|
|
Group: Development/Libraries/Java
|
|
Requires: java-headless >= 1.8
|
|
|
|
%description tools
|
|
This package contains istack-commons tools.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
This package contains the API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}-RELEASE
|
|
%patch -P 0 -p1
|
|
|
|
# Remove bundled jar files:
|
|
find . -name '*.jar' -print -delete
|
|
find . -name '*.class' -print -delete
|
|
|
|
pushd %{base_name}
|
|
|
|
%pom_remove_plugin :glassfish-copyright-maven-plugin
|
|
%pom_remove_plugin :buildnumber-maven-plugin
|
|
%pom_remove_plugin :maven-source-plugin
|
|
%pom_remove_plugin :spotbugs-maven-plugin
|
|
%pom_remove_plugin -r :maven-enforcer-plugin
|
|
%pom_remove_plugin -r :maven-assembly-plugin
|
|
%pom_remove_plugin -r :maven-dependency-plugin
|
|
%pom_remove_plugin :maven-compiler-plugin
|
|
|
|
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-plugin-plugin']" "
|
|
<configuration>
|
|
<goalPrefix>import-properties</goalPrefix>
|
|
</configuration>" import-properties-plugin
|
|
|
|
%pom_add_dep org.codehaus.plexus:plexus-xml:3.0.0 import-properties-plugin
|
|
|
|
# backward compatibility symlinks
|
|
%{mvn_file} com.sun.istack:%{name}-buildtools %{name}-buildtools %{name}/%{name}-buildtools
|
|
%{mvn_file} com.sun.istack:%{name}-runtime %{name}-runtime %{name}/%{name}-runtime
|
|
%{mvn_file} com.sun.istack:%{name}-soimp %{name}-soimp %{name}/%{name}-soimp
|
|
%{mvn_file} com.sun.istack:%{name}-test %{name}-test %{name}/%{name}-test
|
|
%{mvn_file} com.sun.istack:%{name}-tools %{name}-tools %{name}/%{name}-tools
|
|
|
|
# Avoid build cycles with jaxb
|
|
%pom_change_dep -r :codemodel com.sun.codemodel:
|
|
|
|
%pom_xpath_set pom:project/pom:properties/pom:maven.api.version 3
|
|
|
|
popd
|
|
|
|
%build
|
|
pushd %{base_name}
|
|
%{mvn_build} -f -s -j -- \
|
|
-Dproject.build.sourceEncoding=UTF-8
|
|
popd
|
|
|
|
%install
|
|
pushd %{base_name}
|
|
%mvn_install
|
|
popd
|
|
|
|
%files -f %{base_name}/.mfiles-istack-commons
|
|
%dir %{_javadir}/%{name}
|
|
%license LICENSE.md NOTICE.md
|
|
%doc README.md
|
|
|
|
%files maven-plugin -f %{base_name}/.mfiles-%{base_name}-maven-plugin
|
|
%license LICENSE.md NOTICE.md
|
|
|
|
%files -n jaxb-import-properties-plugin -f %{base_name}/.mfiles-import-properties-plugin
|
|
%license LICENSE.md NOTICE.md
|
|
|
|
%files buildtools -f %{base_name}/.mfiles-istack-commons-buildtools
|
|
%license LICENSE.md NOTICE.md
|
|
|
|
%files runtime -f %{base_name}/.mfiles-istack-commons-runtime
|
|
%license LICENSE.md NOTICE.md
|
|
|
|
%files soimp -f %{base_name}/.mfiles-istack-commons-soimp
|
|
%license LICENSE.md NOTICE.md
|
|
|
|
%files test -f %{base_name}/.mfiles-istack-commons-test
|
|
%license LICENSE.md NOTICE.md
|
|
|
|
%files tools -f %{base_name}/.mfiles-istack-commons-tools
|
|
%license LICENSE.md NOTICE.md
|
|
|
|
%if 0
|
|
%files javadoc -f %{base_name}/.mfiles-javadoc
|
|
%license LICENSE.md NOTICE.md
|
|
%endif
|
|
|
|
%changelog
|