2024-01-06 00:16:01 +01:00
|
|
|
Name: javacc
|
2024-01-06 00:16:02 +01:00
|
|
|
Version: 7.0.13
|
2024-01-06 00:16:02 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 00:16:01 +01:00
|
|
|
Summary: JavaCC is a parser/scanner generator for java
|
|
|
|
Group: Development/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 00:16:02 +01:00
|
|
|
URL: https://javacc.github.io/javacc/
|
|
|
|
Source0: https://github.com/javacc/javacc/archive/refs/tags/javacc-%{version}.tar.gz
|
2024-01-06 00:16:01 +01:00
|
|
|
License: BSD
|
|
|
|
BuildRequires: apache-ant
|
2024-01-06 00:16:02 +01:00
|
|
|
BuildRequires: javapackages
|
|
|
|
BuildRequires: java-openjdk8
|
|
|
|
Requires: javapackages
|
2024-01-06 00:16:01 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Java Compiler Compiler (JavaCC) is the most popular parser generator for use with Java applications. A parser generator is a tool that reads a grammar specification and converts it to a Java program that can recognize matches to the grammar. In addition to the parser generator itself, JavaCC provides other standard capabilities related to parser generation such as tree building (via a tool called JJTree included with JavaCC), actions, debugging, etc.
|
|
|
|
|
|
|
|
%package demo
|
|
|
|
Group: Documentation
|
|
|
|
Summary: Examples for %{name}
|
|
|
|
|
|
|
|
%description demo
|
|
|
|
JavaCC is a parser/scanner generator for java.
|
|
|
|
|
|
|
|
This package contains examples for %{name}
|
|
|
|
|
|
|
|
%package manual
|
|
|
|
Group: Documentation
|
|
|
|
Summary: Manual for %{name}
|
|
|
|
|
|
|
|
%description manual
|
|
|
|
JavaCC is a parser/scanner generator for java.
|
|
|
|
|
|
|
|
This package contains manual for %{name}.
|
|
|
|
|
|
|
|
%prep
|
2024-01-06 00:16:02 +01:00
|
|
|
%setup -q -n javacc-javacc-%{version}
|
2024-01-06 00:16:01 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 00:16:02 +01:00
|
|
|
export JAVA_HOME=%{_jvmdir}/java-8-openjdk
|
|
|
|
ant
|
2024-01-06 00:16:01 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-06 00:16:02 +01:00
|
|
|
install -d -m0755 %{buildroot}%{_javadir}/javacc/{docs,examples} %{buildroot}%{_bindir}
|
2024-01-06 00:16:01 +01:00
|
|
|
|
2024-01-06 00:16:02 +01:00
|
|
|
# install examples
|
|
|
|
cp -R examples/ %{buildroot}%{_javadir}/javacc/examples
|
2024-01-06 00:16:01 +01:00
|
|
|
|
2024-01-06 00:16:02 +01:00
|
|
|
# install documentation
|
|
|
|
cp -R docs/ %{buildroot}%{_javadir}/javacc/docs
|
2024-01-06 00:16:01 +01:00
|
|
|
|
2024-01-06 00:16:02 +01:00
|
|
|
# install jar
|
|
|
|
install -m755 -D target/javacc-%{version}.jar %{buildroot}%{_javadir}/javacc/bin/lib/javacc.jar
|
|
|
|
ln -s javacc/bin/lib/javacc.jar %{buildroot}%{_javadir}/javacc.jar
|
2024-01-06 00:16:01 +01:00
|
|
|
|
2024-01-06 00:16:02 +01:00
|
|
|
# generate scripts to allow direct execution
|
|
|
|
for i in jjtree jjdoc javacc; do
|
|
|
|
printf "#\!bin/sh\nJAR=\"%{_javadir}/javacc/bin/lib/javacc.jar\"\n\njava -classpath \"\$JAR\" $i \"\$@\"\n" > %{buildroot}%{_javadir}/javacc/bin/$i
|
|
|
|
ln -s %{_javadir}/javacc/bin/$i %{buildroot}%{_bindir}/$i
|
|
|
|
done
|
2024-01-06 00:16:01 +01:00
|
|
|
|
2024-01-06 00:16:02 +01:00
|
|
|
# Set permissions
|
|
|
|
chmod -R 755 %{buildroot}%{_javadir}/javacc/bin %{buildroot}%{_bindir}
|
2024-01-06 00:16:01 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 00:16:02 +01:00
|
|
|
%{_bindir}/javacc
|
|
|
|
%{_bindir}/jjdoc
|
|
|
|
%{_bindir}/jjtree
|
|
|
|
%dir %{_javadir}/javacc
|
|
|
|
%dir %{_javadir}/javacc/bin
|
|
|
|
%{_javadir}/javacc/bin/*
|
|
|
|
%dir %{_datadir}/java/javacc/bin/lib
|
|
|
|
%{_datadir}/java/javacc/bin/lib/javacc.jar
|
2024-01-06 00:16:01 +01:00
|
|
|
%{_javadir}/javacc.jar
|
2024-01-06 00:16:02 +01:00
|
|
|
%doc LICENSE
|
2024-01-06 00:16:01 +01:00
|
|
|
|
|
|
|
%files demo
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 00:16:02 +01:00
|
|
|
%dir %{_javadir}/javacc/examples
|
|
|
|
%{_javadir}/javacc/examples/*
|
2024-01-06 00:16:01 +01:00
|
|
|
|
|
|
|
%files manual
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 00:16:02 +01:00
|
|
|
%dir %{_javadir}/javacc/docs
|
|
|
|
%{_javadir}/javacc/docs/*
|
2024-01-06 00:16:01 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 00:16:02 +01:00
|
|
|
* Mon Nov 20 2023 Automatic Build System <autodist@mambasoft.it> 7.0.13-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 00:16:02 +01:00
|
|
|
* Fri Jul 08 2022 Automatic Build System <autodist@mambasoft.it> 7.0.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 00:16:02 +01:00
|
|
|
* Thu Apr 21 2022 Automatic Build System <autodist@mambasoft.it> 7.0.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 00:16:02 +01:00
|
|
|
* Tue Nov 30 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 7.0.10-1mamba
|
|
|
|
- update to 7.0.10
|
|
|
|
|
2024-01-06 00:16:01 +01:00
|
|
|
* Fri Mar 25 2011 gil <puntogil@libero.it> 5.0-4mamba
|
|
|
|
- rebuilt with java-gcj-compat support
|
|
|
|
|
|
|
|
* Sun Nov 07 2010 gil <puntogil@libero.it> 5.0-3mamba
|
|
|
|
- rebuilt devel
|
|
|
|
|
|
|
|
* Sat Apr 17 2010 gil <puntogil@libero.it> 5.0-2mamba
|
|
|
|
- rebuilt with system javacc.jar
|
|
|
|
|
|
|
|
* Sat Apr 17 2010 gil <puntogil@libero.it> 5.0-1mamba
|
|
|
|
- update to 5.0
|
|
|
|
- added maven pom
|
|
|
|
- bootstrap
|
|
|
|
|
|
|
|
* Thu Feb 26 2009 gil <puntogil@libero.it> 4.2-1mamba
|
|
|
|
- package created by autospec
|