This commit is contained in:
parent
35d88eaf96
commit
34bf239362
44
javacc.spec
44
javacc.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package javacc
|
# spec file for package javacc
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2000-2005, JPackage Project
|
# Copyright (c) 2000-2005, JPackage Project
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
@ -21,7 +21,7 @@
|
|||||||
Name: javacc
|
Name: javacc
|
||||||
Version: 7.0.4
|
Version: 7.0.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A parser/scanner generator for java
|
Summary: A Parser and Scanner Generator for Java
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: http://javacc.org
|
URL: http://javacc.org
|
||||||
@ -38,12 +38,13 @@ Requires: javapackages-tools
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Java Compiler Compiler (JavaCC) is the most popular parser generator for use
|
Java Compiler Compiler (JavaCC) is the most popular parser generator
|
||||||
with Java applications. A parser generator is a tool that reads a grammar
|
for use with Java applications. A parser generator is a tool that reads
|
||||||
specification and converts it to a Java program that can recognize matches to
|
a grammar specification and converts it to a Java program that can
|
||||||
the grammar. In addition to the parser generator itself, JavaCC provides other
|
recognize matches to the grammar. In addition to the parser generator
|
||||||
standard capabilities related to parser generation such as tree building (via
|
itself, JavaCC provides other standard capabilities related to parser
|
||||||
a tool called JJTree included with JavaCC), actions, debugging, etc.
|
generation such as tree building (via a tool called JJTree included
|
||||||
|
with JavaCC), actions, debugging, etc.
|
||||||
|
|
||||||
%package manual
|
%package manual
|
||||||
Summary: Manual for %{name}
|
Summary: Manual for %{name}
|
||||||
@ -70,17 +71,12 @@ This package contains the API documentation for %{name}.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
|
||||||
# Remove binary information in the source tar
|
|
||||||
find . -name "*.jar" -delete
|
|
||||||
find . -name "*.class" -delete
|
|
||||||
|
|
||||||
find ./examples -type f -exec sed -i 's/\r//' {} \;
|
find ./examples -type f -exec sed -i 's/\r//' {} \;
|
||||||
|
|
||||||
%build
|
# The pom dependencies are wrong
|
||||||
build-jar-repository -p bootstrap javacc
|
%pom_xpath_remove pom:project/pom:dependencies
|
||||||
|
|
||||||
# There is maven pom which doesn't really work for building. The tests don't
|
%build
|
||||||
# work either (even when using bundled jars).
|
|
||||||
ant \
|
ant \
|
||||||
-Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \
|
-Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \
|
||||||
jar javadoc
|
jar javadoc
|
||||||
@ -89,9 +85,16 @@ ant \
|
|||||||
%mvn_artifact --skip-dependencies pom.xml target/javacc-%{version}.jar
|
%mvn_artifact --skip-dependencies pom.xml target/javacc-%{version}.jar
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_file : %{name}
|
# jar
|
||||||
|
install -dm 0755 %{buildroot}%{_javadir}
|
||||||
%mvn_install -J target/javadoc
|
install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
|
# pom
|
||||||
|
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
||||||
|
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||||
|
%add_maven_depmap %{name}.pom %{name}.jar
|
||||||
|
# javadoc
|
||||||
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
cp -pr target/javadoc/* %{buildroot}%{_javadocdir}/%{name}/
|
||||||
%fdupes -s %{buildroot}%{_javadocdir}
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
%fdupes -s www
|
%fdupes -s www
|
||||||
%fdupes -s examples
|
%fdupes -s examples
|
||||||
@ -115,7 +118,8 @@ ln -s %{_bindir}/javacc %{buildroot}%{_bindir}/javacc.sh
|
|||||||
%files demo
|
%files demo
|
||||||
%doc examples
|
%doc examples
|
||||||
|
|
||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user