File jdtls.spec of Package jdtls
Name: jdtls
Version: 1.49.0
Release: 2
Summary: Java language server
License: EPL-2.0
URL: https://download.eclipse.org/jdtls/milestones/
Source0: %{name}-%{version}.tar.gz
Source1: jdtls
%description
The Eclipse JDT Language Server is a Java language specific implementation of the Language Server Protocol and can be used with any editor that supports the protocol, to offer good support for the Java Language.
%global debug_package %{nil}
%prep
%autosetup -c
%install
mkdir -p %{buildroot}/usr/libexec/jdtls/
mkdir -p %{buildroot}/usr/share/jdtls/
mkdir -p %{buildroot}/usr/bin
cp -r bin %{buildroot}/usr/libexec/jdtls/
cp -r plugins %{buildroot}/usr/libexec/jdtls/
cp -r features %{buildroot}/usr/libexec/jdtls/
cp -r config_linux %{buildroot}/usr/share/jdtls/
cp %{SOURCE1} %{buildroot}/usr/bin/
chmod +x %{buildroot}/usr/bin/jdtls
%files
%dir /usr/libexec/jdtls
%dir /usr/share/jdtls
/usr/libexec/jdtls/*
/usr/share/jdtls/*
/usr/bin/jdtls
%changelog