- Update to v2.2.2 * Changed + Publish release artifacts to Central Portal using OSSRH Staging API service. + Bump Checkstyle to 10.25.0. - Update to v2.2.1 * Changed + IntHashSet#retainAll(Collection) and IntHashSet#retainAll(IntHashSet) no longer change the capacity of the set. + Bump JUnit to 5.13.0. * Fixed + Infinite loop in IntHashSet when retainAll leaves collections with a power of two number of elements. - Update to v2.2.0 * Changed + Protect against numeric overflow when recording errors at the end of the large buffer. + CI: Use gradle/actions/setup-gradle action for caching Gradle dependencies. + CI: Enable JDK 24 GA build. + Bump Gradle to 8.14.1. + Bump Checkstyle to 10.24.0. + Bump ByteBuddy to 1.17.5. + Bump Shadow to 8.3.6. + Bump JUnit to 5.12.2. + Bump Mockito to 5.18.0. + Bump Guava TestLib to 33.4.8-jre. * Added + Add SystemUtil#isMac method. + Add tests for file mapping. OBS-URL: https://build.opensuse.org/request/show/1287024 OBS-URL: https://build.opensuse.org/package/show/Java:packages/agrona?expand=0&rev=9
179 lines
5.5 KiB
RPMSpec
179 lines
5.5 KiB
RPMSpec
#
|
|
# spec file for package agrona
|
|
#
|
|
# 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: agrona
|
|
Version: 2.2.2
|
|
Release: 0
|
|
Summary: High Performance data structures and utility methods for Java
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: https://github.com/real-logic/%{name}
|
|
Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source1: https://repo1.maven.org/maven2/org/%{name}/%{name}/%{version}/%{name}-%{version}.pom
|
|
Source2: https://repo1.maven.org/maven2/org/%{name}/%{name}-agent/%{version}/%{name}-agent-%{version}.pom
|
|
BuildRequires: fdupes
|
|
BuildRequires: java-devel >= 17
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(net.bytebuddy:byte-buddy)
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Agrona provides a library of data structures and utility methods that are a
|
|
common need when building high-performance applications in Java. Many of these
|
|
utilities are used in the Aeron efficient reliable UDP unicast, multicast, and
|
|
IPC message transport and provides high-performance buffer implementations to
|
|
support the Simple Binary Encoding Message Codec.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
cp %{SOURCE1} %{name}/pom.xml
|
|
cp %{SOURCE2} %{name}-agent/pom.xml
|
|
|
|
%pom_add_dep org.%{name}:%{name}:%{version} %{name}-agent
|
|
%pom_add_dep net.bytebuddy:byte-buddy %{name}-agent
|
|
|
|
cat >pom.xml <<__POM__
|
|
<project
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>org.%{name}</groupId>
|
|
<artifactId>%{name}-parent</artifactId>
|
|
<version>%{version}</version>
|
|
<packaging>pom</packaging>
|
|
<modules>
|
|
<module>%{name}</module>
|
|
<module>%{name}-agent</module>
|
|
</modules>
|
|
</project>
|
|
__POM__
|
|
|
|
sed -i \
|
|
-e 's#src/main/java/#%{name}/src/main/java/#' \
|
|
-e 's#build/generated-src#%{name}/target/generated-sources/java#' \
|
|
%{name}/src/main/java/org/agrona/generation/SpecialisationGenerator.java
|
|
|
|
%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin %{name} \
|
|
'<configuration>
|
|
<source>17</source>
|
|
<target>17</target>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>compile-generator</id>
|
|
<phase>generate-sources</phase>
|
|
<goals><goal>compile</goal></goals>
|
|
</execution>
|
|
<execution>
|
|
<id>compile-generated-sources</id>
|
|
<phase>process-sources</phase>
|
|
<goals><goal>compile</goal></goals>
|
|
</execution>
|
|
</executions>'
|
|
|
|
%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin %{name}-agent \
|
|
'<configuration>
|
|
<source>11</source>
|
|
<target>11</target>
|
|
</configuration>'
|
|
|
|
%pom_add_plugin org.codehaus.mojo:exec-maven-plugin %{name} \
|
|
'<executions>
|
|
<execution>
|
|
<phase>process-sources</phase>
|
|
<goals><goal>java</goal></goals>
|
|
<configuration>
|
|
<mainClass>org.agrona.generation.SpecialisationGenerator</mainClass>
|
|
</configuration>
|
|
</execution>
|
|
</executions>'
|
|
|
|
%pom_add_plugin org.codehaus.mojo:build-helper-maven-plugin %{name} \
|
|
'<executions>
|
|
<execution>
|
|
<phase>generate-sources</phase>
|
|
<goals><goal>add-source</goal></goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>target/generated-sources/java</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>'
|
|
|
|
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin %{name} \
|
|
'<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Automatic-Module-Name>org.agrona.core</Automatic-Module-Name>
|
|
<Implementation-Title>Agrona</Implementation-Title>
|
|
<Implementation-Vendor>Real Logic Limited</Implementation-Vendor>
|
|
<Implementation-Version>%{version}</Implementation-Version>
|
|
<Bundle-Name>org.agrona.core</Bundle-Name>
|
|
<Bundle-SymbolicName>org.agrona.core</Bundle-SymbolicName>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>'
|
|
|
|
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin %{name}-agent \
|
|
'<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Automatic-Module-Name>org.agrona.agent</Automatic-Module-Name>
|
|
<Implementation-Title>Agrona</Implementation-Title>
|
|
<Implementation-Vendor>Real Logic Limited</Implementation-Vendor>
|
|
<Implementation-Version>%{version}</Implementation-Version>
|
|
<Premain-Class>org.agrona.agent.BufferAlignmentAgent</Premain-Class>
|
|
<Agent-Class>org.agrona.agent.BufferAlignmentAgent</Agent-Class>
|
|
<Can-Redefine-Classes>true</Can-Redefine-Classes>
|
|
<Can-Retransform-Classes>true</Can-Retransform-Classes>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>'
|
|
|
|
%build
|
|
%{mvn_build} -f -- \
|
|
-DlegacyMode=true -Dverbose=true
|
|
|
|
%install
|
|
%{mvn_package} :%{name}-parent __noinstall
|
|
|
|
%mvn_install
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE
|
|
%doc README.md
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE
|
|
|
|
%changelog
|