rpms/jflex/devel jflex-build_xml.patch,NONE,1.1 jflex.spec,1.2,1.3
Matt Wringe (mwringe)
fedora-extras-commits at redhat.com
Fri Feb 22 22:16:25 UTC 2008
- Previous message (by thread): rpms/perl-Math-MatrixReal/devel perl-Math-MatrixReal.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/perl-Math-MatrixReal/EL-4 .cvsignore,1.1,1.2 sources,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mwringe
Update of /cvs/pkgs/rpms/jflex/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26631
Modified Files:
jflex.spec
Added Files:
jflex-build_xml.patch
Log Message:
Update to the current release
jflex-build_xml.patch:
--- NEW FILE jflex-build_xml.patch ---
--- src/build.xml.orig 2004-05-19 19:37:43.000000000 -0400
+++ src/build.xml 2008-02-22 14:04:46.000000000 -0500
@@ -59,7 +59,14 @@
description="compile all classes">
<javac srcdir="."
destdir="../lib"
- target="1.1"
+ classpath="."
+ debug="on" />
+ </target>
+
+ <target name="compile-bootstrap"
+ description="compile all classes during a bootstrap">
+ <javac srcdir="."
+ destdir="../lib"
classpath="."
debug="on" />
</target>
@@ -83,6 +90,14 @@
jarfile="../lib/JFlex.jar"
manifest="manifest"/>
</target>
+
+ <target name="jar-bootstrap" depends="compile-bootstrap,copy" description="make JFlex.jar">
+ <jar basedir="../lib"
+ includes="JFlex/**,java_cup/**,skeleton"
+ jarfile="../lib/JFlex.jar"
+ manifest="manifest"/>
+ </target>
+
<target name="libclean" description="remove compiled classes">
<delete dir="../lib/JFlex" />
Index: jflex.spec
===================================================================
RCS file: /cvs/pkgs/rpms/jflex/devel/jflex.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- jflex.spec 2 Apr 2007 20:02:58 -0000 1.2
+++ jflex.spec 22 Feb 2008 22:15:52 -0000 1.3
@@ -32,18 +32,17 @@
Summary: Fast Scanner Generator
Name: jflex
-Version: 1.3.5
-Release: 2jpp.2%{?dist}
+Version: 1.4.1
+Release: 0jpp.1%{?dist}
Epoch: 0
-License: GPL
+License: GPLv2
URL: http://jflex.de/
-Group: Development/Libraries/Java
-Source0: http://downloads.sourceforge.net/jflex/jflex-1.3.5.tar.gz
-Patch0: jflex-Makefile.patch
-Patch1: jflex-CharSet_java.patch
-Patch2: jflex-StateSet_java.patch
+Group: Development/Libraries
+Source0: http://jflex.de/%{name}-%{version}.tar.gz
+Patch0: jflex-build_xml.patch
BuildRequires: jpackage-utils >= 0:1.5
-BuildRequires: make
+BuildRequires: ant
+BuildRequires: junit
BuildRequires: java-devel
Requires: java
BuildArch: noarch
@@ -63,24 +62,30 @@
%package javadoc
Summary: Javadoc for %{name}
-Group: Development/Documentation
+Group: Documentation
%description javadoc
%{summary}.
%prep
-%setup -q -n JFlex
+%setup -q
+%patch0 -b .sav
for j in $(find . -name "*.jar"); do mv $j $j.no; done
find . -name "*.class" -exec rm {} \;
%{__sed} -i 's/\r//' COPYRIGHT
-%patch0 -b .sav
-%patch1 -b .sav
-%patch2 -b .sav
+
%build
pushd src
-make all javadoc
+# intial build using the autogenerated sym.java LexParse.java and LexScan.java
+# these are created by the jflex ant task which needs to be built first
+CLASSPATH=%{_javadir}/junit.jar:%{_javadir}/java_cup.jar ant jar-bootstrap
+# now that the JFlex.jar has been build we can use jflex ant tasks
+# removing the generated files and rebuilding using the JFlex.jar
+CLASSPATH=%{_javadir}/junit.jar:%{_javadir}/java_cup.jar:../lib/JFlex.jar ant genclean libclean jar
+
+javadoc -sourcepath . -d ../api JFlex
popd
%install
@@ -119,6 +124,12 @@
# -----------------------------------------------------------------------------
%changelog
+* Fri Feb 22 2008 Matt Wringe <mwringe at redhat.com> - 0:1.4.1-0jpp.1
+- Patch build file to allow bootstrap building
+
+* Mon Feb 18 2008 Lubomir Kundrak <lkundrak at redhat.com> - 0:1.4.1-0jpp.1
+- Naive attempt to update to newer version
+
* Mon Apr 02 2007 Matt Wringe <mwringe at redhat.com> - 0:1.3.5-2jpp.2
- Add patches jflex-CharSet_java.patch and jflex-StateSet_java.patch
to allow building with the new gcj
- Previous message (by thread): rpms/perl-Math-MatrixReal/devel perl-Math-MatrixReal.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/perl-Math-MatrixReal/EL-4 .cvsignore,1.1,1.2 sources,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list