This commit is contained in:
commit
ccb1cc2b92
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
25
javacc
Normal file
25
javacc
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# JavaCC script
|
||||
# JPackage Project <http://www.jpackage.org/>
|
||||
|
||||
# Source functions library
|
||||
if [ -f /usr/share/java-utils/java-functions ] ; then
|
||||
. /usr/share/java-utils/java-functions
|
||||
else
|
||||
echo "Can't find function library, aborting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Configuration
|
||||
MAIN_CLASS=javacc
|
||||
BASE_JARS="javacc.jar"
|
||||
|
||||
# Set parameters
|
||||
set_jvm
|
||||
set_classpath $BASE_JARS
|
||||
set_flags $BASE_FLAGS
|
||||
set_options $BASE_OPTIONS
|
||||
|
||||
# Let's start
|
||||
run "$@"
|
3
javacc-3.2-src.tar.gz
Normal file
3
javacc-3.2-src.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3075f3fbab871a2ef051e18d74cdd3b02bb80ffd9875e382949b40ee788b6b16
|
||||
size 620642
|
25
javacc.changes
Normal file
25
javacc.changes
Normal file
@ -0,0 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 20 01:32:35 CEST 2006 - ro@suse.de
|
||||
|
||||
- set source=1.4 for java
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:46:41 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 18 14:59:01 CEST 2005 - jsmeix@suse.de
|
||||
|
||||
- Current version 3.2 from JPackage.org
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 29 00:20:03 CEST 2005 - dmueller@suse.de
|
||||
|
||||
- add norootforbuild
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 18 16:35:14 CET 2005 - skh@suse.de
|
||||
|
||||
- initial package
|
||||
|
126
javacc.spec
Normal file
126
javacc.spec
Normal file
@ -0,0 +1,126 @@
|
||||
#
|
||||
# spec file for package javacc (Version 3.2)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: javacc
|
||||
BuildRequires: ant java2-devel-packages xml-commons-apis
|
||||
%define section free
|
||||
Version: 3.2
|
||||
Release: 23
|
||||
Summary: A Parser and Scanner Generator for Java
|
||||
License: BSD
|
||||
Source0: javacc-3.2-src.tar.gz
|
||||
Source1: javacc
|
||||
Source2: jjdoc
|
||||
Source3: jjtree
|
||||
URL: https://javacc.dev.java.net/
|
||||
Group: Development/Libraries/Java
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
Requires: jpackage-utils >= 1.5
|
||||
|
||||
%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 manual
|
||||
Summary: A Parser and Scanner Generator for Java
|
||||
Group: Development/Libraries/Java
|
||||
|
||||
%description manual
|
||||
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
|
||||
Summary: A Parser and Scanner Generator for Java
|
||||
Group: Development/Libraries/Java
|
||||
|
||||
%description demo
|
||||
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.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
cp %{SOURCE1} javacc
|
||||
cp %{SOURCE2} jjdoc
|
||||
cp %{SOURCE3} jjtree
|
||||
mv www/doc .
|
||||
|
||||
%build
|
||||
for file in `find -name build.xml` ; do
|
||||
if ! grep -q "javac.*source=" $file ; then
|
||||
perl -p -i -e 's|<javac |<javac source=\"1.4\" |' $file
|
||||
perl -p -i -e 's|<javadoc |<javadoc source=\"1.4\" |' $file
|
||||
fi
|
||||
done
|
||||
ant \
|
||||
-Dversion=%{version} \
|
||||
jar
|
||||
|
||||
%install
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||||
install -m 644 bin/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||||
install -d -m 755 $RPM_BUILD_ROOT/usr/bin
|
||||
install -m 755 javacc jjdoc jjtree $RPM_BUILD_ROOT/usr/bin
|
||||
install -d -m 755 $RPM_BUILD_ROOT/usr/share/%{name}
|
||||
cp -pr examples $RPM_BUILD_ROOT/usr/share/%{name}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%{_javadir}/*.jar
|
||||
%doc LICENSE README
|
||||
%defattr(0755,root,root,0755)
|
||||
/usr/bin/*
|
||||
|
||||
%files manual
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc doc/*
|
||||
|
||||
%files demo
|
||||
%defattr(0644,root,root,0755)
|
||||
/usr/share/%{name}/
|
||||
|
||||
%changelog -n javacc
|
||||
* Wed Sep 20 2006 - ro@suse.de
|
||||
- set source=1.4 for java
|
||||
* Wed Jan 25 2006 - mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Tue Oct 18 2005 - jsmeix@suse.de
|
||||
- Current version 3.2 from JPackage.org
|
||||
* Thu Sep 29 2005 - dmueller@suse.de
|
||||
- add norootforbuild
|
||||
* Fri Feb 18 2005 - skh@suse.de
|
||||
- initial package
|
25
jjdoc
Normal file
25
jjdoc
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# JJDoc script
|
||||
# JPackage Project <http://www.jpackage.org/>
|
||||
|
||||
# Source functions library
|
||||
if [ -f /usr/share/java-utils/java-functions ] ; then
|
||||
. /usr/share/java-utils/java-functions
|
||||
else
|
||||
echo "Can't find function library, aborting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Configuration
|
||||
MAIN_CLASS=jjdoc
|
||||
BASE_JARS="javacc.jar"
|
||||
|
||||
# Set parameters
|
||||
set_jvm
|
||||
set_classpath $BASE_JARS
|
||||
set_flags $BASE_FLAGS
|
||||
set_options $BASE_OPTIONS
|
||||
|
||||
# Let's start
|
||||
run "$@"
|
25
jjtree
Normal file
25
jjtree
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# JJTree script
|
||||
# JPackage Project <http://www.jpackage.org/>
|
||||
|
||||
# Source functions library
|
||||
if [ -f /usr/share/java-utils/java-functions ] ; then
|
||||
. /usr/share/java-utils/java-functions
|
||||
else
|
||||
echo "Can't find function library, aborting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Configuration
|
||||
MAIN_CLASS=jjtree
|
||||
BASE_JARS="javacc.jar"
|
||||
|
||||
# Set parameters
|
||||
set_jvm
|
||||
set_classpath $BASE_JARS
|
||||
set_flags $BASE_FLAGS
|
||||
set_options $BASE_OPTIONS
|
||||
|
||||
# Let's start
|
||||
run "$@"
|
Loading…
Reference in New Issue
Block a user