- Update to v8.0.0 * A new color system Project Chroma - adding color palettes in Radiance + Color tokens + Color token association kinds + Color tokens bundles + Dependency on Ephemeral Chroma library + The migration guide covers all the breaking API changes in RadianceSkin, RadianceThemingSlices, painters and more * Theming + Use "Minimize" rather than "Iconify" terminology for window-level actions + Fix application window jumps when moving between displays + Fix exception in setting fonts for JTree components + Consistent handling of selection highlights of disabled renderer-based components (lists, tables, trees) + Always show scroll thumb for scrollable content + Fix issues with slider track and thumb during printing + Fix visuals of internal frame header areas under skins that use matte decoration painter * Component + Update flow ribbon bands to accept a BaseProjection as components + Fix user interaction with comboboxes in minimized ribbon content + Fix application of icon filter strategies to ribbon application menu commands + Fix passing command overlays to secondary menu commands + Fix crash when some ribbon bands start in collapsed state + Fix active rollover / pressed state visuals for disabled command buttons + Fix command buttons to be updated when secondary content model is updated + Fix display of key tips in collapsed ribbon bands hosted in popups * Dependency updates + Kotlin : 2.0.0 -> 2.1.20 + Kotlin coroutines : 1.8.1 -> 1.10.2 + Dokka : 1.9.20 -> 2.0.0 + Batik : 1.17 -> 1.19 + Retrofit : 2.11.0 -> 3.0.0 + Gradle : 8.8 -> 8.14 OBS-URL: https://build.opensuse.org/request/show/1288123 OBS-URL: https://build.opensuse.org/package/show/Java:packages/radiance?expand=0&rev=3
189 lines
6.4 KiB
RPMSpec
189 lines
6.4 KiB
RPMSpec
#
|
|
# spec file for package radiance
|
|
#
|
|
# 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: radiance
|
|
Version: 8.0.0
|
|
Release: 0
|
|
Summary: Building modern, elegant and fast Swing applications
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/Java
|
|
URL: https://github.com/kirill-grouchnikov/%{name}
|
|
Source0: %{name}-%{version}.tar.xz
|
|
Source1: https://repo1.maven.org/maven2/org/pushing-pixels/%{name}-common/%{version}/%{name}-common-%{version}.pom
|
|
Source2: https://repo1.maven.org/maven2/org/pushing-pixels/%{name}-animation/%{version}/%{name}-animation-%{version}.pom
|
|
Source3: https://repo1.maven.org/maven2/org/pushing-pixels/%{name}-theming/%{version}/%{name}-theming-%{version}.pom
|
|
Source4: https://repo1.maven.org/maven2/org/pushing-pixels/%{name}-theming-extras/%{version}/%{name}-theming-extras-%{version}.pom
|
|
Source5: https://repo1.maven.org/maven2/org/pushing-pixels/%{name}-component/%{version}/%{name}-component-%{version}.pom
|
|
Source6: https://repo1.maven.org/maven2/org/pushing-pixels/%{name}-svg-transcoder/%{version}/%{name}-svg-transcoder-%{version}.pom
|
|
Source7: https://repo1.maven.org/maven2/org/pushing-pixels/%{name}-theming-debugger/%{version}/%{name}-theming-debugger-%{version}.pom
|
|
BuildRequires: fdupes
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(org.apache.xmlgraphics:batik-bridge)
|
|
BuildRequires: mvn(org.apache.xmlgraphics:batik-transcoder)
|
|
BuildRequires: mvn(org.pushing-pixels:ephemeral-chroma)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Radiance is a collection of libraries for writing modern, elegant and fast
|
|
Swing applications based on the Ephemeral design system. It is built with Java
|
|
11, and runs on Java 9 and later.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
chmod 0644 LICENSE README.md $(find docs -type f)
|
|
|
|
cp %{SOURCE1} common/pom.xml
|
|
cp %{SOURCE2} animation/pom.xml
|
|
cp %{SOURCE3} theming/pom.xml
|
|
cp %{SOURCE4} theming-extras/pom.xml
|
|
cp %{SOURCE5} component/pom.xml
|
|
cp %{SOURCE6} tools/svg-transcoder/pom.xml
|
|
cp %{SOURCE7} tools/theming-debugger/pom.xml
|
|
|
|
cat >pom.xml <<__POM__
|
|
<project
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>org.pushing-pixels</groupId>
|
|
<artifactId>%{name}-parent</artifactId>
|
|
<version>%{version}</version>
|
|
<packaging>pom</packaging>
|
|
<modules>
|
|
<module>common</module>
|
|
<module>animation</module>
|
|
<module>theming</module>
|
|
<module>theming-extras</module>
|
|
<module>component</module>
|
|
<module>tools/svg-transcoder</module>
|
|
<module>tools/theming-debugger</module>
|
|
</modules>
|
|
</project>
|
|
__POM__
|
|
|
|
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin common \
|
|
'<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Automatic-Module-Name>org.pushingpixels.radiance.common</Automatic-Module-Name>
|
|
<Radiance-Version>%{version}</Radiance-Version>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>'
|
|
|
|
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin animation \
|
|
'<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Automatic-Module-Name>org.pushingpixels.radiance.animation</Automatic-Module-Name>
|
|
<Radiance-Version>%{version}</Radiance-Version>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>'
|
|
|
|
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin theming \
|
|
'<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Automatic-Module-Name>org.pushingpixels.radiance.theming</Automatic-Module-Name>
|
|
<Radiance-Version>%{version}</Radiance-Version>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>'
|
|
|
|
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin theming-extras \
|
|
'<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Automatic-Module-Name>org.pushingpixels.radiance.theming.extras</Automatic-Module-Name>
|
|
<Radiance-Version>%{version}</Radiance-Version>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>'
|
|
|
|
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin component \
|
|
'<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Automatic-Module-Name>org.pushingpixels.radiance.component</Automatic-Module-Name>
|
|
<Radiance-Version>%{version}</Radiance-Version>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>'
|
|
|
|
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin tools/svg-transcoder \
|
|
'<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Automatic-Module-Name>org.pushingpixels.radiance.svg.transcoder</Automatic-Module-Name>
|
|
<Radiance-Version>%{version}</Radiance-Version>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>'
|
|
|
|
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin tools/theming-debugger \
|
|
'<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Automatic-Module-Name>org.pushingpixels.radiance.theming.debugger</Automatic-Module-Name>
|
|
<Radiance-Version>%{version}</Radiance-Version>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>'
|
|
|
|
%pom_change_dep -r org.pushing-pixels: :::compile
|
|
|
|
%pom_remove_dep org.apache.xmlgraphics:batik-all tools/svg-transcoder
|
|
|
|
%pom_add_dep org.apache.xmlgraphics:batik-bridge tools/svg-transcoder
|
|
%pom_add_dep org.apache.xmlgraphics:batik-transcoder tools/svg-transcoder
|
|
|
|
%build
|
|
%{mvn_build} -f -- \
|
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
|
|
-Dmaven.compiler.release=9 -DlegacyMode=true -Dverbose=true
|
|
|
|
%install
|
|
%{mvn_package} :%{name}-parent __noinstall
|
|
|
|
%mvn_install
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
install -dm0755 %{buildroot}%{_defaultdocdir}/%{name}
|
|
cp -pr docs %{buildroot}%{_defaultdocdir}/%{name}
|
|
%fdupes %{buildroot}%{_defaultdocdir}/%{name}
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE
|
|
%doc README.md docs
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE
|
|
|
|
%changelog
|