80 lines
2.1 KiB
RPMSpec
80 lines
2.1 KiB
RPMSpec
%define minver %(echo %version | cut -d. -f2)
|
|
Name: java_cup
|
|
Version: 0.11b
|
|
Release: 1mamba
|
|
Summary: CUP Parser Generator for Java
|
|
Group: Development/Tools
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www2.cs.tum.edu/projects/cup/
|
|
Source0: http://www2.cs.tum.edu/projects/cup/releases/java-cup-bin-%{minver}-20160615.tar.gz
|
|
License: BSD, LGPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: javapackages
|
|
|
|
%description
|
|
%{name} is a LALR Parser Generator for Java.
|
|
|
|
%prep
|
|
%setup -q -c
|
|
|
|
%build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
|
install -m 644 java-cup-%{minver}.jar \
|
|
%{buildroot}%{_javadir}/java-cup-%{version}.jar
|
|
install -m 644 java-cup-%{minver}-runtime.jar \
|
|
%{buildroot}%{_javadir}/java-cup-runtime-%{version}.jar
|
|
|
|
(
|
|
cd %{buildroot}%{_javadir}
|
|
for jar in *-%{version}*; do
|
|
ln -sf ${jar} ${jar/-%{version}/}
|
|
done
|
|
ln -sf java-cup-%{version}.jar %{name}.jar
|
|
ln -sf java-cup-runtime-%{version}.jar %{name}-runtime.jar
|
|
)
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_javadir}/java-cup-%{version}.jar
|
|
%{_javadir}/java-cup-runtime-%{version}.jar
|
|
%{_javadir}/java-cup-runtime.jar
|
|
%{_javadir}/java-cup.jar
|
|
%{_javadir}/java_cup-runtime.jar
|
|
%{_javadir}/java_cup.jar
|
|
|
|
%changelog
|
|
* Mon May 31 2021 Automatic Build System <autodist@mambasoft.it> 0.11b-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Feb 25 2011 gil <puntogil@libero.it> 0.11a-4mamba
|
|
- rebuilt with java-gcj-compat 1.0.80-20mamba support
|
|
|
|
* Wed Nov 24 2010 gil <puntogil@libero.it> 0.11a-3mamba
|
|
- add maven 2 pom
|
|
|
|
* Mon Jan 11 2010 gil <puntogil@libero.it> 0.11a-2mamba
|
|
- rebuilt
|
|
|
|
* Mon Mar 23 2009 gil <puntogil@libero.it> 0.11a-1mamba
|
|
- update to 0.11a
|
|
- bootstrap
|
|
|
|
* Mon Mar 02 2009 gil <puntogil@libero.it> 0.10k-3mamba
|
|
- rebuilt
|
|
|
|
* Mon Mar 02 2009 gil <puntogil@libero.it> 0.10k-2mamba
|
|
- rebuilt
|
|
|
|
* Thu Feb 19 2009 gil <puntogil@libero.it> 0.10k-1mamba
|
|
- package created by autospec
|