2023-04-11 12:19:19 +00:00
|
|
|
|
#
|
|
|
|
|
# spec file for package vavr
|
|
|
|
|
#
|
2025-02-05 07:03:48 +00:00
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2023-04-11 12:19:19 +00:00
|
|
|
|
#
|
|
|
|
|
# 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: vavr
|
2025-02-05 07:03:48 +00:00
|
|
|
|
Version: 0.10.6
|
2023-04-11 12:19:19 +00:00
|
|
|
|
Release: 0
|
|
|
|
|
Summary: An object-functional language extension to Java 8
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
URL: https://github.com/vavr-io/%{name}
|
|
|
|
|
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2023-10-03 08:47:41 +00:00
|
|
|
|
BuildRequires: fdupes
|
2025-02-05 07:03:48 +00:00
|
|
|
|
BuildRequires: java-devel >= 1.8
|
|
|
|
|
BuildRequires: maven-local
|
2023-04-11 12:19:19 +00:00
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
2025-02-05 07:03:48 +00:00
|
|
|
|
BuildRequires: mvn(org.moditect:moditect-maven-plugin)
|
2023-04-11 12:19:19 +00:00
|
|
|
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Vavr is an object-functional language extension to Java 8, which aims to reduce
|
|
|
|
|
the lines of code and increase code quality. It provides persistent
|
|
|
|
|
collections, functional abstractions for error handling, concurrent
|
|
|
|
|
programming, pattern matching and much more.
|
|
|
|
|
|
|
|
|
|
Vavr fuses the power of object-oriented programming with the elegance and
|
|
|
|
|
robustness of functional programming. The most interesting part is a
|
|
|
|
|
feature-rich, persistent collection library that smoothly integrates with
|
|
|
|
|
Java’s standard collections.
|
|
|
|
|
|
|
|
|
|
Because Vavr does not depend on any libraries (other than the JVM) you can
|
|
|
|
|
easily add it as standalone .jar to your classpath.
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2025-02-05 07:03:48 +00:00
|
|
|
|
%autosetup
|
2023-04-11 12:19:19 +00:00
|
|
|
|
|
|
|
|
|
%pom_disable_module %{name}-benchmark
|
|
|
|
|
|
2023-10-03 08:47:41 +00:00
|
|
|
|
%pom_remove_plugin -r :maven-source-plugin
|
|
|
|
|
%pom_remove_plugin -r :maven-enforcer-plugin
|
|
|
|
|
# Use the already generated files to avoid having to run scala script
|
|
|
|
|
%pom_remove_plugin -r :maven-clean-plugin
|
|
|
|
|
%pom_remove_plugin -r :scala-maven-plugin
|
2023-04-11 12:19:19 +00:00
|
|
|
|
|
2025-02-05 07:03:48 +00:00
|
|
|
|
%pom_xpath_remove -r "pom:arg[.='-Werror']"
|
2023-10-26 05:59:59 +00:00
|
|
|
|
|
2025-07-03 16:15:56 +00:00
|
|
|
|
%pom_xpath_remove -r "pom:executions/pom:execution/pom:configuration/pom:jvmVersion"
|
|
|
|
|
|
2023-04-11 12:19:19 +00:00
|
|
|
|
%build
|
2023-09-12 18:21:03 +00:00
|
|
|
|
%{mvn_build} -f -- \
|
2025-03-27 21:34:39 +00:00
|
|
|
|
-Dsource=8
|
2023-04-11 12:19:19 +00:00
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%mvn_install
|
2023-09-12 18:21:03 +00:00
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
2023-04-11 12:19:19 +00:00
|
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc {CONTRIBUTING,README}.md
|
|
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
|
|
%changelog
|