Files
miglayout/miglayout.spec

132 lines
4.4 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package miglayout
#
# 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: miglayout
Accepting request 1219833 from home:urbic:branches:Java:packages - Update to v11.4.2 * f6e1efc cache the screen the node is on * ef184b8 relayout the code * 4f79c03 some variable renaming * e022f94 Use the actual screen for DPI * 448e671 v11.4.1 - Update to v11.4.1 * 23ece50 Issue 107 - use a default DPI in case JavaFX reports 0 * 06b7ba1 v11.4 * d6ac211 issue #106 sizegroup does not work in MigPane * f106ef8 Merge pull request #105 from ptziegler/remove-ideutil-references * Remove remaining references to ideutil module + 8ab6146 Remove remaining references to ideutil module * Amends 885ebff ff57957 V11.3 - dropped ideutil module 6a57a8a Merge pull request #104 from ptziegler/issue103 * Move IDEUtil class to miglayout-core and delete obsolete ideutil project + 885ebff Move IDEUtil class to miglayout-core and delete obsolete ideutil project * The IDEUtil class is used to expose package-private functionality from miglayout-core to external projects. This mechanism fails in an OSGi environment, because the IDEUtil class is loaded by a different classloader that is used to load classes it tries to access. To solve this problem, move IDEUtil to miglayout-core. Given that the ideutil project is now empty, it is removed from the repository. * resolves #103 + 4d12448 released 11.2 + 59eb209 Merge pull request #100 from vlsi/ci_for_prs * chore: excute CI tests in PRs + bf1c1b9 chore: excute CI tests in PRs + 1396476 fix warnings + 598ab3e Merge pull request #96 from vlsi/deprecations * Fix Java deprecations + 94bd9cc style: replace deprecated getConstaints with getConstraints + beaf337 style: replace deprecated setConstaints with setConstraints + f299032 style: suppress generic array creation warning in LinkHandler + 2a550af deprecation: replace new Float(x) with autoboxing + 3f139f1 chore: add -Werror and -Xlint:all Java compiler options + 36e1780 chore: make mvnw executable + 90875f6 added error-prone to prevent toLowerCase() issues + 39ab4d5 toLowerCase either needs hardcode text or use Locale.ROOT because of Locale (tr_TR) issues + 341e16b adding stongly typed methods for common usages + c37e39c to 11.2-SNAPSHOT + 657123c remove release profile + 18bcfbe trying to overwrite github + 4fb63a8 attempting to release 11.1 - Update to v11.4 * f106ef8 Merge pull request #105 from ptziegler/remove-ideutil-references * Remove remaining references to ideutil module + 8ab6146 Remove remaining references to ideutil module * Amends 885ebff +ff57957 V11.3 - dropped ideutil module OBS-URL: https://build.opensuse.org/request/show/1219833 OBS-URL: https://build.opensuse.org/package/show/Java:packages/miglayout?expand=0&rev=4
2024-10-31 21:20:19 +00:00
Version: 11.4.2
Release: 0
Summary: Official MiG Layout for Swing, SWT and JavaFX
License: BSD-1-Clause
Group: Development/Libraries/Java
URL: https://miglayout.com/
Source0: https://github.com/mikaelgrev/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.eclipse.swt:org.eclipse.swt)
BuildRequires: mvn(org.openjfx:javafx.controls)
BuildRequires: mvn(org.openjfx:javafx.graphics)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch: noarch
%description
Official MiG Layout for Swing, SWT and JavaFX.
For Java developers writing GUI layouts by hand that wants simplicity, power
and automatic per platform fidelity, that are dissatisfied with the current
layout managers in Swing, JavaFX and SWT, MigLayout solves your layout
problems. User interfaces created with MigLayout is easy to maintain, you will
understand how the layout will look like just by looking at the source code.
MigLayout is a superbly versatile JavaFX/SWT/Swing layout manager that makes
layout problems trivial. It is using String or API type-checked constraints to
format the layout. MigLayout can produce flowing, grid based, absolute (with
links), grouped and docking layouts. You will never have to switch to another
layout manager ever again! MigLayout is created to be to manually coded layouts
what Matisse/GroupLayout is to IDE supported visual layouts.
For documentation see http://miglayout.com
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q
chmod 0644 src/site/resources/docs/{,examples/}*.*
dos2unix README.md
%pom_disable_module demo
%pom_disable_module nbm
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]//pom:arg[contains(.,"-Xplugin:ErrorProne")]'
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]//pom:annotationProcessorPaths'
%define swt_module_name org.eclipse.swt
cat <<__MODULE_INFO__ >swt/src/main/java/module-info.java
module com.miglayout.swt
{
exports net.miginfocom.swt;
requires com.miglayout.core;
requires %{swt_module_name};
}
__MODULE_INFO__
cat <<__MODULE_INFO__ >examples/src/main/java/module-info.java
module com.miglayout.examples
{
requires com.miglayout.core;
requires com.miglayout.swt;
requires com.miglayout.swing;
requires java.desktop;
requires %{swt_module_name};
}
__MODULE_INFO__
%pom_xpath_remove pom:project/pom:profiles swt
%pom_add_dep org.eclipse.swt:org.eclipse.swt:4.3 swt
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-javadoc-plugin
# Why org.openjfx:* artifacts use periods instead of hyphens in their Ids?
%pom_change_dep org.openjfx:javafx-base org.openjfx:javafx.base javafx
%pom_change_dep org.openjfx:javafx-controls org.openjfx:javafx.controls javafx
%pom_change_dep org.openjfx:javafx-fxml org.openjfx:javafx.fxml javafx
%pom_change_dep org.openjfx:javafx-graphics org.openjfx:javafx.graphics javafx
%pom_xpath_remove 'pom:reporting'
%build
%{mvn_build} -f
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license src/site/resources/docs/license.txt
%doc README.md
%doc src/site/resources/docs/cheatsheet.{html,pdf}
%doc src/site/resources/docs/whitepaper.html
%doc src/site/resources/docs/quickstart*.png
%doc src/site/resources/docs/QuickStart.pdf
%doc src/site/resources/docs/examples/
%doc src/site/resources/docs/MiGLayout.html
%files javadoc -f .mfiles-javadoc
%license src/site/resources/docs/license.txt
%changelog