File jd-gui.spec of Package jd-gui
#
# spec file for package jd-gui
#
# Copyright (c) 2023 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: jd-gui
Version: 1.6.6
Release: 1.0
License: GPL-3.0-only
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Development/Tools/Other
Summary: A standalone graphical utility that displays Java source codes of class files
URL: https://java-decompiler.github.io/
Source0: %{name}-%{version}.jar
Source1: %name.png
Source2: %name.desktop
BuildRequires: update-desktop-files
BuildArch: noarch
Requires: java
%description
The "Java Decompiler project" aims to develop tools in order to decompile and
analyze Java 5 "byte code" and the later versions.
JD-GUI is a standalone graphical utility that displays Java source codes of
".class" files. You can browse the reconstructed source code with the JD-GUI
for instant access to methods and fields.
%prep
# cp %_sourcedir/%name.png .
cp %{SOURCE1} .
%build
%install
install -d %{buildroot}/usr/share/java
install -p %{SOURCE0} %{buildroot}/usr/share/java
install -d $RPM_BUILD_ROOT/usr/share/pixmaps
install -m 644 %name.png $RPM_BUILD_ROOT/usr/share/pixmaps/%name.png
%suse_update_desktop_file -i %{name}
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
/usr/share/java
/usr/share/java/%{name}-%{version}.jar
/usr/share/applications/%name.desktop
/usr/share/pixmaps/%name.png
%changelog