eclipse-ecj/eclipse-ecj.spec
Silvan Calarco 5bc50da961 update to 4.34
use prebuilt jar; specfile updates; closes #1 [release 4.34-1mamba;Thu Dec 05 2024]
2024-12-05 22:27:36 +01:00

79 lines
2.3 KiB
RPMSpec

%define pkgdate 202411201800
Name: eclipse-ecj
Version: 4.34
Release: 1mamba
Summary: Eclipse Compiler for Java
Group: Development/Languages
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.eclipse.org/
Source: https://archive.eclipse.org/eclipse/downloads/drops4/R-%{version}-%{pkgdate}/ecj-%{version}.jar
Source1: java-ecj.sh.in
License: EPL-2.0
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: jpackage-utils
%description
ECJ is the Java bytecode compiler of the Eclipse Platform. It is also known as the JDT Core batch compiler.
%prep
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -D -m644 %{SOURCE0} %{buildroot}%{_javadir}/ecj-%{version}.jar
ln -s ecj-%{version}.jar %{buildroot}%{_javadir}/eclipse-ecj-%{version}.jar
ln -s eclipse-ecj-%{version}.jar %{buildroot}%{_javadir}/eclipse-ecj.jar
ln -s ecj-%{version}.jar %{buildroot}%{_javadir}/jdtcore.jar
install -D -m755 %{SOURCE1} %{buildroot}%{_bindir}/ecj
sed -i "s:@JAVADIR@:%{_javadir}:" %{buildroot}%{_bindir}/ecj
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/ecj
%{_javadir}/ecj-%{version}.jar
%{_javadir}/eclipse-ecj-%{version}.jar
%{_javadir}/eclipse-ecj.jar
%{_javadir}/jdtcore.jar
%changelog
* Thu Dec 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 4.34-1mamba
- update to 4.34
- use prebuilt jar; specfile updates; closes #1
* Sat Dec 23 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 4.7.2-1mamba
- update to 4.7.2
* Tue Oct 29 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 4.3.1-1mamba
- update to 4.3.1
* Fri Jul 22 2011 Automatic Build System <autodist@mambasoft.it> 3.7-1mamba
- update to 3.7
* Fri Sep 17 2010 Automatic Build System <autodist@mambasoft.it> 3.6-1mamba
- update to 3.6
* Fri Jun 11 2010 Automatic Build System <autodist@mambasoft.it> 3.5.2-1mamba
- update to 3.5.2
* Sat Sep 12 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5-1mamba
- update to 3.5
* Sat Apr 04 2009 gil <puntogil@libero.it> 3.4.2-2mamba
- rebuilt
* Fri Mar 13 2009 gil <puntogil@libero.it> 3.4.2-1mamba
- renamed eclipse-ecj
* Fri Mar 13 2009 gil <puntogil@libero.it> 3.4.2-1mamba
- package created by autospec