Name: cookcc Version: 0.3.3 Release: 1 Summary: Lexer and Parser Generator License: BSD URL: https://github.com/coconut2015/cookcc # svn export -r 678 http://cookcc.googlecode.com/svn/trunk/ cookcc-0.3.3 # tar -J -cf cookcc-0.3.3.tar.xz cookcc-0.3.3 Source0: %{name}-%{version}.tar.xz Source1: %{name}-%{version}-pom.xml Patch0: %{name}-%{version}-xerces.patch Patch1: %{name}-%{version}-buildxml.patch Patch2: %{name}-%{version}-port-to-jsr-269.patch Patch3: %{name}-0.3.3-freemarker2.3.2+.patch Patch4: 0001-Fix-build-failure-because-of-freemarker.patch BuildRequires: ant cookxml freemarker javapackages-local xerces-j2 Requires: freemarker cookxml xerces-j2 BuildArch: noarch %description CookCC is a lexer and parser (LALR (1)) generator project, combined. It is written in Java, but the target languages can vary. %package help Summary: Documents for %{name} Provides: %{name}-javadoc = %{version}-%{release} Obsoletes: %{name}-javadoc < %{version}-%{release} %description help This package contains man pages and other related documents for %{name}. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 find . -name '*.jar' -delete %build CLASSPATH=$(build-classpath xerces-j2 freemarker cookxml) ant cookcc_jar javadocs %install %mvn_artifact %{SOURCE1} dist/%{name}-%{version}.jar %mvn_install -J javadocs %files -f .mfiles %license LICENSE_cookcc.txt %files help -f .mfiles-javadoc %license LICENSE_cookcc.txt %changelog * Fri Aug 14 2020 leiju - 0.3.3-1 - Package init