Files
classgraph/classgraph.spec

76 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package classgraph
#
Accepting request 1288406 from home:urbic:branches:Java:packages - Update to v4.8.180 * Changes in v4.8.180: + Stops showing this warning on JDK 24+ (#899): WARNING: A terminally deprecated method in sun.misc.Unsafe has been called WARNING: sun.misc.Unsafe::invokeCleaner has been called by nonapi.io.github.classgraph.utils.FileUtils (file:/home/zakkak/.m2/repository/io/github/classgraph/ classgraph/4.8.179/classgraph-4.8.179.jar) WARNING: Please consider reporting this to the maintainers of class nonapi.io.github.classgraph.utils.FileUtils WARNING: sun.misc.Unsafe::invokeCleaner will be removed in a future release Downside: ClassGraph#enableMemoryMapping() is disabled for now on JDK 24+ (this was not enabled by default). Memory mapping wasn't that much faster than the default of standard NIO file access, so this should not impact performance much, and the impact should be limited to a small number of users. ClassGraph version 5 should support memory management again (but there is no timeline for when that will be released). - Update to v4.8.179 * Changes in v4.8.179: + Fixes URL generation on Windows (uses file:/// rather than file:/) -- #888. Thanks to @cowwoc for the fix, #889. * Changes in v4.8.178: + Fixes classpath finding on Quarkus 3.16 (which changed how the classloader works, #891). Thanks to @michael-simons for the fix! * Changes in v4.8.177: + Throw IllegalStateException rather than NPE if the user tries to access a resource after the ScanResult has been closed (#885, thanks to @sebthom for reporting). * Changes in v4.8.176: + Add synchronized block around API methods that have side effects, to make them threadsafe (#883, thanks to @inphonetic). * Changes in v4.8.175: + Merged two PRs from @freya022 (thanks!): ~ #878 (Store annotation getters of ClassInfo and MethodInfo) ~ #879 (Catch NoClassDefFoundError when loading methods) * Changes in v4.8.174: + Update to work with JBoss classloader changes (Issue #843, thanks to @DJay89; comments by @cmunier; PR #869, thanks to @dominik2611). * Changes in v4.8.173: + Fixes #854 (thanks to @chubert-ch for reporting). + Fixes #861 (thanks to @sebthom for reporting). * Changes in v4.8.172: + Some small optimizations to the changes in the previous release, by @attilapuskas. * Changes in v4.8.171: + A set of heroic changes by @attilapuskas (#850) that almost doubles the scanning speed of ClassGraph for a large classpath, by reducing the number of redundant file metadata checks (which are particularly slow on Windows). Thank you, Attila! * Changes in v4.8.170: + Fixes Zip64 central directory length calculation. Thanks to @cushon for the bug report, analysis, and fix! (#841, #842.) * Changes in v4.8.169: + Fix an obscure regression introduced in the previous release (#795, thanks to @mgroth0 for noticing it). * Changes in v4.8.168: + Fix #701 "When using wildfly 21, the jar under WEB-INF/lib will not be displayed." Thanks to @mmusenbr for the bug report and fix. * Changes in v4.8.167: + Make API introduced in last release consistently use varargs rather than List * Changes in v4.8.166: + Added ScanResult#getClassesWithAllAnnotations (which uses an AND operator) and ScanResult#getClassesWithAnyAnnotation (which uses an OR operator). (#821) OBS-URL: https://build.opensuse.org/request/show/1288406 OBS-URL: https://build.opensuse.org/package/show/Java:packages/classgraph?expand=0&rev=7
2025-06-25 04:53:48 +00:00
# Copyright (c) 2025 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/
#
Name: classgraph
Accepting request 1288406 from home:urbic:branches:Java:packages - Update to v4.8.180 * Changes in v4.8.180: + Stops showing this warning on JDK 24+ (#899): WARNING: A terminally deprecated method in sun.misc.Unsafe has been called WARNING: sun.misc.Unsafe::invokeCleaner has been called by nonapi.io.github.classgraph.utils.FileUtils (file:/home/zakkak/.m2/repository/io/github/classgraph/ classgraph/4.8.179/classgraph-4.8.179.jar) WARNING: Please consider reporting this to the maintainers of class nonapi.io.github.classgraph.utils.FileUtils WARNING: sun.misc.Unsafe::invokeCleaner will be removed in a future release Downside: ClassGraph#enableMemoryMapping() is disabled for now on JDK 24+ (this was not enabled by default). Memory mapping wasn't that much faster than the default of standard NIO file access, so this should not impact performance much, and the impact should be limited to a small number of users. ClassGraph version 5 should support memory management again (but there is no timeline for when that will be released). - Update to v4.8.179 * Changes in v4.8.179: + Fixes URL generation on Windows (uses file:/// rather than file:/) -- #888. Thanks to @cowwoc for the fix, #889. * Changes in v4.8.178: + Fixes classpath finding on Quarkus 3.16 (which changed how the classloader works, #891). Thanks to @michael-simons for the fix! * Changes in v4.8.177: + Throw IllegalStateException rather than NPE if the user tries to access a resource after the ScanResult has been closed (#885, thanks to @sebthom for reporting). * Changes in v4.8.176: + Add synchronized block around API methods that have side effects, to make them threadsafe (#883, thanks to @inphonetic). * Changes in v4.8.175: + Merged two PRs from @freya022 (thanks!): ~ #878 (Store annotation getters of ClassInfo and MethodInfo) ~ #879 (Catch NoClassDefFoundError when loading methods) * Changes in v4.8.174: + Update to work with JBoss classloader changes (Issue #843, thanks to @DJay89; comments by @cmunier; PR #869, thanks to @dominik2611). * Changes in v4.8.173: + Fixes #854 (thanks to @chubert-ch for reporting). + Fixes #861 (thanks to @sebthom for reporting). * Changes in v4.8.172: + Some small optimizations to the changes in the previous release, by @attilapuskas. * Changes in v4.8.171: + A set of heroic changes by @attilapuskas (#850) that almost doubles the scanning speed of ClassGraph for a large classpath, by reducing the number of redundant file metadata checks (which are particularly slow on Windows). Thank you, Attila! * Changes in v4.8.170: + Fixes Zip64 central directory length calculation. Thanks to @cushon for the bug report, analysis, and fix! (#841, #842.) * Changes in v4.8.169: + Fix an obscure regression introduced in the previous release (#795, thanks to @mgroth0 for noticing it). * Changes in v4.8.168: + Fix #701 "When using wildfly 21, the jar under WEB-INF/lib will not be displayed." Thanks to @mmusenbr for the bug report and fix. * Changes in v4.8.167: + Make API introduced in last release consistently use varargs rather than List * Changes in v4.8.166: + Added ScanResult#getClassesWithAllAnnotations (which uses an AND operator) and ScanResult#getClassesWithAnyAnnotation (which uses an OR operator). (#821) OBS-URL: https://build.opensuse.org/request/show/1288406 OBS-URL: https://build.opensuse.org/package/show/Java:packages/classgraph?expand=0&rev=7
2025-06-25 04:53:48 +00:00
Version: 4.8.180
Release: 0
Summary: An uber-fast parallelized Java classpath scanner and module scanner
License: MIT
Group: Development/Libraries/Java
URL: https://github.com/%{name}/%{name}
Source0: %{url}/archive/refs/tags/%{name}-%{version}.tar.gz
Patch0: classgraph-module-info.patch
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
BuildRequires: mvn(io.github.toolfactory:jvm-driver)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildArch: noarch
%description
ClassGraph is an uber-fast parallelized classpath scanner and module scanner
for Java, Scala, Kotlin and other JVM languages.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%autosetup -n %{name}-%{name}-%{version} -p1
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_dep org.eclipse.jdt:org.eclipse.jdt.annotation
%pom_xpath_set 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration/pom:source' 8
%pom_xpath_set 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration/pom:target' 8
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration/pom:compilerArgs'
%{mvn_file} : %{name}
%build
%{mvn_build} -f -- -Dsource=8
%install
%mvn_install
%files -f .mfiles
%license LICENSE-ClassGraph.txt
%doc README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE-ClassGraph.txt
%changelog