Initial build
Related: rhbz#2140568
This commit is contained in:
parent
af2fee0c2f
commit
9d0c2c6adc
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/jaxb-istack-commons-4.1.1.tar.gz
|
7
gating.yaml
Normal file
7
gating.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-9
|
||||
decision_contexts:
|
||||
- osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
109
jaxb-istack-commons.spec
Normal file
109
jaxb-istack-commons.spec
Normal file
@ -0,0 +1,109 @@
|
||||
Name: jaxb-istack-commons
|
||||
Version: 4.1.1
|
||||
Release: 1%{?dist}
|
||||
Summary: iStack Common Utility Code
|
||||
License: BSD
|
||||
URL: https://github.com/eclipse-ee4j/jaxb-istack-commons
|
||||
BuildArch: noarch
|
||||
|
||||
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(jakarta.activation:jakarta.activation-api:2.1.0)
|
||||
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-assembly-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-failsafe-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.mojo:build-helper-maven-plugin)
|
||||
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
|
||||
BuildRequires: mvn(org.testng:testng)
|
||||
|
||||
%description
|
||||
Code shared between JAXP, JAXB, SAAJ, and JAX-WS projects.
|
||||
|
||||
%package -n import-properties-plugin
|
||||
Summary: istack-commons import properties plugin
|
||||
|
||||
%description -n import-properties-plugin
|
||||
This package contains the istack-commons import properties Maven Mojo.
|
||||
|
||||
%package -n istack-commons-runtime
|
||||
Summary: istack-commons runtime
|
||||
|
||||
%description -n istack-commons-runtime
|
||||
This package contains istack-commons runtime.
|
||||
|
||||
%package -n istack-commons-tools
|
||||
Summary: istack-commons tools
|
||||
|
||||
%description -n istack-commons-tools
|
||||
This package contains istack-commons tools.
|
||||
|
||||
%package -n istack-commons-test
|
||||
Summary: istack-commons test
|
||||
|
||||
%description -n istack-commons-test
|
||||
This package contains istack-commons test.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
pushd istack-commons
|
||||
|
||||
find -name 'module-info.java' -type f -delete
|
||||
|
||||
%pom_remove_parent
|
||||
|
||||
%pom_remove_plugin :buildnumber-maven-plugin
|
||||
%pom_remove_plugin :glassfish-copyright-maven-plugin
|
||||
%pom_remove_plugin :maven-enforcer-plugin
|
||||
%pom_remove_plugin :maven-javadoc-plugin . test tools
|
||||
%pom_remove_plugin :maven-source-plugin
|
||||
%pom_remove_plugin :spotbugs-maven-plugin
|
||||
|
||||
# Missing dependency on args4j
|
||||
%pom_disable_module soimp
|
||||
|
||||
%pom_disable_module buildtools
|
||||
%pom_disable_module maven-plugin
|
||||
|
||||
%mvn_package :istack-commons __noinstall
|
||||
|
||||
# Compatibility
|
||||
%mvn_alias :istack-commons-maven-plugin com.sun.istack:maven-istack-commons-plugin
|
||||
popd
|
||||
|
||||
%build
|
||||
pushd istack-commons
|
||||
# Javadoc fails on module.info files: "error: too many module declarations found"
|
||||
%mvn_build -f -s -j
|
||||
popd
|
||||
|
||||
%install
|
||||
pushd istack-commons
|
||||
%mvn_install
|
||||
popd
|
||||
|
||||
%files -n import-properties-plugin -f istack-commons/.mfiles-import-properties-plugin
|
||||
%license LICENSE.md NOTICE.md
|
||||
%files -n istack-commons-runtime -f istack-commons/.mfiles-istack-commons-runtime
|
||||
%license LICENSE.md NOTICE.md
|
||||
%files -n istack-commons-tools -f istack-commons/.mfiles-istack-commons-tools
|
||||
%license LICENSE.md NOTICE.md
|
||||
%files -n istack-commons-test -f istack-commons/.mfiles-istack-commons-test
|
||||
%license LICENSE.md NOTICE.md
|
||||
|
||||
%changelog
|
||||
* Tue Jan 17 2023 Marian Koncek <mkoncek@redhat.com> - 4.1.1-1
|
||||
- Initial build
|
31
plans/Smoke.java
Normal file
31
plans/Smoke.java
Normal file
@ -0,0 +1,31 @@
|
||||
import com.sun.istack.ByteArrayDataSource;
|
||||
import com.sun.istack.FinalArrayList;
|
||||
import com.sun.istack.NotNull;
|
||||
import com.sun.istack.Nullable;
|
||||
import com.sun.istack.Pool;
|
||||
import com.sun.istack.SAXException2;
|
||||
import com.sun.istack.SAXParseException2;
|
||||
import com.sun.istack.XMLStreamReaderToContentHandler;
|
||||
|
||||
import com.sun.istack.tools.DefaultAuthenticator;
|
||||
import com.sun.istack.tools.MaskingClassLoader;
|
||||
import com.sun.istack.tools.ProtectedTask;
|
||||
|
||||
public class Smoke
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
System.out.println(ByteArrayDataSource.class.getCanonicalName());
|
||||
System.out.println(FinalArrayList.class.getCanonicalName());
|
||||
System.out.println(NotNull.class.getCanonicalName());
|
||||
System.out.println(Nullable.class.getCanonicalName());
|
||||
System.out.println(Pool.class.getCanonicalName());
|
||||
System.out.println(SAXException2.class.getCanonicalName());
|
||||
System.out.println(SAXParseException2.class.getCanonicalName());
|
||||
System.out.println(XMLStreamReaderToContentHandler.class.getCanonicalName());
|
||||
|
||||
System.out.println(DefaultAuthenticator.class.getCanonicalName());
|
||||
System.out.println(MaskingClassLoader.class.getCanonicalName());
|
||||
System.out.println(ProtectedTask.class.getCanonicalName());
|
||||
}
|
||||
}
|
21
plans/smoke.fmf
Normal file
21
plans/smoke.fmf
Normal file
@ -0,0 +1,21 @@
|
||||
summary: Basic smoke test
|
||||
prepare:
|
||||
how: install
|
||||
package:
|
||||
- ant
|
||||
- java-11-openjdk-devel
|
||||
- xmvn-tools
|
||||
discover:
|
||||
how: shell
|
||||
tests:
|
||||
- name: /smoke/classpath-import
|
||||
test: |
|
||||
CLASSPATH+=":$(xmvn-resolve org.apache.ant:ant)"
|
||||
CLASSPATH+=":$(xmvn-resolve jakarta.activation:jakarta.activation-api:2)"
|
||||
CLASSPATH+=":$(xmvn-resolve com.sun.istack:istack-commons-runtime)"
|
||||
CLASSPATH+=":$(xmvn-resolve com.sun.istack:istack-commons-tools)"
|
||||
export CLASSPATH
|
||||
/usr/lib/jvm/java-11-openjdk/bin/javac plans/Smoke.java
|
||||
/usr/lib/jvm/java-11-openjdk/bin/java -cp "${CLASSPATH}:plans" Smoke
|
||||
execute:
|
||||
how: tmt
|
Loading…
Reference in New Issue
Block a user