# # spec file for package controlsfx # # Copyright (c) 2024 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: controlsfx Version: 11.2.0 Release: 0 Summary: High quality UI controls to complement the core JavaFX distribution License: BSD-3-Clause Group: Development/Libraries/Java URL: https://controlsfx.org/ Source0: https://github.com/%{name}/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: https://repo1.maven.org/maven2/org/%{name}/%{name}/%{version}/%{name}-%{version}.pom BuildRequires: fdupes BuildRequires: maven-local BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin) BuildRequires: mvn(org.openjfx:javafx.base) BuildRequires: mvn(org.openjfx:javafx.controls) BuildRequires: mvn(org.openjfx:javafx.media) BuildArch: noarch %description ControlsFX is an open source project for JavaFX that aims to provide really high quality UI controls and other tools to complement the core JavaFX distribution. It has been developed for JavaFX 8.0 and beyond, and has a guiding principle of only accepting new controls/features when all existing code is at an acceptably high level, including thankless jobs like having high quality javadoc documentation. This ensures a high quality release is available at all times, with all experimental work being done in branches of the main code base. %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc API documentation for %{name}. %prep %setup -q cp %{SOURCE1} %{name}/pom.xml %pom_xpath_inject pom:project 'bundle' %{name} %pom_add_dep org.openjfx:javafx.base %{name} %pom_add_dep org.openjfx:javafx.controls %{name} %pom_add_dep org.openjfx:javafx.media %{name} %pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin %{name} \ ' 11 --add-exports=javafx.base/com.sun.javafx.event=org.controlsfx.controls --add-exports=javafx.controls/com.sun.javafx.scene.control=org.controlsfx.controls --add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=org.controlsfx.controls ' %pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin %{name} \ ' 11 --add-exports=javafx.base/com.sun.javafx.event=org.controlsfx.controls --add-exports=javafx.controls/com.sun.javafx.scene.control=org.controlsfx.controls --add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=org.controlsfx.controls ' %pom_add_plugin org.apache.felix:maven-bundle-plugin %{name} \ 'true ControlsFX High quality UI controls and other tools to complement the core JavaFX distribution ControlsFX %{version} ControlsFX !impl.org.controlsfx.*,org.controlsfx.* bundle-manifest process-classes manifest ' %build pushd %{name} %{mvn_build} -fj -- javadoc:aggregate popd %install pushd %{name} %mvn_install %fdupes %{buildroot}%{_javadocdir}/%{name} popd %files -f %{name}/.mfiles %license license.txt %doc readme.md %files javadoc -f %{name}/.mfiles-javadoc %license license.txt %changelog