# # spec file for package flowless # # 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: flowless Version: 0.7.4 Release: 0 Summary: Efficient VirtualFlow for JavaFX License: BSD-2-Clause Group: Development/Libraries/Java URL: https://github.com/FXMisc/Flowless Source0: %{url}/archive/refs/tags/v%{version}.tar.gz Source1: https://repo1.maven.org/maven2/org/fxmisc/%{name}/%{name}/%{version}/%{name}-%{version}.pom BuildRequires: fdupes BuildRequires: maven-local BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.openjfx:javafx.controls) BuildRequires: mvn(org.reactfx:reactfx) BuildArch: noarch %description Efficient VirtualFlow for JavaFX. VirtualFlow is a layout container that lays out cells in a vertical or horizontal flow. The main feature of a virtual flow is that only the currently visible cells are rendered in the scene. You may have a list of thousands of items, but only, say, 30 cells are rendered at any given time. %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc API documentation for %{name}. %prep %autosetup -n Flowless-%{version} cp %{SOURCE1} pom.xml %pom_add_dep org.openjfx:javafx.controls %pom_change_dep :reactfx :::compile %pom_add_plugin org.apache.maven.plugins:maven-jar-plugin . \ ' org.fxmisc.%{name} ' %pom_xpath_inject pom:project 'bundle' %pom_add_plugin org.apache.felix:maven-bundle-plugin . \ 'true org.fxmisc.%{name} %{name} ' %{mvn_file} : %{name} %build %{mvn_build} -f -- -Dsource=8 %install %mvn_install %fdupes %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles %license LICENSE %doc {CHANGELOG,README}.md %files javadoc -f .mfiles-javadoc %license LICENSE %changelog