From 9f6bf74f73301db7162a72a97d8c9585b0a3f4bb Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 22:02:10 +0100 Subject: [PATCH] package created using the webbuild interface [release 4.24.2022_06R-1mamba;Thu Sep 08 2022] --- README.md | 2 ++ eclipse-java.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++++ eclipse.desktop | 9 ++++++ 3 files changed, 86 insertions(+) create mode 100644 eclipse-java.spec create mode 100644 eclipse.desktop diff --git a/README.md b/README.md index 251ba6c..4740982 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # eclipse-java +Highly extensible IDE for Java developers. + diff --git a/eclipse-java.spec b/eclipse-java.spec new file mode 100644 index 0000000..d4d5638 --- /dev/null +++ b/eclipse-java.spec @@ -0,0 +1,75 @@ +%define pkgver %(echo %version | cut -d. -f3 | tr _ -) +%define majver %(echo %version | cut -d. -f1-2) +Name: eclipse-java +Version: 4.24.2022_06 +Release: 1mamba +Summary: Highly extensible IDE for Java developers +Group: Graphical Desktop/Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.eclipse.org/ +Source: https://ftp.halifax.rwth-aachen.de/eclipse/technology/epp/downloads/release/%{pkgver}/R/eclipse-java-%{pkgver}-R-linux-gtk-x86_64.tar.gz +#Source: https://www.eclipse.org/downloads/download.php?mirror_id=1045&file=/technology/epp/downloads/release/%{pkgver}/R/eclipse-java-%{pkgver}-R-linux-gtk-x86_64.tar.gz +Source1: eclipse.desktop +License: Eclipse Public License +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +Requires: java-runtime + +%description +Highly extensible IDE for Java developers. + +%debug_package + +%global __requires_exclude_from ^%{_libdir}/eclipse/.*$ +%global __provides_exclude_from ^%{_libdir}/eclipse/.*$ + +%prep +%setup -q -c %{name}-%{version} -D -T + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d %{buildroot}%{_libdir} +cp -r eclipse %{buildroot}%{_libdir}/eclipse + +install -d %{buildroot}%{_bindir} +ln -s ../%{_lib}/eclipse/eclipse %{buildroot}%{_bindir}/eclipse + +install -Dm0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/eclipse.desktop + +for i in 16 22 24 32 48 64 128 256 512 1024 ; do + install -Dm0644 eclipse/plugins/org.eclipse.platform_%{majver}*/eclipse$i.png \ + %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/eclipse.png +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/eclipse +%dir %{_libdir}/eclipse +%{_libdir}/eclipse/.eclipseproduct +%{_libdir}/eclipse/artifacts.xml +%{_libdir}/eclipse/icon.xpm +%dir %{_libdir}/eclipse/configuration +%{_libdir}/eclipse/configuration/* +%{_libdir}/eclipse/eclipse +%{_libdir}/eclipse/eclipse.ini +%dir %{_libdir}/eclipse/features +%{_libdir}/eclipse/features/* +%dir %{_libdir}/eclipse/p2 +%{_libdir}/eclipse/p2/* +%dir %{_libdir}/eclipse/readme +%{_libdir}/eclipse/readme/* +%dir %{_libdir}/eclipse/plugins +%{_libdir}/eclipse/plugins/* +%{_datadir}/applications/eclipse.desktop +%{_datadir}/icons/hicolor/*/apps/eclipse.png + +%changelog +* Thu Sep 08 2022 Silvan Calarco 4.24.2022_06R-1mamba +- package created using the webbuild interface diff --git a/eclipse.desktop b/eclipse.desktop new file mode 100644 index 0000000..8d5e875 --- /dev/null +++ b/eclipse.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Eclipse +Comment=Java Development Environment +Icon=eclipse +Exec=eclipse +Terminal=false +Type=Application +Categories=Development;IDE;Java; +StartupNotify=true