Fix build with both xmvn-mojo:javadoc and javadoc:aggregate OBS-URL: https://build.opensuse.org/request/show/1264636 OBS-URL: https://build.opensuse.org/package/show/Java:packages/controlsfx?expand=0&rev=2
126 lines
4.4 KiB
RPMSpec
126 lines
4.4 KiB
RPMSpec
#
|
|
# 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 '<packaging>bundle</packaging>' %{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} \
|
|
'<configuration>
|
|
<release>11</release>
|
|
<compilerArgs>
|
|
<arg>--add-exports=javafx.base/com.sun.javafx.event=org.controlsfx.controls</arg>
|
|
<arg>--add-exports=javafx.controls/com.sun.javafx.scene.control=org.controlsfx.controls</arg>
|
|
<arg>--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=org.controlsfx.controls</arg>
|
|
</compilerArgs>
|
|
</configuration>'
|
|
|
|
%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin %{name} \
|
|
'<configuration>
|
|
<release>11</release>
|
|
<additionalJOptions>
|
|
<additionalJOption>--add-exports=javafx.base/com.sun.javafx.event=org.controlsfx.controls</additionalJOption>
|
|
<additionalJOption>--add-exports=javafx.controls/com.sun.javafx.scene.control=org.controlsfx.controls</additionalJOption>
|
|
<additionalJOption>--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=org.controlsfx.controls</additionalJOption>
|
|
</additionalJOptions>
|
|
</configuration>'
|
|
|
|
%pom_add_plugin org.apache.felix:maven-bundle-plugin %{name} \
|
|
'<extensions>true</extensions>
|
|
<configuration>
|
|
<instructions>
|
|
<Bundle-Name>ControlsFX</Bundle-Name>
|
|
<Bundle-Description>High quality UI controls and other tools to complement the core JavaFX distribution</Bundle-Description>
|
|
<Specification-Title>ControlsFX</Specification-Title>
|
|
<Specification-Version>%{version}</Specification-Version>
|
|
<Implementation-Title>ControlsFX</Implementation-Title>
|
|
<Export-Package>!impl.org.controlsfx.*,org.controlsfx.*</Export-Package>
|
|
</instructions>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>bundle-manifest</id>
|
|
<phase>process-classes</phase>
|
|
<goals>
|
|
<goal>manifest</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>'
|
|
|
|
%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
|