79 lines
2.5 KiB
RPMSpec
79 lines
2.5 KiB
RPMSpec
|
#
|
||
|
# spec file for package jfxtras
|
||
|
#
|
||
|
# 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/
|
||
|
#
|
||
|
|
||
|
|
||
|
%global version_major 17
|
||
|
%global version_minor 1
|
||
|
%global gh_version r%{version_major}-r%{version_minor}
|
||
|
Name: jfxtras
|
||
|
Version: %{version_major}.%{version_minor}
|
||
|
Release: 0
|
||
|
Summary: A supporting library for JavaFX
|
||
|
License: BSD-3-Clause
|
||
|
Group: Development/Libraries/Java
|
||
|
URL: https://%{name}.org/
|
||
|
Source0: https://github.com/JFXtras/%{name}/archive/refs/tags/%{gh_version}.tar.gz
|
||
|
BuildRequires: fdupes
|
||
|
BuildRequires: maven-local
|
||
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
||
|
BuildRequires: mvn(org.openjfx:javafx.base)
|
||
|
BuildRequires: mvn(org.openjfx:javafx.controls)
|
||
|
BuildRequires: mvn(org.openjfx:javafx.fxml)
|
||
|
BuildConflicts: java-devel < 17
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description
|
||
|
A supporting library for JavaFX, containing helper classes, extended layouts,
|
||
|
controls and other interesting widgets.
|
||
|
|
||
|
%package javadoc
|
||
|
Summary: API documentation for %{name}
|
||
|
Group: Documentation/HTML
|
||
|
|
||
|
%description javadoc
|
||
|
API documentation for %{name}.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{name}-%{gh_version}
|
||
|
|
||
|
%pom_disable_module %{name}-test-support
|
||
|
|
||
|
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
|
||
|
%pom_remove_plugin :maven-source-plugin
|
||
|
%pom_remove_plugin com.mycila:license-maven-plugin
|
||
|
|
||
|
%pom_change_dep -r org.openjfx:javafx-fxml org.openjfx:javafx.fxml
|
||
|
%pom_change_dep -r org.openjfx:javafx-base org.openjfx:javafx.base
|
||
|
%pom_change_dep -r org.openjfx:javafx-controls org.openjfx:javafx.controls
|
||
|
|
||
|
%build
|
||
|
%{mvn_build} -f -- \
|
||
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)
|
||
|
|
||
|
%install
|
||
|
%mvn_install
|
||
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
||
|
|
||
|
%files -f .mfiles
|
||
|
%license license-template.txt
|
||
|
%doc README.md
|
||
|
|
||
|
%files javadoc -f .mfiles-javadoc
|
||
|
%license license-template.txt
|
||
|
|
||
|
%changelog
|