125 lines
4.2 KiB
RPMSpec
125 lines
4.2 KiB
RPMSpec
%global hghash 7ff584954008
|
|
|
|
Name: jmh
|
|
Version: 1.13
|
|
Release: 1
|
|
Summary: Java Microbenchmark Harness
|
|
License: GPLv2 with exceptions
|
|
URL: http://openjdk.java.net/projects/code-tools/jmh/
|
|
Source0: http://hg.openjdk.java.net/code-tools/jmh/archive/%{hghash}.tar.bz2
|
|
# Patch for jopt-simple >= 5
|
|
Patch0: jopt-simple.patch
|
|
|
|
BuildRequires: maven-local mvn(junit:junit) mvn(net.sf.jopt-simple:jopt-simple) >= 5
|
|
BuildRequires: mvn(org.apache.commons:commons-math3)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-site-plugin) mvn(org.ow2.asm:asm)
|
|
Requires: mvn(net.sf.jopt-simple:jopt-simple) >= 5
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
The JMH is a Java harness for building, running, and analysing
|
|
nano/micro/macro benchmarks written in Java and other languages
|
|
targeting the JVM.
|
|
|
|
%package core-benchmarks
|
|
Summary: JMH Core Benchmarks
|
|
%description core-benchmarks
|
|
JMH Core Benchmarks.
|
|
|
|
%package generator-annprocess
|
|
Summary: JMH Generators: Annotation Processors
|
|
%description generator-annprocess
|
|
JMH benchmark generator, based on annotation processors.
|
|
|
|
%package generator-asm
|
|
Summary: JMH Generators: ASM
|
|
%description generator-asm
|
|
JMH benchmark generator, based on ASM bytecode manipulation.
|
|
|
|
%package generator-bytecode
|
|
Summary: JMH Generators: Bytecode
|
|
%description generator-bytecode
|
|
JMH benchmark generator, based on byte-code inspection.
|
|
|
|
%package generator-reflection
|
|
Summary: JMH Generators: Reflection
|
|
%description generator-reflection
|
|
JMH benchmark generator, based on reflection.
|
|
|
|
%package parent
|
|
Summary: Java Microbenchmark Harness Parent POM
|
|
%description parent
|
|
Java Microbenchmark Harness Parent POM.
|
|
|
|
%package samples
|
|
Summary: JMH Samples
|
|
License: BSD
|
|
%description samples
|
|
JMH Samples.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
License: BSD and GPLv2 with exceptions
|
|
%description javadoc
|
|
This package contains javadoc for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{hghash}
|
|
%patch0 -p1
|
|
%pom_disable_module %{name}-archetypes
|
|
%pom_disable_module %{name}-core-ct
|
|
%pom_disable_module %{name}-core-it
|
|
%pom_remove_plugin -r :maven-eclipse-plugin
|
|
%pom_remove_plugin -r :maven-license-plugin
|
|
%pom_remove_plugin -r :maven-shade-plugin
|
|
%pom_remove_plugin -r :maven-source-plugin
|
|
%pom_remove_plugin -r :maven-javadoc-plugin
|
|
%pom_xpath_remove "pom:build/pom:extensions" %{name}-core
|
|
rm -r %{name}-core/src/test/java/org/openjdk/jmh/results/format/ResultFormatTest.java
|
|
for s in $(find %{name}-samples -name "*.java") \
|
|
%{name}-core-benchmarks/src/main/java/org/openjdk/jmh/validation/tests/BlackholeConsumeCPUTest.java \
|
|
%{name}-core-benchmarks/src/main/java/org/openjdk/jmh/validation/tests/BlackholeConsecutiveTest.java \
|
|
%{name}-core-benchmarks/src/main/java/org/openjdk/jmh/validation/tests/BlackholeSingleTest.java \
|
|
%{name}-core-benchmarks/src/main/java/org/openjdk/jmh/validation/tests/BlackholePipelinedTest.java \
|
|
%{name}-core-benchmarks/src/main/java/org/openjdk/jmh/validation/IterationScoresFormatter.java ;do
|
|
native2ascii -encoding UTF8 ${s} ${s}
|
|
done
|
|
sed -i "s,59,51,;s,Temple Place,Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," src/license/gpl_cpe/license.txt
|
|
|
|
%build
|
|
%mvn_build -s
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles-%{name}-core
|
|
%license %{name}-core/LICENSE
|
|
|
|
%files core-benchmarks -f .mfiles-%{name}-core-benchmarks
|
|
%license %{name}-core-benchmarks/LICENSE
|
|
|
|
%files generator-annprocess -f .mfiles-%{name}-generator-annprocess
|
|
%license %{name}-generator-annprocess/LICENSE
|
|
|
|
%files generator-asm -f .mfiles-%{name}-generator-asm
|
|
%license %{name}-generator-asm/LICENSE
|
|
|
|
%files generator-bytecode -f .mfiles-%{name}-generator-bytecode
|
|
%license %{name}-generator-bytecode/LICENSE
|
|
|
|
%files generator-reflection -f .mfiles-%{name}-generator-reflection
|
|
%license %{name}-generator-reflection/LICENSE
|
|
|
|
%files parent -f .mfiles-%{name}-parent
|
|
%license LICENSE src/license/*
|
|
|
|
%files samples -f .mfiles-%{name}-samples
|
|
%license %{name}-samples/LICENSE src/license/bsd/*
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE src/license/*
|
|
|
|
%changelog
|
|
* Tue Aug 11 2020 maminjie <maminjie1@huawei.com> - 1.13-1
|
|
- package init
|