Files
flowless/flowless.spec

95 lines
2.7 KiB
RPMSpec

#
# 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 . \
'<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>org.fxmisc.%{name}</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>'
%pom_xpath_inject pom:project '<packaging>bundle</packaging>'
%pom_add_plugin org.apache.felix:maven-bundle-plugin . \
'<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>org.fxmisc.%{name}</Bundle-SymbolicName>
<Bundle-Name>%{name}</Bundle-Name>
</instructions>
</configuration>'
%{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