Name: bluej Version: 5.0.2 Release: 1%{?dist} Summary: An integrated Java environment specifically designed for introductory teaching License: GPLv2+ URL: http://www.bluej.org/ Source0: http://bluej.org/download/files/source/BlueJ-source-%(echo %{version}|tr -d .).zip BuildRequires: openjfx BuildRequires: ant BuildRequires: unzip BuildRequires: desktop-file-utils BuildArch: noarch %description The BlueJ environment was developed as part of a university research project about teaching object-orientation to beginners. The aim of BlueJ is to provide an easy-to-use teaching environment for the Java language that facilitates the teaching of Java to first year students. Special emphasis has been placed on visualization and interaction techniques to create a highly interactive environment that encourages experimentation and exploration. BlueJ is based on the Blue system. Blue is an integrated teaching environment and language, developed at the University of Sydney and Monash University, Australia. BlueJ provides a Blue-like environment for the Java language. %prep unzip -u %{SOURCE0} -d %{name}-%{version} cat <%{name}-%{version}/build.properties build_java_home=/usr java_command_dir_name=bin openjfx_path=/usr/lib/jvm/openjfx EOF sed -i 's|${openjfx_path}/lib|${openjfx_path}|g' %{name}-%{version}/build.xml %build cd %{name}-%{version} ant %install # Use mv, so we can use * below. %{__install} -d -m755 $RPM_BUILD_ROOT%{_javadir}/%{name} mv %{name}-%{version}/lib/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name} %{__install} -d -m755 $RPM_BUILD_ROOT%{_datadir}/java/%{name} cp -R %{name}-%{version}/lib/* $RPM_BUILD_ROOT%{_datadir}/java/%{name} %{__install} -d -m755 $RPM_BUILD_ROOT%{_bindir} cat >$RPM_BUILD_ROOT%{_bindir}/%{name} << EOF #!/bin/sh java -Djdk.gtk.version=2 -Dawt.useSystemAAFontSettings=on -Xmx512M --module-path /usr/lib/jvm/openjfx --add-modules javafx.controls --add-modules javafx.controls --add-modules javafx.fxml --add-modules javafx.graphics --add-modules javafx.media --add-modules javafx.swing --add-modules javafx.swt --add-modules javafx.web --add-opens javafx.graphics/com.sun.glass.ui=ALL-UNNAMED -cp /usr/share/java/bluej/bluej.jar bluej.Boot "\$@" EOF %{__chmod} 755 $RPM_BUILD_ROOT%{_bindir}/%{name} %files %license %{name}-%{version}/doc/LICENSE.txt %doc %{name}-%{version}/doc/README.TXT %{_bindir}/bluej %{_javadir}/%{name}/*.jar %{_datadir}/java/%{name}/ %changelog * Thu Jan 27 2022 W. Michael Petullo - 3.1.6-1 - Initial package, based on work by ars@linux-schulserver.de, schoett@gmx.de, and bluebat@member.fsf.org