Accepting request 61538 from Java:packages
Accepted submit request 61538 from user oertel OBS-URL: https://build.opensuse.org/request/show/61538 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jflex?expand=0&rev=8
This commit is contained in:
parent
885d4f21c3
commit
b6bf6e5a9f
@ -1,39 +1,23 @@
|
||||
#
|
||||
# spec file for package jflex-bootstrap (Version 1.4.3)
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
|
||||
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
|
||||
%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
|
||||
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
|
||||
|
||||
##### WARNING: please do not edit this auto generated spec file. Use the jflex.spec! #####
|
||||
%define with_bootstrap 1
|
||||
%bcond_with bootstrap
|
||||
|
||||
%define section free
|
||||
|
||||
Name: jflex-bootstrap
|
||||
# This line is not a comment, please do not remove it!
|
||||
#%(sh %{_sourcedir}/jpackage-bootstrap-prepare.sh %{_sourcedir} %{name})
|
||||
Version: 1.4.3
|
||||
Release: 3
|
||||
Release: 1
|
||||
Summary: Lexical Analyzer Generator for Java
|
||||
License: GPL v2 only
|
||||
License: GPLv2+
|
||||
Group: Development/Libraries/Java
|
||||
Url: http://www.jflex.de/
|
||||
URL: http://www.jflex.de/
|
||||
Source0: http://www.jflex.de/jflex-%{version}.tar.bz2
|
||||
Source1: jflex.script
|
||||
Patch0: jflex-javac-no-target.patch
|
||||
@ -51,86 +35,66 @@ BuildRequires: jflex-bootstrap
|
||||
BuildRequires: java-1_5_0-gcj-compat-devel
|
||||
BuildRequires: junit
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
|
||||
%description
|
||||
JFlex is a lexical analyzer generator for Java written in Java. It is
|
||||
also a rewrite of the very useful tool JLex which was developed by
|
||||
Elliot Berk at Princeton University. As Vern Paxson states for his
|
||||
C/C++ tool flex: they do not share any code though.
|
||||
JFlex is a lexical analyzer generator for Java written in Java. It is
|
||||
also a rewrite of the very useful tool JLex which was developed by
|
||||
Elliot Berk at Princeton University. As Vern Paxson states for his C/C++
|
||||
tool flex: they do not share any code though.
|
||||
|
||||
Design goals The main design goals of JFlex are:
|
||||
|
||||
* Full unicode support
|
||||
|
||||
* Fast generated scanners
|
||||
|
||||
* Fast scanner generation
|
||||
|
||||
* Convenient specification syntax
|
||||
|
||||
* Platform independence
|
||||
|
||||
* JLex compatibility
|
||||
|
||||
|
||||
* Full unicode support
|
||||
* Fast generated scanners
|
||||
* Fast scanner generation
|
||||
* Convenient specification syntax
|
||||
* Platform independence
|
||||
* JLex compatibility
|
||||
|
||||
%if %without bootstrap
|
||||
|
||||
%package javadoc
|
||||
License: GPL v2 only
|
||||
Group: Development/Libraries/Java
|
||||
Summary: Lexical Analyzer Generator for Java
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
%description javadoc
|
||||
JFlex is a lexical analyzer generator for Java written in Java. It is
|
||||
also a rewrite of the very useful tool JLex which was developed by
|
||||
Elliot Berk at Princeton University. As Vern Paxson states for his
|
||||
C/C++ tool flex: they do not share any code though.
|
||||
JFlex is a lexical analyzer generator for Java written in Java. It is
|
||||
also a rewrite of the very useful tool JLex which was developed by
|
||||
Elliot Berk at Princeton University. As Vern Paxson states for his C/C++
|
||||
tool flex: they do not share any code though.
|
||||
|
||||
Design goals The main design goals of JFlex are:
|
||||
|
||||
* Full unicode support
|
||||
|
||||
* Fast generated scanners
|
||||
|
||||
* Fast scanner generation
|
||||
|
||||
* Convenient specification syntax
|
||||
|
||||
* Platform independence
|
||||
|
||||
* JLex compatibility
|
||||
|
||||
* Full unicode support
|
||||
* Fast generated scanners
|
||||
* Fast scanner generation
|
||||
* Convenient specification syntax
|
||||
* Platform independence
|
||||
* JLex compatibility
|
||||
|
||||
This package contains javadoc for %{name}.
|
||||
|
||||
%package doc
|
||||
License: GPL v2 only
|
||||
Group: Development/Libraries/Java
|
||||
Summary: Lexical Analyzer Generator for Java
|
||||
Summary: Documentation and examples for %{name}
|
||||
|
||||
%description doc
|
||||
JFlex is a lexical analyzer generator for Java written in Java. It is
|
||||
also a rewrite of the very useful tool JLex which was developed by
|
||||
Elliot Berk at Princeton University. As Vern Paxson states for his
|
||||
C/C++ tool flex: they do not share any code though.
|
||||
JFlex is a lexical analyzer generator for Java written in Java. It is
|
||||
also a rewrite of the very useful tool JLex which was developed by
|
||||
Elliot Berk at Princeton University. As Vern Paxson states for his C/C++
|
||||
tool flex: they do not share any code though.
|
||||
|
||||
Design goals The main design goals of JFlex are:
|
||||
|
||||
* Full unicode support
|
||||
|
||||
* Fast generated scanners
|
||||
|
||||
* Fast scanner generation
|
||||
|
||||
* Convenient specification syntax
|
||||
|
||||
* Platform independence
|
||||
|
||||
* JLex compatibility
|
||||
|
||||
|
||||
* Full unicode support
|
||||
* Fast generated scanners
|
||||
* Fast scanner generation
|
||||
* Convenient specification syntax
|
||||
* Platform independence
|
||||
* JLex compatibility
|
||||
|
||||
This package contains documentation and examples for %{name}
|
||||
%endif
|
||||
|
||||
%prep
|
||||
@ -176,14 +140,17 @@ popd
|
||||
%{__mkdir_p} %{buildroot}%{_javadir}
|
||||
%{__cp} -a lib/JFlex.jar %{buildroot}%{_javadir}/jflex-%{version}.jar
|
||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||
|
||||
# compatibility symlink
|
||||
(cd %{buildroot}%{_javadir} && %{__ln_s} jflex.jar JFlex.jar)
|
||||
|
||||
%if %without bootstrap
|
||||
# javadoc
|
||||
%{__mkdir_p} 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
%{__cp} -a dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
%{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
||||
%endif
|
||||
|
||||
%{__mkdir_p} %{buildroot}%{_bindir}
|
||||
%{__install} -p -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/jflex
|
||||
|
||||
@ -198,8 +165,8 @@ popd
|
||||
%{_javadir}/jflex.jar
|
||||
%{_javadir}/jflex-%{version}.jar
|
||||
%{_javadir}/JFlex.jar
|
||||
%if %without bootstrap
|
||||
|
||||
%if %without bootstrap
|
||||
%files javadoc
|
||||
%defattr(0644,root,root,0755)
|
||||
%{_javadocdir}/%{name}-%{version}
|
||||
@ -211,11 +178,3 @@ popd
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu May 21 2009 mvyskocil@suse.cz
|
||||
- Removed a jflex-lex-scan.patch
|
||||
* Tue May 05 2009 mvyskocil@suse.cz
|
||||
- Update to 1.4.3 (bugfix release)
|
||||
- Build using java-1_5_0-gcj to allow openjdk bootstrap
|
||||
- Recreated jflex-lex-scan.patch
|
||||
* Wed Apr 29 2009 mvyskocil@suse.cz
|
||||
- Initial packaging of jflex-bootstrap 1.4.2 in SUSE (from jpp5)
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 17 00:59:58 CET 2011 - mvyskocil@suse.cz
|
||||
|
||||
- fix build with antlr-bootstrap
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 21 17:11:33 CEST 2009 - mvyskocil@suse.cz
|
||||
|
||||
|
136
jflex.spec
136
jflex.spec
@ -1,38 +1,22 @@
|
||||
#
|
||||
# spec file for package jflex (Version 1.4.3)
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
|
||||
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
|
||||
%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
|
||||
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
|
||||
|
||||
%define _without_bootstrap 1
|
||||
%bcond_with bootstrap
|
||||
|
||||
%define section free
|
||||
|
||||
Name: jflex
|
||||
# This line is not a comment, please do not remove it!
|
||||
#%(sh %{_sourcedir}/jpackage-bootstrap-prepare.sh %{_sourcedir} %{name})
|
||||
Version: 1.4.3
|
||||
Release: 3
|
||||
Release: 1
|
||||
Summary: Lexical Analyzer Generator for Java
|
||||
License: GPL v2 only
|
||||
License: GPLv2+
|
||||
Group: Development/Libraries/Java
|
||||
Url: http://www.jflex.de/
|
||||
URL: http://www.jflex.de/
|
||||
Source0: http://www.jflex.de/jflex-%{version}.tar.bz2
|
||||
Source1: jflex.script
|
||||
Patch0: jflex-javac-no-target.patch
|
||||
@ -44,92 +28,73 @@ Requires: java_cup
|
||||
Requires: jpackage-utils
|
||||
BuildRequires: ant
|
||||
BuildRequires: java-cup-bootstrap
|
||||
BuildRequires: antlr-bootstrap
|
||||
%if %without bootstrap
|
||||
BuildRequires: jflex-bootstrap
|
||||
%endif
|
||||
BuildRequires: java-1_5_0-gcj-compat-devel
|
||||
BuildRequires: junit
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
|
||||
%description
|
||||
JFlex is a lexical analyzer generator for Java written in Java. It is
|
||||
also a rewrite of the very useful tool JLex which was developed by
|
||||
Elliot Berk at Princeton University. As Vern Paxson states for his
|
||||
C/C++ tool flex: they do not share any code though.
|
||||
JFlex is a lexical analyzer generator for Java written in Java. It is
|
||||
also a rewrite of the very useful tool JLex which was developed by
|
||||
Elliot Berk at Princeton University. As Vern Paxson states for his C/C++
|
||||
tool flex: they do not share any code though.
|
||||
|
||||
Design goals The main design goals of JFlex are:
|
||||
|
||||
* Full unicode support
|
||||
|
||||
* Fast generated scanners
|
||||
|
||||
* Fast scanner generation
|
||||
|
||||
* Convenient specification syntax
|
||||
|
||||
* Platform independence
|
||||
|
||||
* JLex compatibility
|
||||
|
||||
|
||||
* Full unicode support
|
||||
* Fast generated scanners
|
||||
* Fast scanner generation
|
||||
* Convenient specification syntax
|
||||
* Platform independence
|
||||
* JLex compatibility
|
||||
|
||||
%if %without bootstrap
|
||||
|
||||
%package javadoc
|
||||
License: GPL v2 only
|
||||
Group: Development/Libraries/Java
|
||||
Summary: Lexical Analyzer Generator for Java
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
%description javadoc
|
||||
JFlex is a lexical analyzer generator for Java written in Java. It is
|
||||
also a rewrite of the very useful tool JLex which was developed by
|
||||
Elliot Berk at Princeton University. As Vern Paxson states for his
|
||||
C/C++ tool flex: they do not share any code though.
|
||||
JFlex is a lexical analyzer generator for Java written in Java. It is
|
||||
also a rewrite of the very useful tool JLex which was developed by
|
||||
Elliot Berk at Princeton University. As Vern Paxson states for his C/C++
|
||||
tool flex: they do not share any code though.
|
||||
|
||||
Design goals The main design goals of JFlex are:
|
||||
|
||||
* Full unicode support
|
||||
|
||||
* Fast generated scanners
|
||||
|
||||
* Fast scanner generation
|
||||
|
||||
* Convenient specification syntax
|
||||
|
||||
* Platform independence
|
||||
|
||||
* JLex compatibility
|
||||
|
||||
* Full unicode support
|
||||
* Fast generated scanners
|
||||
* Fast scanner generation
|
||||
* Convenient specification syntax
|
||||
* Platform independence
|
||||
* JLex compatibility
|
||||
|
||||
This package contains javadoc for %{name}.
|
||||
|
||||
%package doc
|
||||
License: GPL v2 only
|
||||
Group: Development/Libraries/Java
|
||||
Summary: Lexical Analyzer Generator for Java
|
||||
Summary: Documentation and examples for %{name}
|
||||
|
||||
%description doc
|
||||
JFlex is a lexical analyzer generator for Java written in Java. It is
|
||||
also a rewrite of the very useful tool JLex which was developed by
|
||||
Elliot Berk at Princeton University. As Vern Paxson states for his
|
||||
C/C++ tool flex: they do not share any code though.
|
||||
JFlex is a lexical analyzer generator for Java written in Java. It is
|
||||
also a rewrite of the very useful tool JLex which was developed by
|
||||
Elliot Berk at Princeton University. As Vern Paxson states for his C/C++
|
||||
tool flex: they do not share any code though.
|
||||
|
||||
Design goals The main design goals of JFlex are:
|
||||
|
||||
* Full unicode support
|
||||
|
||||
* Fast generated scanners
|
||||
|
||||
* Fast scanner generation
|
||||
|
||||
* Convenient specification syntax
|
||||
|
||||
* Platform independence
|
||||
|
||||
* JLex compatibility
|
||||
|
||||
|
||||
* Full unicode support
|
||||
* Fast generated scanners
|
||||
* Fast scanner generation
|
||||
* Convenient specification syntax
|
||||
* Platform independence
|
||||
* JLex compatibility
|
||||
|
||||
This package contains documentation and examples for %{name}
|
||||
%endif
|
||||
|
||||
%prep
|
||||
@ -158,12 +123,12 @@ popd
|
||||
%build
|
||||
pushd src
|
||||
%if %without bootstrap
|
||||
export CLASSPATH=$(build-classpath java-cup java-cup-runtime junit jflex)
|
||||
export CLASSPATH=$(build-classpath java-cup java-cup-runtime junit jflex antlr-bootstrap)
|
||||
%else
|
||||
export CLASSPATH=$(build-classpath java-cup java-cup-runtime junit)
|
||||
export CLASSPATH=$(build-classpath java-cup java-cup-runtime junit antlr-bootstrap)
|
||||
%endif
|
||||
export OPT_JAR_LIST=:
|
||||
%ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 jar
|
||||
%ant jar
|
||||
%if %without bootstrap
|
||||
%{__mkdir_p} ../dist/docs/api
|
||||
%{javadoc} -d ../dist/docs/api `find . -type f -name "*.java"`
|
||||
@ -175,14 +140,17 @@ popd
|
||||
%{__mkdir_p} %{buildroot}%{_javadir}
|
||||
%{__cp} -a lib/JFlex.jar %{buildroot}%{_javadir}/jflex-%{version}.jar
|
||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||
|
||||
# compatibility symlink
|
||||
(cd %{buildroot}%{_javadir} && %{__ln_s} jflex.jar JFlex.jar)
|
||||
|
||||
%if %without bootstrap
|
||||
# javadoc
|
||||
%{__mkdir_p} 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
%{__cp} -a dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
%{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
||||
%endif
|
||||
|
||||
%{__mkdir_p} %{buildroot}%{_bindir}
|
||||
%{__install} -p -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/jflex
|
||||
|
||||
@ -197,8 +165,8 @@ popd
|
||||
%{_javadir}/jflex.jar
|
||||
%{_javadir}/jflex-%{version}.jar
|
||||
%{_javadir}/JFlex.jar
|
||||
%if %without bootstrap
|
||||
|
||||
%if %without bootstrap
|
||||
%files javadoc
|
||||
%defattr(0644,root,root,0755)
|
||||
%{_javadocdir}/%{name}-%{version}
|
||||
@ -210,11 +178,3 @@ popd
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu May 21 2009 mvyskocil@suse.cz
|
||||
- Removed a jflex-lex-scan.patch
|
||||
* Tue May 05 2009 mvyskocil@suse.cz
|
||||
- Update to 1.4.3 (bugfix release)
|
||||
- Build using java-1_5_0-gcj to allow openjdk bootstrap
|
||||
- Recreated jflex-lex-scan.patch
|
||||
* Wed Apr 29 2009 mvyskocil@suse.cz
|
||||
- Initial packaging of jflex-bootstrap 1.4.2 in SUSE (from jpp5)
|
||||
|
Loading…
x
Reference in New Issue
Block a user