Compare commits
No commits in common. "c8-stream-201902" and "c9-beta" have entirely different histories.
c8-stream-
...
c9-beta
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/5.3.1.tar.gz
|
SOURCES/6.4.0.tar.gz
|
||||||
|
@ -1 +1 @@
|
|||||||
4814361a6ea3fd5d427be7a3110c84cee621ed2f SOURCES/5.3.1.tar.gz
|
deb1a7f4b84ee8a2c578ec60d9aba3989a764e0d SOURCES/6.4.0.tar.gz
|
||||||
|
@ -1,245 +0,0 @@
|
|||||||
From 760c3e7a568295ded8229b06e651915c78475ccd Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
|
||||||
Date: Fri, 26 Apr 2019 00:50:00 +0200
|
|
||||||
Subject: [PATCH 1/3] Move python modules under java-utils directory
|
|
||||||
|
|
||||||
---
|
|
||||||
depgenerators/javadoc.req | 3 +++
|
|
||||||
depgenerators/maven.prov | 2 ++
|
|
||||||
depgenerators/maven.req | 2 ++
|
|
||||||
depgenerators/osgi.prov | 2 ++
|
|
||||||
depgenerators/osgi.req | 2 ++
|
|
||||||
java-utils/builddep.py | 2 ++
|
|
||||||
java-utils/maven_depmap.py | 2 ++
|
|
||||||
java-utils/mvn_alias.py | 2 ++
|
|
||||||
java-utils/mvn_artifact.py | 4 +++-
|
|
||||||
java-utils/mvn_build.py | 2 ++
|
|
||||||
java-utils/mvn_compat_version.py | 2 ++
|
|
||||||
java-utils/mvn_config.py | 2 ++
|
|
||||||
java-utils/mvn_file.py | 2 ++
|
|
||||||
java-utils/mvn_package.py | 2 ++
|
|
||||||
java-utils/pom_editor.py | 2 ++
|
|
||||||
java-utils/request-artifact.py | 2 ++
|
|
||||||
16 files changed, 34 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/depgenerators/javadoc.req b/depgenerators/javadoc.req
|
|
||||||
index 4d182e2e..8528ee05 100755
|
|
||||||
--- a/depgenerators/javadoc.req
|
|
||||||
+++ b/depgenerators/javadoc.req
|
|
||||||
@@ -32,6 +32,9 @@
|
|
||||||
# Authors: Michael Simacek <msimacek@redhat.com>
|
|
||||||
# Michal Srb <msrb@redhat.com>
|
|
||||||
|
|
||||||
+import sys
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.common.config import get_config
|
|
||||||
|
|
||||||
config = get_config()
|
|
||||||
diff --git a/depgenerators/maven.prov b/depgenerators/maven.prov
|
|
||||||
index 1448cbf6..c794dbea 100755
|
|
||||||
--- a/depgenerators/maven.prov
|
|
||||||
+++ b/depgenerators/maven.prov
|
|
||||||
@@ -34,6 +34,8 @@
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import traceback
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.cache.metadata import MetadataCache
|
|
||||||
from javapackages.common.util import kill_parent_process, init_rpmgen, get_logger
|
|
||||||
|
|
||||||
diff --git a/depgenerators/maven.req b/depgenerators/maven.req
|
|
||||||
index b3597f78..912d5f98 100755
|
|
||||||
--- a/depgenerators/maven.req
|
|
||||||
+++ b/depgenerators/maven.req
|
|
||||||
@@ -37,6 +37,8 @@ import re
|
|
||||||
import sys
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.common.config import get_config
|
|
||||||
from javapackages.common.util import (kill_parent_process,
|
|
||||||
init_rpmgen,
|
|
||||||
diff --git a/depgenerators/osgi.prov b/depgenerators/osgi.prov
|
|
||||||
index baef6e48..7ed423a2 100755
|
|
||||||
--- a/depgenerators/osgi.prov
|
|
||||||
+++ b/depgenerators/osgi.prov
|
|
||||||
@@ -34,6 +34,8 @@
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
import traceback
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.cache.osgi import OSGiCache
|
|
||||||
from javapackages.common.util import kill_parent_process, init_rpmgen, get_logger
|
|
||||||
|
|
||||||
diff --git a/depgenerators/osgi.req b/depgenerators/osgi.req
|
|
||||||
index 3cb53302..79dcaaa8 100755
|
|
||||||
--- a/depgenerators/osgi.req
|
|
||||||
+++ b/depgenerators/osgi.req
|
|
||||||
@@ -34,6 +34,8 @@
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
import traceback
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.cache.osgi import OSGiCache
|
|
||||||
from javapackages.common.util import kill_parent_process, init_rpmgen, get_logger
|
|
||||||
|
|
||||||
diff --git a/java-utils/builddep.py b/java-utils/builddep.py
|
|
||||||
index fda36d2d..48d0963d 100644
|
|
||||||
--- a/java-utils/builddep.py
|
|
||||||
+++ b/java-utils/builddep.py
|
|
||||||
@@ -33,6 +33,8 @@
|
|
||||||
import optparse
|
|
||||||
import sys
|
|
||||||
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.maven.artifact import (Artifact, ArtifactFormatException,
|
|
||||||
ArtifactValidationException)
|
|
||||||
from javapackages.common.util import args_to_unicode
|
|
||||||
diff --git a/java-utils/maven_depmap.py b/java-utils/maven_depmap.py
|
|
||||||
index 92e0ff4c..9f1472a6 100644
|
|
||||||
--- a/java-utils/maven_depmap.py
|
|
||||||
+++ b/java-utils/maven_depmap.py
|
|
||||||
@@ -46,6 +46,8 @@ import zipfile
|
|
||||||
from time import gmtime, strftime
|
|
||||||
from copy import deepcopy
|
|
||||||
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.maven.pom import POM
|
|
||||||
from javapackages.metadata.artifact import MetadataArtifact
|
|
||||||
from javapackages.metadata.alias import MetadataAlias
|
|
||||||
diff --git a/java-utils/mvn_alias.py b/java-utils/mvn_alias.py
|
|
||||||
index 4979a17a..962a35f0 100644
|
|
||||||
--- a/java-utils/mvn_alias.py
|
|
||||||
+++ b/java-utils/mvn_alias.py
|
|
||||||
@@ -33,6 +33,8 @@
|
|
||||||
import optparse
|
|
||||||
import sys
|
|
||||||
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.maven.artifact import (Artifact, ArtifactFormatException,
|
|
||||||
ArtifactValidationException)
|
|
||||||
from javapackages.xmvn.xmvn_config import XMvnConfig
|
|
||||||
diff --git a/java-utils/mvn_artifact.py b/java-utils/mvn_artifact.py
|
|
||||||
index d135adf2..51339d4b 100644
|
|
||||||
--- a/java-utils/mvn_artifact.py
|
|
||||||
+++ b/java-utils/mvn_artifact.py
|
|
||||||
@@ -32,6 +32,9 @@
|
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
+import sys
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.metadata.metadata import Metadata
|
|
||||||
from javapackages.metadata.artifact import MetadataArtifact
|
|
||||||
from javapackages.metadata.dependency import MetadataDependency
|
|
||||||
@@ -45,7 +48,6 @@ from javapackages.xmvn.xmvn_resolve import (XMvnResolve, ResolutionRequest,
|
|
||||||
from javapackages.common.util import args_to_unicode
|
|
||||||
from javapackages.common.exception import JavaPackagesToolsException
|
|
||||||
|
|
||||||
-import sys
|
|
||||||
import os
|
|
||||||
import lxml.etree
|
|
||||||
from optparse import OptionParser
|
|
||||||
diff --git a/java-utils/mvn_build.py b/java-utils/mvn_build.py
|
|
||||||
index 98479962..4d5f54f7 100644
|
|
||||||
--- a/java-utils/mvn_build.py
|
|
||||||
+++ b/java-utils/mvn_build.py
|
|
||||||
@@ -37,6 +37,8 @@ import optparse
|
|
||||||
import subprocess
|
|
||||||
import sys
|
|
||||||
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.maven.artifact import Artifact
|
|
||||||
from javapackages.xmvn.xmvn_config import XMvnConfig
|
|
||||||
from javapackages.common.util import args_to_unicode, command_exists
|
|
||||||
diff --git a/java-utils/mvn_compat_version.py b/java-utils/mvn_compat_version.py
|
|
||||||
index e4afdbd7..d63dcf99 100644
|
|
||||||
--- a/java-utils/mvn_compat_version.py
|
|
||||||
+++ b/java-utils/mvn_compat_version.py
|
|
||||||
@@ -33,6 +33,8 @@
|
|
||||||
import optparse
|
|
||||||
import sys
|
|
||||||
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.maven.artifact import (Artifact, ArtifactFormatException,
|
|
||||||
ArtifactValidationException)
|
|
||||||
from javapackages.xmvn.xmvn_config import XMvnConfig
|
|
||||||
diff --git a/java-utils/mvn_config.py b/java-utils/mvn_config.py
|
|
||||||
index 7597761e..f7930985 100644
|
|
||||||
--- a/java-utils/mvn_config.py
|
|
||||||
+++ b/java-utils/mvn_config.py
|
|
||||||
@@ -33,6 +33,8 @@
|
|
||||||
import sys
|
|
||||||
import optparse
|
|
||||||
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.xmvn.xmvn_config import XMvnConfig
|
|
||||||
from javapackages.common.util import args_to_unicode
|
|
||||||
from javapackages.common.exception import JavaPackagesToolsException
|
|
||||||
diff --git a/java-utils/mvn_file.py b/java-utils/mvn_file.py
|
|
||||||
index 39d1348f..40ae156e 100644
|
|
||||||
--- a/java-utils/mvn_file.py
|
|
||||||
+++ b/java-utils/mvn_file.py
|
|
||||||
@@ -33,6 +33,8 @@
|
|
||||||
import optparse
|
|
||||||
import sys
|
|
||||||
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.maven.artifact import (Artifact, ArtifactFormatException,
|
|
||||||
ArtifactValidationException)
|
|
||||||
from javapackages.xmvn.xmvn_config import XMvnConfig, XMvnConfigException
|
|
||||||
diff --git a/java-utils/mvn_package.py b/java-utils/mvn_package.py
|
|
||||||
index b74da128..2a2f4619 100644
|
|
||||||
--- a/java-utils/mvn_package.py
|
|
||||||
+++ b/java-utils/mvn_package.py
|
|
||||||
@@ -33,6 +33,8 @@
|
|
||||||
import optparse
|
|
||||||
import sys
|
|
||||||
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.maven.artifact import (Artifact, ArtifactFormatException,
|
|
||||||
ArtifactValidationException)
|
|
||||||
from javapackages.xmvn.xmvn_config import XMvnConfig
|
|
||||||
diff --git a/java-utils/pom_editor.py b/java-utils/pom_editor.py
|
|
||||||
index 82a555b8..6c09665c 100644
|
|
||||||
--- a/java-utils/pom_editor.py
|
|
||||||
+++ b/java-utils/pom_editor.py
|
|
||||||
@@ -11,6 +11,8 @@ import io
|
|
||||||
from lxml import etree
|
|
||||||
from os import path
|
|
||||||
from textwrap import dedent
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.common.exception import JavaPackagesToolsException
|
|
||||||
|
|
||||||
# all macro fuctions that can be called from external world
|
|
||||||
diff --git a/java-utils/request-artifact.py b/java-utils/request-artifact.py
|
|
||||||
index 68cb1119..55dfd985 100644
|
|
||||||
--- a/java-utils/request-artifact.py
|
|
||||||
+++ b/java-utils/request-artifact.py
|
|
||||||
@@ -35,6 +35,8 @@ from __future__ import print_function
|
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
+sys.path.insert(0, '/usr/share/java-utils/')
|
|
||||||
+sys.path.insert(0, '/opt/rh/rh-maven36/root/usr/share/java-utils/')
|
|
||||||
from javapackages.common.mock import (InstallationException, ConnectionException,
|
|
||||||
install_maven_artifact)
|
|
||||||
|
|
||||||
--
|
|
||||||
2.21.0
|
|
||||||
|
|
@ -1,48 +0,0 @@
|
|||||||
From 48f5467fea8006cf0fe091d28fd879e6aed5a4b1 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
|
||||||
Date: Fri, 28 Jun 2019 14:53:26 +0200
|
|
||||||
Subject: [PATCH 2/3] Enable namespaced dependency generation
|
|
||||||
|
|
||||||
---
|
|
||||||
depgenerators/fileattrs/javadoc.attr | 2 +-
|
|
||||||
depgenerators/fileattrs/maven.attr | 4 ++--
|
|
||||||
depgenerators/fileattrs/osgi.attr | 6 +++---
|
|
||||||
3 files changed, 6 insertions(+), 6 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/depgenerators/fileattrs/javadoc.attr b/depgenerators/fileattrs/javadoc.attr
|
|
||||||
index bdaeffa5..109b8015 100644
|
|
||||||
--- a/depgenerators/fileattrs/javadoc.attr
|
|
||||||
+++ b/depgenerators/fileattrs/javadoc.attr
|
|
||||||
@@ -1,3 +1,3 @@
|
|
||||||
%__javadoc_requires %{?scl:@{javadir}-utils/scl-enable %{?scl_maven} %{scl} -- }%{_rpmconfigdir}/javadoc@{scl_suffix}.req
|
|
||||||
-%__javadoc_requires_opts %{?scl:--scl %{?scl}}
|
|
||||||
+%__javadoc_requires_opts %{?scl:--scl %{scl}} %{?module_prefix:--scl %{_module_name}-%{_module_stream}}
|
|
||||||
%__javadoc_path ^%{_javadocdir}/.[^/]*$
|
|
||||||
diff --git a/depgenerators/fileattrs/maven.attr b/depgenerators/fileattrs/maven.attr
|
|
||||||
index 2f722eb1..44644ca5 100644
|
|
||||||
--- a/depgenerators/fileattrs/maven.attr
|
|
||||||
+++ b/depgenerators/fileattrs/maven.attr
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
%__maven_provides %{?scl:@{javadir}-utils/scl-enable %{?scl_maven} %{scl} -- }%{_rpmconfigdir}/maven@{scl_suffix}.prov
|
|
||||||
-%__maven_provides_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))} %{?scl:--scl %{?scl}}
|
|
||||||
+%__maven_provides_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))} %{?scl:--scl %{?scl}} %{?module_prefix:--scl %{_module_name}-%{_module_stream}}
|
|
||||||
%__maven_requires %{?scl:@{javadir}-utils/scl-enable %{?scl_maven} %{scl} -- }%{_rpmconfigdir}/maven@{scl_suffix}.req
|
|
||||||
-%__maven_requires_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))} %{?scl:--scl %{?scl}}
|
|
||||||
+%__maven_requires_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))} %{?scl:--scl %{?scl}} %{?module_prefix:--scl %{_module_name}-%{_module_stream}}
|
|
||||||
%__maven_path ^%{_datadir}/maven-metadata/.*
|
|
||||||
diff --git a/depgenerators/fileattrs/osgi.attr b/depgenerators/fileattrs/osgi.attr
|
|
||||||
index 7c3ea03d..3ccc8b65 100644
|
|
||||||
--- a/depgenerators/fileattrs/osgi.attr
|
|
||||||
+++ b/depgenerators/fileattrs/osgi.attr
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
%__osgi_provides %{?scl:@{javadir}-utils/scl-enable %{?scl_maven} %{scl} -- }%{_rpmconfigdir}/osgi@{scl_suffix}.prov
|
|
||||||
-%__osgi_provides_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))} %{?scl:--scl %{?scl}}
|
|
||||||
-%__osgi_requires %{!?scl:%{_rpmconfigdir}/osgi@{scl_suffix}.req}%{?scl:%{_root_bindir}/true}
|
|
||||||
-%__osgi_requires_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))} %{?scl:--scl %{?scl}}
|
|
||||||
+%__osgi_provides_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))} %{?scl:--scl %{?scl}} %{?module_prefix:--scl %{_module_name}-%{_module_stream}}
|
|
||||||
+%__osgi_requires %{!?module_prefix:%{_rpmconfigdir}/osgi@{scl_suffix}.req}%{?module_prefix:true}
|
|
||||||
+%__osgi_requires_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))}
|
|
||||||
%__osgi_path ^(.*\\.jar|((%{_prefix}/lib(64)?|%{_datadir})/.*/META-INF/MANIFEST.MF))$
|
|
||||||
--
|
|
||||||
2.21.0
|
|
||||||
|
|
@ -1,67 +0,0 @@
|
|||||||
From 0b0f93a4bc050a67e6885a647270a716f3d9cdce Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
|
||||||
Date: Mon, 2 Sep 2019 18:10:01 +0200
|
|
||||||
Subject: [PATCH 3/3] Fix use of illegal characters in rpmfc generator names
|
|
||||||
|
|
||||||
---
|
|
||||||
configure-base.sh | 2 +-
|
|
||||||
depgenerators/fileattrs/javadoc.attr | 6 +++---
|
|
||||||
depgenerators/fileattrs/maven.attr | 10 +++++-----
|
|
||||||
depgenerators/fileattrs/osgi.attr | 10 +++++-----
|
|
||||||
4 files changed, 14 insertions(+), 14 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/configure-base.sh b/configure-base.sh
|
|
||||||
index dbfc3e05..4b5a9172 100644
|
|
||||||
--- a/configure-base.sh
|
|
||||||
+++ b/configure-base.sh
|
|
||||||
@@ -64,5 +64,5 @@ test -z "${default_jdk}" && default_jdk="${jvmdir}/java"
|
|
||||||
test -z "${default_jre}" && default_jre="${jvmdir}/jre"
|
|
||||||
|
|
||||||
test -z "${scl_root_relative}" -a -n "${scl_root}" && scl_root_relative=$(sed "s:^/*::" <<<"${scl_root}")
|
|
||||||
-scl_suffix="${scl:+.$scl}"
|
|
||||||
+scl_suffix="${scl:+_${scl//-/_}}"
|
|
||||||
return 0
|
|
||||||
diff --git a/depgenerators/fileattrs/javadoc.attr b/depgenerators/fileattrs/javadoc.attr
|
|
||||||
index 109b8015..1f3a8475 100644
|
|
||||||
--- a/depgenerators/fileattrs/javadoc.attr
|
|
||||||
+++ b/depgenerators/fileattrs/javadoc.attr
|
|
||||||
@@ -1,3 +1,3 @@
|
|
||||||
-%__javadoc_requires %{?scl:@{javadir}-utils/scl-enable %{?scl_maven} %{scl} -- }%{_rpmconfigdir}/javadoc@{scl_suffix}.req
|
|
||||||
-%__javadoc_requires_opts %{?scl:--scl %{scl}} %{?module_prefix:--scl %{_module_name}-%{_module_stream}}
|
|
||||||
-%__javadoc_path ^%{_javadocdir}/.[^/]*$
|
|
||||||
+%__javadoc@{scl_suffix}_requires %{?scl:@{javadir}-utils/scl-enable %{?scl_maven} %{scl} -- }%{_rpmconfigdir}/javadoc@{scl_suffix}.req
|
|
||||||
+%__javadoc@{scl_suffix}_requires_opts %{?scl:--scl %{scl}} %{?module_prefix:--scl %{_module_name}-%{_module_stream}}
|
|
||||||
+%__javadoc@{scl_suffix}_path ^%{_javadocdir}/.[^/]*$
|
|
||||||
diff --git a/depgenerators/fileattrs/maven.attr b/depgenerators/fileattrs/maven.attr
|
|
||||||
index 44644ca5..26026658 100644
|
|
||||||
--- a/depgenerators/fileattrs/maven.attr
|
|
||||||
+++ b/depgenerators/fileattrs/maven.attr
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
-%__maven_provides %{?scl:@{javadir}-utils/scl-enable %{?scl_maven} %{scl} -- }%{_rpmconfigdir}/maven@{scl_suffix}.prov
|
|
||||||
-%__maven_provides_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))} %{?scl:--scl %{?scl}} %{?module_prefix:--scl %{_module_name}-%{_module_stream}}
|
|
||||||
-%__maven_requires %{?scl:@{javadir}-utils/scl-enable %{?scl_maven} %{scl} -- }%{_rpmconfigdir}/maven@{scl_suffix}.req
|
|
||||||
-%__maven_requires_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))} %{?scl:--scl %{?scl}} %{?module_prefix:--scl %{_module_name}-%{_module_stream}}
|
|
||||||
-%__maven_path ^%{_datadir}/maven-metadata/.*
|
|
||||||
+%__maven@{scl_suffix}_provides %{?scl:@{javadir}-utils/scl-enable %{?scl_maven} %{scl} -- }%{_rpmconfigdir}/maven@{scl_suffix}.prov
|
|
||||||
+%__maven@{scl_suffix}_provides_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))} %{?scl:--scl %{?scl}} %{?module_prefix:--scl %{_module_name}-%{_module_stream}}
|
|
||||||
+%__maven@{scl_suffix}_requires %{?scl:@{javadir}-utils/scl-enable %{?scl_maven} %{scl} -- }%{_rpmconfigdir}/maven@{scl_suffix}.req
|
|
||||||
+%__maven@{scl_suffix}_requires_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))} %{?scl:--scl %{?scl}} %{?module_prefix:--scl %{_module_name}-%{_module_stream}}
|
|
||||||
+%__maven@{scl_suffix}_path ^%{_datadir}/maven-metadata/.*
|
|
||||||
diff --git a/depgenerators/fileattrs/osgi.attr b/depgenerators/fileattrs/osgi.attr
|
|
||||||
index 3ccc8b65..8b0f15f7 100644
|
|
||||||
--- a/depgenerators/fileattrs/osgi.attr
|
|
||||||
+++ b/depgenerators/fileattrs/osgi.attr
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
-%__osgi_provides %{?scl:@{javadir}-utils/scl-enable %{?scl_maven} %{scl} -- }%{_rpmconfigdir}/osgi@{scl_suffix}.prov
|
|
||||||
-%__osgi_provides_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))} %{?scl:--scl %{?scl}} %{?module_prefix:--scl %{_module_name}-%{_module_stream}}
|
|
||||||
-%__osgi_requires %{!?module_prefix:%{_rpmconfigdir}/osgi@{scl_suffix}.req}%{?module_prefix:true}
|
|
||||||
-%__osgi_requires_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))}
|
|
||||||
-%__osgi_path ^(.*\\.jar|((%{_prefix}/lib(64)?|%{_datadir})/.*/META-INF/MANIFEST.MF))$
|
|
||||||
+%__osgi@{scl_suffix}_provides %{?scl:@{javadir}-utils/scl-enable %{?scl_maven} %{scl} -- }%{_rpmconfigdir}/osgi@{scl_suffix}.prov
|
|
||||||
+%__osgi@{scl_suffix}_provides_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))} %{?scl:--scl %{?scl}} %{?module_prefix:--scl %{_module_name}-%{_module_stream}}
|
|
||||||
+%__osgi@{scl_suffix}_requires %{!?module_prefix:%{_rpmconfigdir}/osgi@{scl_suffix}.req}%{?module_prefix:true}
|
|
||||||
+%__osgi@{scl_suffix}_requires_opts --cachedir %{_builddir}/%{?buildsubdir} --rpm-pid %{lua:print(math.floor(posix.getprocessid("pid")))}
|
|
||||||
+%__osgi@{scl_suffix}_path ^(.*\\.jar|((%{_prefix}/lib(64)?|%{_datadir})/.*/META-INF/MANIFEST.MF))$
|
|
||||||
--
|
|
||||||
2.21.0
|
|
||||||
|
|
18
SOURCES/javapackages-config.json
Normal file
18
SOURCES/javapackages-config.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"maven.req": {
|
||||||
|
"always_generate": [
|
||||||
|
"javapackages-filesystem"
|
||||||
|
],
|
||||||
|
"java_requires": {
|
||||||
|
"skip": true
|
||||||
|
},
|
||||||
|
"java_devel_requires": {
|
||||||
|
"skip": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"javadoc.req": {
|
||||||
|
"always_generate": [
|
||||||
|
"javapackages-filesystem"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
@ -1,29 +0,0 @@
|
|||||||
<configuration>
|
|
||||||
<resolverSettings>
|
|
||||||
<ignoreDuplicateMetadata>false</ignoreDuplicateMetadata>
|
|
||||||
</resolverSettings>
|
|
||||||
<artifactManagement>
|
|
||||||
<rule>
|
|
||||||
<artifactGlob>
|
|
||||||
<artifactId>{*}</artifactId>
|
|
||||||
</artifactGlob>
|
|
||||||
<files>
|
|
||||||
<file>@{mns}/@1</file>
|
|
||||||
</files>
|
|
||||||
</rule>
|
|
||||||
</artifactManagement>
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>install-@{mns}</id>
|
|
||||||
<type>compound</type>
|
|
||||||
<properties>
|
|
||||||
<namespace>@{mns}</namespace>
|
|
||||||
</properties>
|
|
||||||
<configuration>
|
|
||||||
<repositories>
|
|
||||||
<repository>base-install</repository>
|
|
||||||
</repositories>
|
|
||||||
</configuration>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
</configuration>
|
|
@ -1,11 +0,0 @@
|
|||||||
<toolchains>
|
|
||||||
<toolchain>
|
|
||||||
<type>jdk</type>
|
|
||||||
<provides>
|
|
||||||
<xmvn>xmvn</xmvn>
|
|
||||||
</provides>
|
|
||||||
<configuration>
|
|
||||||
<jdkHome>/usr/lib/jvm/java-1.8.0-openjdk</jdkHome>
|
|
||||||
</configuration>
|
|
||||||
</toolchain>
|
|
||||||
</toolchains>
|
|
@ -1,66 +1,40 @@
|
|||||||
# Don't generate requires on jpackage-utils and java-headless for
|
%if 0%{?fedora}
|
||||||
# provided pseudo-artifacts: com.sun:tools and sun.jdk:jconsole.
|
%bcond_without ivy
|
||||||
%global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}/maven-metadata/javapackages-metadata.xml$
|
|
||||||
|
|
||||||
# Disable automatic bytecode compilation for files in java-utils
|
|
||||||
# https://fedoraproject.org/wiki/Packaging:Python_Appendix#Manual_byte_compilation
|
|
||||||
%global _python_bytecompile_extra 0
|
|
||||||
|
|
||||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
||||||
%global python_prefix python3
|
|
||||||
%global python_interpreter %{?__python3}%{!?__python3:dummy}
|
|
||||||
%global python_sitelib %{python3_sitelib}
|
|
||||||
%else
|
%else
|
||||||
%global python_prefix python
|
%bcond_with ivy
|
||||||
%global python_interpreter %{?__python2}%{!?__python2:dummy}
|
|
||||||
%global python_sitelib %{_prefix}/lib/python2.7/site-packages
|
|
||||||
%global rpmmacrodir /etc/rpm
|
|
||||||
# Turn off the brp-python-bytecompile script
|
|
||||||
%global __os_install_post %(echo '%{__os_install_post}' | sed -e /python-bytecompile/d)
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global default_jdk %{?_root_prefix}%{!?_root_prefix:%{_prefix}}/lib/jvm/java-11-openjdk
|
%global python_prefix python3
|
||||||
%global default_jre %{?_root_prefix}%{!?_root_prefix:%{_prefix}}/lib/jvm/jre-11-openjdk
|
%global python_interpreter %{?__python3}%{!?__python3:dummy}
|
||||||
|
|
||||||
|
%global maven_home %{_usr}/share/xmvn
|
||||||
|
|
||||||
|
%global _jpbindingdir %{_datadir}/jpbinding
|
||||||
|
|
||||||
Name: javapackages-tools
|
Name: javapackages-tools
|
||||||
Version: 5.3.1
|
Version: 6.4.0
|
||||||
Release: 7%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Macros and scripts for Java packaging support
|
Summary: Macros and scripts for Java packaging support
|
||||||
License: BSD
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/fedora-java/javapackages
|
URL: https://github.com/fedora-java/javapackages
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Source0: https://github.com/fedora-java/javapackages/archive/%{version}.tar.gz
|
Source0: https://github.com/fedora-java/javapackages/archive/%{version}.tar.gz
|
||||||
Source1: module-config.xml
|
Source3: javapackages-config.json
|
||||||
Source2: toolchains-openjdk8.xml
|
|
||||||
|
|
||||||
Patch1: 0001-Move-python-modules-under-java-utils-directory.patch
|
|
||||||
Patch2: 0002-Enable-namespaced-dependency-generation.patch
|
|
||||||
Patch3: 0003-Fix-use-of-illegal-characters-in-rpmfc-generator-nam.patch
|
|
||||||
|
|
||||||
BuildRequires: coreutils
|
BuildRequires: coreutils
|
||||||
BuildRequires: which
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
BuildRequires: rubygem-asciidoctor
|
||||||
BuildRequires: %{python_prefix}-devel
|
BuildRequires: %{python_prefix}-devel
|
||||||
BuildRequires: %{python_prefix}-lxml
|
BuildRequires: %{python_prefix}-lxml
|
||||||
BuildRequires: %{python_prefix}-setuptools
|
BuildRequires: %{python_prefix}-setuptools
|
||||||
BuildRequires: %{python_prefix}-nose
|
BuildRequires: %{python_prefix}-pytest
|
||||||
BuildRequires: %{python_prefix}-six
|
|
||||||
|
|
||||||
Requires: javapackages-filesystem = %{version}-%{release}
|
Requires: javapackages-filesystem = %{version}-%{release}
|
||||||
Requires: coreutils
|
Requires: coreutils
|
||||||
Requires: findutils
|
Requires: findutils
|
||||||
Requires: which
|
|
||||||
# default JRE
|
|
||||||
Requires: java-11-openjdk-headless
|
|
||||||
|
|
||||||
Provides: jpackage-utils = %{version}-%{release}
|
Provides: jpackage-utils = %{version}-%{release}
|
||||||
# These could be generated automatically, but then we would need to
|
|
||||||
# depend on javapackages-local for dependency generator.
|
|
||||||
Provides: mvn(com.sun:tools) = SYSTEM
|
|
||||||
Provides: mvn(sun.jdk:jconsole) = SYSTEM
|
|
||||||
# XXX temp provide
|
|
||||||
Provides: java-headless = 1:11
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package provides macros and scripts to support Java packaging.
|
This package provides macros and scripts to support Java packaging.
|
||||||
@ -73,13 +47,14 @@ Provides: eclipse-filesystem = %{version}-%{release}
|
|||||||
This package provides some basic directories into which Java packages
|
This package provides some basic directories into which Java packages
|
||||||
install their content.
|
install their content.
|
||||||
|
|
||||||
%package -n maven-local
|
%package -n maven-local-openjdk8
|
||||||
Summary: Macros and scripts for Maven packaging support
|
Summary: Macros and scripts for Maven packaging support
|
||||||
|
Requires: java-1.8.0-openjdk-devel
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: javapackages-local = %{version}-%{release}
|
Requires: javapackages-local-openjdk8 = %{version}-%{release}
|
||||||
Requires: xmvn-minimal
|
Requires: xmvn-minimal
|
||||||
Requires: xmvn-mojo
|
Requires: xmvn-toolchain-openjdk8
|
||||||
Requires: xmvn-connector-aether
|
Requires: mvn(org.fedoraproject.xmvn:xmvn-mojo)
|
||||||
# Common Maven plugins required by almost every build. It wouldn't make
|
# Common Maven plugins required by almost every build. It wouldn't make
|
||||||
# sense to explicitly require them in every package built with Maven.
|
# sense to explicitly require them in every package built with Maven.
|
||||||
Requires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
|
Requires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
|
||||||
@ -87,10 +62,66 @@ Requires: mvn(org.apache.maven.plugins:maven-jar-plugin)
|
|||||||
Requires: mvn(org.apache.maven.plugins:maven-resources-plugin)
|
Requires: mvn(org.apache.maven.plugins:maven-resources-plugin)
|
||||||
Requires: mvn(org.apache.maven.plugins:maven-surefire-plugin)
|
Requires: mvn(org.apache.maven.plugins:maven-surefire-plugin)
|
||||||
|
|
||||||
%description -n maven-local
|
%description -n maven-local-openjdk8
|
||||||
This package provides macros and scripts to support packaging Maven artifacts.
|
This package provides macros and scripts to support packaging Maven artifacts.
|
||||||
|
|
||||||
|
%package -n maven-local-openjdk11
|
||||||
|
Summary: Macros and scripts for Maven packaging support
|
||||||
|
Obsoletes: maven-local < 6.3.0
|
||||||
|
Provides: maven-local = %{version}-%{release}
|
||||||
|
Requires: java-11-openjdk-devel
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: javapackages-local-openjdk11 = %{version}-%{release}
|
||||||
|
Requires: xmvn-minimal
|
||||||
|
Requires: xmvn-toolchain-openjdk11
|
||||||
|
Requires: mvn(org.fedoraproject.xmvn:xmvn-mojo)
|
||||||
|
# Common Maven plugins required by almost every build. It wouldn't make
|
||||||
|
# sense to explicitly require them in every package built with Maven.
|
||||||
|
Requires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
|
||||||
|
Requires: mvn(org.apache.maven.plugins:maven-jar-plugin)
|
||||||
|
Requires: mvn(org.apache.maven.plugins:maven-resources-plugin)
|
||||||
|
Requires: mvn(org.apache.maven.plugins:maven-surefire-plugin)
|
||||||
|
|
||||||
|
%description -n maven-local-openjdk11
|
||||||
|
This package provides macros and scripts to support packaging Maven artifacts.
|
||||||
|
|
||||||
|
%package -n maven-local-openjdk17
|
||||||
|
Summary: Macros and scripts for Maven packaging support
|
||||||
|
Requires: java-17-openjdk-devel
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: javapackages-local-openjdk17 = %{version}-%{release}
|
||||||
|
Requires: xmvn-minimal
|
||||||
|
Requires: xmvn-toolchain-openjdk17
|
||||||
|
Requires: mvn(org.fedoraproject.xmvn:xmvn-mojo)
|
||||||
|
# Common Maven plugins required by almost every build. It wouldn't make
|
||||||
|
# sense to explicitly require them in every package built with Maven.
|
||||||
|
Requires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
|
||||||
|
Requires: mvn(org.apache.maven.plugins:maven-jar-plugin)
|
||||||
|
Requires: mvn(org.apache.maven.plugins:maven-resources-plugin)
|
||||||
|
Requires: mvn(org.apache.maven.plugins:maven-surefire-plugin)
|
||||||
|
|
||||||
|
%description -n maven-local-openjdk17
|
||||||
|
This package provides macros and scripts to support packaging Maven artifacts.
|
||||||
|
|
||||||
|
%package -n maven-local-openjdk21
|
||||||
|
Summary: Macros and scripts for Maven packaging support
|
||||||
|
Requires: java-21-openjdk-devel
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: javapackages-local-openjdk21 = %{version}-%{release}
|
||||||
|
Requires: xmvn-minimal
|
||||||
|
Requires: xmvn-toolchain-openjdk21
|
||||||
|
Requires: mvn(org.fedoraproject.xmvn:xmvn-mojo)
|
||||||
|
# Common Maven plugins required by almost every build. It wouldn't make
|
||||||
|
# sense to explicitly require them in every package built with Maven.
|
||||||
|
Requires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
|
||||||
|
Requires: mvn(org.apache.maven.plugins:maven-jar-plugin)
|
||||||
|
Requires: mvn(org.apache.maven.plugins:maven-resources-plugin)
|
||||||
|
Requires: mvn(org.apache.maven.plugins:maven-surefire-plugin)
|
||||||
|
|
||||||
|
%description -n maven-local-openjdk21
|
||||||
|
This package provides macros and scripts to support packaging Maven artifacts.
|
||||||
|
|
||||||
|
%if %{with ivy}
|
||||||
%package -n ivy-local
|
%package -n ivy-local
|
||||||
Summary: Local mode for Apache Ivy
|
Summary: Local mode for Apache Ivy
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -101,101 +132,278 @@ Requires: xmvn-connector-ivy
|
|||||||
%description -n ivy-local
|
%description -n ivy-local
|
||||||
This package implements local mode for Apache Ivy, which allows
|
This package implements local mode for Apache Ivy, which allows
|
||||||
artifact resolution using XMvn resolver.
|
artifact resolution using XMvn resolver.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package -n javapackages-local
|
%package -n %{python_prefix}-javapackages
|
||||||
Summary: Non-essential macros and scripts for Java packaging support
|
Summary: Module for handling various files for Java packaging
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
Requires: xmvn-install
|
|
||||||
Requires: xmvn-subst
|
|
||||||
Requires: xmvn-resolve
|
|
||||||
# Java build systems don't have hard requirement on java-devel, so it should be there
|
|
||||||
Requires: java-11-openjdk-devel
|
|
||||||
Requires: %{python_interpreter}
|
|
||||||
Requires: %{python_prefix}-lxml
|
Requires: %{python_prefix}-lxml
|
||||||
Requires: %{python_prefix}-six
|
|
||||||
Obsoletes: %{python_prefix}-javapackages < %{version}-%{release}
|
|
||||||
Obsoletes: python-javapackages < %{version}-%{release}
|
|
||||||
# XXX temp provide
|
|
||||||
Provides: java-devel = 1:11
|
|
||||||
|
|
||||||
%description -n javapackages-local
|
%description -n %{python_prefix}-javapackages
|
||||||
|
Module for handling, querying and manipulating of various files for Java
|
||||||
|
packaging in Linux distributions
|
||||||
|
|
||||||
|
%package -n javapackages-local-openjdk8
|
||||||
|
Summary: Non-essential macros and scripts for Java packaging support
|
||||||
|
Requires: javapackages-common = %{version}-%{release}
|
||||||
|
Requires: xmvn-tools
|
||||||
|
# Java build systems don't have hard requirement on java-devel, so it should be there
|
||||||
|
Requires: java-1.8.0-openjdk-devel
|
||||||
|
Requires: (ant-openjdk8 if ant)
|
||||||
|
|
||||||
|
%description -n javapackages-local-openjdk8
|
||||||
This package provides non-essential macros and scripts to support Java packaging.
|
This package provides non-essential macros and scripts to support Java packaging.
|
||||||
|
|
||||||
%package -n javapackages-config-maven-3.6
|
%package -n javapackages-local-openjdk11
|
||||||
Summary: Configuration files for building maven-3.6 module
|
Summary: Non-essential macros and scripts for Java packaging support
|
||||||
|
Obsoletes: javapackages-local < 6.4.0
|
||||||
|
Provides: javapackages-local = %{version}-%{release}
|
||||||
|
Requires: javapackages-common = %{version}-%{release}
|
||||||
|
Requires: xmvn-tools
|
||||||
|
# Java build systems don't have hard requirement on java-devel, so it should be there
|
||||||
|
Requires: java-11-openjdk-devel
|
||||||
|
Requires: (ant-openjdk11 if ant)
|
||||||
|
|
||||||
%description -n javapackages-config-maven-3.6
|
%description -n javapackages-local-openjdk11
|
||||||
This package provides configuration files for building maven-3.6 module.
|
This package provides non-essential macros and scripts to support Java packaging.
|
||||||
|
|
||||||
%package -n maven-local-openjdk8
|
%package -n javapackages-local-openjdk17
|
||||||
Summary: OpenJDK 8 toolchain for XMvn
|
Summary: Non-essential macros and scripts for Java packaging support
|
||||||
Requires: maven-local
|
Requires: javapackages-common = %{version}-%{release}
|
||||||
Requires: java-1.8.0-openjdk-devel
|
Requires: xmvn-tools
|
||||||
|
# Java build systems don't have hard requirement on java-devel, so it should be there
|
||||||
|
Requires: java-17-openjdk-devel
|
||||||
|
Requires: (ant-openjdk17 if ant)
|
||||||
|
|
||||||
%description -n maven-local-openjdk8
|
%description -n javapackages-local-openjdk17
|
||||||
OpenJDK 8 toolchain for XMvn
|
This package provides non-essential macros and scripts to support Java packaging.
|
||||||
|
|
||||||
|
%package -n javapackages-local-openjdk21
|
||||||
|
Summary: Non-essential macros and scripts for Java packaging support
|
||||||
|
Requires: javapackages-common = %{version}-%{release}
|
||||||
|
Requires: xmvn-tools
|
||||||
|
# Java build systems don't have hard requirement on java-devel, so it should be there
|
||||||
|
Requires: java-21-openjdk-devel
|
||||||
|
Requires: (ant-openjdk21 if ant)
|
||||||
|
|
||||||
|
%description -n javapackages-local-openjdk21
|
||||||
|
This package provides non-essential macros and scripts to support Java packaging.
|
||||||
|
|
||||||
|
%package -n javapackages-generators
|
||||||
|
Summary: RPM dependency generators for Java packaging support
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: %{python_prefix}-javapackages = %{version}-%{release}
|
||||||
|
Requires: %{python_interpreter}
|
||||||
|
|
||||||
|
%description -n javapackages-generators
|
||||||
|
RPM dependency generators to support Java packaging.
|
||||||
|
|
||||||
|
%package -n javapackages-common
|
||||||
|
Summary: Non-essential macros and scripts for Java packaging support
|
||||||
|
Requires: javapackages-generators = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n javapackages-common
|
||||||
|
This package provides non-essential, but commonly used macros and
|
||||||
|
scripts to support Java packaging.
|
||||||
|
|
||||||
|
%package -n javapackages-compat
|
||||||
|
Summary: Previously deprecated macros and scripts for Java packaging support
|
||||||
|
Requires: javapackages-local = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n javapackages-compat
|
||||||
|
This package provides previously deprecated macros and scripts to
|
||||||
|
support Java packaging as well as some additions to them.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n javapackages-%{version}
|
%autosetup -p1 -n javapackages-%{version}
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
|
||||||
%patch3 -p1
|
|
||||||
|
|
||||||
sed -i '/^manpage /d' build
|
|
||||||
sed -i '/${mandir}/d' install
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --pyinterpreter=%{python_interpreter} \
|
%configure --pyinterpreter=%{python_interpreter} \
|
||||||
--default_jdk=%{default_jdk} --default_jre=%{default_jre} \
|
--rpmmacrodir=%{_rpmmacrodir} --rpmconfigdir=%{_rpmconfigdir} \
|
||||||
--rpmmacrodir=%{rpmmacrodir}
|
--m2home=%{maven_home} \
|
||||||
|
--jvm=openjdk8=%{_jvmdir}/java-1.8.0-openjdk \
|
||||||
|
--jvm=openjdk11=%{_jvmdir}/jre-11-openjdk \
|
||||||
|
--jvm=openjdk17=%{_jvmdir}/jre-17-openjdk \
|
||||||
|
--jvm=openjdk21=%{_jvmdir}/jre-21-openjdk
|
||||||
./build
|
./build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
./install
|
./install
|
||||||
|
|
||||||
rm -rf %{buildroot}%{python_sitelib}/javapackages-*.egg-info
|
|
||||||
find %{buildroot}%{python_sitelib}/javapackages -name __pycache__ | xargs rm -rf
|
|
||||||
mv %{buildroot}%{python_sitelib}/javapackages %{buildroot}%{_javadir}-utils/
|
|
||||||
find %{buildroot}%{_javadir}-utils/ -name \*.pyc | xargs rm -f
|
|
||||||
find %{buildroot}%{_javadir}-utils/ -name \*.pyo | xargs rm -f
|
|
||||||
|
|
||||||
sed -i 's|mvn_build.py|& --xmvn-javadoc|' $(find %{buildroot} -name 'macros*.fjava')
|
|
||||||
sed -e 's/.[17]$/&*/' -i files-*
|
sed -e 's/.[17]$/&*/' -i files-*
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_datadir}/xmvn/config.d/
|
|
||||||
%if 0%{?_module_build}
|
|
||||||
sed s/@{mns}/maven-3.6/g %{SOURCE1} >%{buildroot}%{_datadir}/xmvn/config.d/module-maven-3.6.xml
|
|
||||||
%endif
|
|
||||||
|
|
||||||
rm -rf %{buildroot}%{_bindir}/gradle-local
|
rm -rf %{buildroot}%{_bindir}/gradle-local
|
||||||
rm -rf %{buildroot}%{_datadir}/gradle-local
|
rm -rf %{buildroot}%{_datadir}/gradle-local
|
||||||
rm -rf %{buildroot}%{_mandir}/man7/gradle_build.7
|
rm -rf %{buildroot}%{_mandir}/man7/gradle_build.7
|
||||||
|
%if %{without ivy}
|
||||||
|
rm -rf %{buildroot}%{_sysconfdir}/ivy
|
||||||
|
rm -rf %{buildroot}%{_sysconfdir}/ant.d
|
||||||
|
%endif
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_datadir}/xmvn/conf/
|
install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/java/javapackages-config.json
|
||||||
cp -p %{SOURCE2} %{buildroot}%{_datadir}/xmvn/conf/toolchains.xml
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./check
|
./check
|
||||||
|
|
||||||
|
%transfiletriggerin -- %{_jpbindingdir}
|
||||||
|
shopt -s nullglob
|
||||||
|
grep -E '^%{_jpbindingdir}/.*\.d/' | sed 's|%{_jpbindingdir}/\(.*\)/\(.*\)|\1 \2|' | while read dir tgt; do
|
||||||
|
lnk=${dir/%.d}
|
||||||
|
ln -sf "$dir/$tgt" %{_jpbindingdir}/"$lnk"
|
||||||
|
done
|
||||||
|
|
||||||
|
%transfiletriggerun -- %{_jpbindingdir}
|
||||||
|
shopt -s nullglob
|
||||||
|
grep -E '^%{_jpbindingdir}/.*\.d/' | sed 's|%{_jpbindingdir}/\(.*\)/\(.*\)|\1 \2|' | while read dir tgt; do
|
||||||
|
lnk=${dir/%.d}
|
||||||
|
was=$(readlink %{_jpbindingdir}/"$lnk" || :)
|
||||||
|
if [[ "$was" = "$dir/$tgt" ]]; then
|
||||||
|
unlink %{_jpbindingdir}/"$lnk"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
%transfiletriggerpostun -- %{_jpbindingdir}
|
||||||
|
shopt -s nullglob
|
||||||
|
for bindd in %{_jpbindingdir}/*.d/; do
|
||||||
|
lnk=${bindd/%.d\/}
|
||||||
|
if ! [[ -e "$lnk" ]]; then
|
||||||
|
for ftgt in "$bindd"*; do
|
||||||
|
tgt=$(realpath -m -s --relative-to=%{_jpbindingdir} "$ftgt")
|
||||||
|
ln -sf "$tgt" "$lnk"
|
||||||
|
break
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
%files -f files-tools
|
%files -f files-tools
|
||||||
|
|
||||||
%files -n javapackages-filesystem -f files-filesystem
|
%files -n javapackages-filesystem -f files-filesystem
|
||||||
|
|
||||||
%files -n javapackages-local -f files-local
|
%files -n javapackages-common -f files-common
|
||||||
%{_javadir}-utils/javapackages/
|
|
||||||
%license LICENSE
|
|
||||||
|
|
||||||
%files -n maven-local
|
%files -n javapackages-generators -f files-generators
|
||||||
|
|
||||||
%files -n ivy-local -f files-ivy
|
%files -n javapackages-compat -f files-compat
|
||||||
|
|
||||||
%files -n javapackages-config-maven-3.6
|
%files -n javapackages-local-openjdk8 -f files-local-openjdk8
|
||||||
%{_datadir}/xmvn/config.d
|
|
||||||
|
%files -n javapackages-local-openjdk11 -f files-local-openjdk11
|
||||||
|
|
||||||
|
%files -n javapackages-local-openjdk17 -f files-local-openjdk17
|
||||||
|
|
||||||
|
%files -n javapackages-local-openjdk21 -f files-local-openjdk21
|
||||||
|
|
||||||
%files -n maven-local-openjdk8
|
%files -n maven-local-openjdk8
|
||||||
%{_datadir}/xmvn/conf
|
|
||||||
|
%files -n maven-local-openjdk11
|
||||||
|
|
||||||
|
%files -n maven-local-openjdk17
|
||||||
|
|
||||||
|
%files -n maven-local-openjdk21
|
||||||
|
|
||||||
|
%if %{with ivy}
|
||||||
|
%files -n ivy-local -f files-ivy
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -n %{python_prefix}-javapackages -f files-python
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 10 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.4.0-1
|
||||||
|
- Update to upstream version 6.4.0
|
||||||
|
|
||||||
|
* Sun Nov 24 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0-9
|
||||||
|
- Rebuild
|
||||||
|
|
||||||
|
* Sun Nov 24 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0-8
|
||||||
|
- Rebuild
|
||||||
|
|
||||||
|
* Mon Nov 18 2024 Marián Konček <mkoncek@redhat.com> - 6.0.0-7
|
||||||
|
- Use Java 11 build tool bindings for package builds
|
||||||
|
|
||||||
|
* Mon Nov 04 2024 Marián Konček <mkoncek@redhat.com> - 6.0.0-6
|
||||||
|
- Drop generated Requires on various Java versions
|
||||||
|
- Related: RHEL-62409
|
||||||
|
|
||||||
|
* Mon Oct 21 2024 Marián Konček <mkoncek@redhat.com> - 6.0.0-5
|
||||||
|
- Include java-21-headless in generated auto-requires
|
||||||
|
- Related: RHEL-62409
|
||||||
|
|
||||||
|
* Mon Oct 21 2024 Marián Konček <mkoncek@redhat.com> - 6.0.0-5
|
||||||
|
- Make OpenJDK 17 the default JRE/JDK
|
||||||
|
- Related: RHEL-62403
|
||||||
|
|
||||||
|
* Wed Jan 25 2023 Marián Konček <mkoncek@redhat.com> - 6.0.0-4
|
||||||
|
- Add generated Requires on multiple versions of java-headless
|
||||||
|
- Related: rhbz#2164437
|
||||||
|
|
||||||
|
* Tue Nov 02 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0-3
|
||||||
|
- Implement OpenJDK 11 and 17 toolchains
|
||||||
|
|
||||||
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 6.0.0-2
|
||||||
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
|
Related: rhbz#1991688
|
||||||
|
|
||||||
|
* Mon Jul 26 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0-1
|
||||||
|
- Update to upstream version 6.0.0
|
||||||
|
|
||||||
|
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0~alpha-9
|
||||||
|
- Rebuild to workaround DistroBaker issue
|
||||||
|
|
||||||
|
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0~alpha-8
|
||||||
|
- Bootstrap Maven for CentOS Stream 9
|
||||||
|
|
||||||
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 6.0.0~alpha-7
|
||||||
|
- Rebuilt for Python 3.10
|
||||||
|
|
||||||
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0~alpha-6
|
||||||
|
- Bootstrap build
|
||||||
|
- Non-bootstrap build
|
||||||
|
|
||||||
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0~alpha-5
|
||||||
|
- Implement bootstrap mode
|
||||||
|
|
||||||
|
* Thu May 13 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0~alpha-4
|
||||||
|
- Disable skippedPlugins for now
|
||||||
|
|
||||||
|
* Thu May 13 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0~alpha-3
|
||||||
|
- Fix typos in Requires
|
||||||
|
|
||||||
|
* Thu May 13 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0~alpha-2
|
||||||
|
- Disable javapackages-bootstrap for now
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.0-15
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Nov 30 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.3.0-14
|
||||||
|
- Add javapackages-generators provides
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.0.0~alpha-1
|
||||||
|
- Update to upstream version 6.0.0~alpha
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.0-13
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 17 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.3.1-9
|
||||||
|
- Add separate subpackage with RPM generators
|
||||||
|
|
||||||
|
* Thu Jul 16 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.3.1-8
|
||||||
|
- Don't use networking during tests
|
||||||
|
|
||||||
|
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 5.3.0-12
|
||||||
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
||||||
|
|
||||||
|
* Wed Jun 10 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.3.0-11
|
||||||
|
- Use XMvn Javadoc MOJO for generating API docs
|
||||||
|
|
||||||
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 5.3.0-10
|
||||||
|
- Rebuilt for Python 3.9
|
||||||
|
|
||||||
|
* Tue Apr 28 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.3.0-10
|
||||||
|
- Switch to OpenJDK 11 as default JDK
|
||||||
|
|
||||||
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.0-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
* Thu Jan 23 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.3.1-7
|
* Thu Jan 23 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.3.1-7
|
||||||
- Add OpenJDK 8 toolchain configuration
|
- Add OpenJDK 8 toolchain configuration
|
||||||
|
|
||||||
@ -205,6 +413,18 @@ cp -p %{SOURCE2} %{buildroot}%{_datadir}/xmvn/conf/toolchains.xml
|
|||||||
* Fri Oct 25 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.3.1-5
|
* Fri Oct 25 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.3.1-5
|
||||||
- Switch to OpenJDK 11 as default JDK
|
- Switch to OpenJDK 11 as default JDK
|
||||||
|
|
||||||
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 5.3.0-8
|
||||||
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||||
|
|
||||||
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 5.3.0-7
|
||||||
|
- Rebuilt for Python 3.8
|
||||||
|
|
||||||
|
* Sun Aug 11 2019 Fabio Valentini <decathorpe@gmail.com> - 5.3.0-6
|
||||||
|
- Disable gradle support by default.
|
||||||
|
|
||||||
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.0-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
* Fri Jun 28 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.3.1-4
|
* Fri Jun 28 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.3.1-4
|
||||||
- Enable namespaced dependency generation
|
- Enable namespaced dependency generation
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user