Make javapackages-extra depend on jurand
This commit is contained in:
parent
46b47d503a
commit
f5dae1c8f0
92
0001-Remove-annotation-removal-scripts.patch
Normal file
92
0001-Remove-annotation-removal-scripts.patch
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
From 55c04dac81f8275e7fac8c55d40a097153e1c344 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||||
|
Date: Wed, 8 Mar 2023 15:06:20 +0100
|
||||||
|
Subject: [PATCH] Remove annotation removal scripts
|
||||||
|
|
||||||
|
---
|
||||||
|
build | 2 --
|
||||||
|
check | 6 ------
|
||||||
|
install | 10 ----------
|
||||||
|
macros.d/macros.fjava | 20 --------------------
|
||||||
|
4 files changed, 38 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/build b/build
|
||||||
|
index 8e676f2d..172177a0 100755
|
||||||
|
--- a/build
|
||||||
|
+++ b/build
|
||||||
|
@@ -79,8 +79,6 @@ expand depgenerators/fileattrs/javadoc.attr
|
||||||
|
manpage abs2rel
|
||||||
|
manpage find-jar
|
||||||
|
manpage gradle_build
|
||||||
|
-manpage java_remove_annotations
|
||||||
|
-manpage java_remove_imports
|
||||||
|
manpage mvn_alias
|
||||||
|
manpage mvn_artifact
|
||||||
|
manpage mvn_build
|
||||||
|
diff --git a/check b/check
|
||||||
|
index 305257f9..2305307d 100755
|
||||||
|
--- a/check
|
||||||
|
+++ b/check
|
||||||
|
@@ -82,10 +82,4 @@ coverage combine
|
||||||
|
coverage xml
|
||||||
|
coverage report
|
||||||
|
|
||||||
|
-echo "Running Lua tests..."
|
||||||
|
-for test_file in ./test/*_test.lua; do
|
||||||
|
- echo "${test_file##*/}"
|
||||||
|
- LUA_PATH=java-utils/java_symbols_lib.lua lua ./"${test_file}"
|
||||||
|
-done
|
||||||
|
-
|
||||||
|
exit ${r1}
|
||||||
|
diff --git a/install b/install
|
||||||
|
index e80db4cf..ec6e72d0 100755
|
||||||
|
--- a/install
|
||||||
|
+++ b/install
|
||||||
|
@@ -188,16 +188,6 @@ inst_data target/pom_xpath_replace.7 "${mandir}/man7"
|
||||||
|
inst_data target/pom_xpath_set.7 "${mandir}/man7"
|
||||||
|
|
||||||
|
|
||||||
|
-exec >files-extra
|
||||||
|
-
|
||||||
|
-inst_exec java-utils/java_remove_symbols.lua "${javadir}-utils"
|
||||||
|
-inst_data java-utils/java_remove_symbols.rpm.lua "${javadir}-utils"
|
||||||
|
-inst_data java-utils/java_symbols_lib.lua "${javadir}-utils"
|
||||||
|
-
|
||||||
|
-inst_data target/java_remove_annotations.7 "${mandir}/man7"
|
||||||
|
-inst_data target/java_remove_imports.7 "${mandir}/man7"
|
||||||
|
-
|
||||||
|
-
|
||||||
|
exec >files-generators
|
||||||
|
|
||||||
|
dir "${rpmconfigdir}/fileattrs"
|
||||||
|
diff --git a/macros.d/macros.fjava b/macros.d/macros.fjava
|
||||||
|
index b1f92f90..50b83570 100644
|
||||||
|
--- a/macros.d/macros.fjava
|
||||||
|
+++ b/macros.d/macros.fjava
|
||||||
|
@@ -463,23 +463,3 @@ API documentation for %{name}. \
|
||||||
|
%exclude %dir %{_licensedir} \
|
||||||
|
%endif \
|
||||||
|
%endif
|
||||||
|
-
|
||||||
|
-
|
||||||
|
-#==============================================================================
|
||||||
|
-# java_remove_imports - remove import statements from Java source files
|
||||||
|
-#
|
||||||
|
-# Usage: *%java_remove_imports* [list of file paths]... [-n <list of class names>...] [-p <list of patterns>...]
|
||||||
|
-#
|
||||||
|
-# Removes import statements from Java source files by matching them against the
|
||||||
|
-# lists of simple class names and patterns.
|
||||||
|
-%java_remove_imports LUA_PATH=@{javadir}-utils/java_symbols_lib.lua /usr/bin/lua @{javadir}-utils/java_remove_symbols.lua
|
||||||
|
-
|
||||||
|
-
|
||||||
|
-# java_remove_annotations - remove imports and annotations from Java source
|
||||||
|
-# files
|
||||||
|
-#
|
||||||
|
-# Usage: *%java_remove_annotations* [list of file paths]... [-n <list of class names>...] [-p <list of patterns>...]
|
||||||
|
-#
|
||||||
|
-# Removes import statements as well as usage of annotations from Java source
|
||||||
|
-# files by matching them against the lists of simple class names and patterns.
|
||||||
|
-%java_remove_annotations LUA_PATH=@{javadir}-utils/java_symbols_lib.lua /usr/bin/lua @{javadir}-utils/java_remove_symbols.lua -a
|
||||||
|
--
|
||||||
|
2.39.1
|
||||||
|
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
Name: javapackages-tools
|
Name: javapackages-tools
|
||||||
Version: 6.1.0
|
Version: 6.1.0
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
Summary: Macros and scripts for Java packaging support
|
Summary: Macros and scripts for Java packaging support
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/fedora-java/javapackages
|
URL: https://github.com/fedora-java/javapackages
|
||||||
@ -29,12 +29,13 @@ Source8: toolchains-openjdk8.xml
|
|||||||
Source11: toolchains-openjdk11.xml
|
Source11: toolchains-openjdk11.xml
|
||||||
Source17: toolchains-openjdk17.xml
|
Source17: toolchains-openjdk17.xml
|
||||||
|
|
||||||
|
Patch0: 0001-Remove-annotation-removal-scripts.patch
|
||||||
|
|
||||||
BuildRequires: coreutils
|
BuildRequires: coreutils
|
||||||
BuildRequires: which
|
BuildRequires: which
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: asciidoc
|
BuildRequires: asciidoc
|
||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
BuildRequires: lua
|
|
||||||
BuildRequires: %{python_prefix}-devel
|
BuildRequires: %{python_prefix}-devel
|
||||||
BuildRequires: %{python_prefix}-lxml
|
BuildRequires: %{python_prefix}-lxml
|
||||||
BuildRequires: %{python_prefix}-setuptools
|
BuildRequires: %{python_prefix}-setuptools
|
||||||
@ -129,8 +130,8 @@ scripts to support Java packaging.
|
|||||||
|
|
||||||
%package -n javapackages-extra
|
%package -n javapackages-extra
|
||||||
Summary: Rarely-used macros and scripts for Java packaging support
|
Summary: Rarely-used macros and scripts for Java packaging support
|
||||||
Requires: javapackages-generators = %{version}-%{release}
|
Requires: javapackages-common = %{version}-%{release}
|
||||||
Requires: lua
|
Requires: jurand
|
||||||
|
|
||||||
%description -n javapackages-extra
|
%description -n javapackages-extra
|
||||||
This package provides rarely-used and obsolete macros and scripts to
|
This package provides rarely-used and obsolete macros and scripts to
|
||||||
@ -165,6 +166,7 @@ OpenJDK 17 toolchain for XMvn
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n javapackages-%{version}
|
%setup -q -n javapackages-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
sed -i /javapackages-metadata.xml/d install
|
sed -i /javapackages-metadata.xml/d install
|
||||||
|
|
||||||
@ -205,7 +207,7 @@ install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/java/javapackages-config
|
|||||||
|
|
||||||
%files -n javapackages-common -f files-common
|
%files -n javapackages-common -f files-common
|
||||||
|
|
||||||
%files -n javapackages-extra -f files-extra
|
%files -n javapackages-extra
|
||||||
|
|
||||||
%files -n javapackages-local
|
%files -n javapackages-local
|
||||||
|
|
||||||
@ -231,6 +233,9 @@ install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/java/javapackages-config
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 08 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.1.0-8
|
||||||
|
- Make javapackages-extra depend on jurand
|
||||||
|
|
||||||
* Wed Jan 25 2023 Marian Koncek <mkoncek@redhat.com> - 6.1.0-7
|
* Wed Jan 25 2023 Marian Koncek <mkoncek@redhat.com> - 6.1.0-7
|
||||||
- Add generated Requires on multiple versions of java-headless
|
- Add generated Requires on multiple versions of java-headless
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user