rpms/qdox/devel qdox-jflex.patch,NONE,1.1 qdox.spec,1.1,1.2

Matt Wringe (mwringe) fedora-extras-commits at redhat.com
Fri Feb 22 23:06:36 UTC 2008


Author: mwringe

Update of /cvs/pkgs/rpms/qdox/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3826

Modified Files:
	qdox.spec 
Added Files:
	qdox-jflex.patch 
Log Message:
Rebuild and add support for newer jflex


qdox-jflex.patch:

--- NEW FILE qdox-jflex.patch ---
--- src/grammar/lexer.flex.orig	2008-02-22 13:10:40.000000000 -0500
+++ src/grammar/lexer.flex	2008-02-22 13:10:55.000000000 -0500
@@ -38,7 +38,7 @@
     }
 
     private void pushState(int newState) {
-        stateStack[stateDepth++] = yy_lexical_state;
+        stateStack[stateDepth++] = zzLexicalState;
         yybegin(newState);
     }
 


Index: qdox.spec
===================================================================
RCS file: /cvs/pkgs/rpms/qdox/devel/qdox.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- qdox.spec	12 Mar 2007 15:15:35 -0000	1.1
+++ qdox.spec	22 Feb 2008 23:06:01 -0000	1.2
@@ -31,7 +31,7 @@
 Summary:        Extract class/interface/method definitions from sources
 Name:           qdox
 Version:        1.5
-Release:        2jpp.1%{?dist}
+Release:        2jpp.2%{?dist}
 Epoch:          0
 License:        Apache Software License style
 URL:            http://qdox.codehaus.org/
@@ -42,12 +42,13 @@
 Source1:        qdox-build.xml
 Source2:        qdox-LocatedDef.java
 Patch0:         qdox-1.5-parser_y.patch
+Patch1:         qdox-jflex.patch
 BuildRequires:  jpackage-utils >= 0:1.6
 BuildRequires:  ant >= 0:1.6
 BuildRequires:  ant-junit >= 0:1.6
 BuildRequires:  ant-nodeps >= 0:1.6
 BuildRequires:  junit >= 0:3.8.1
-BuildRequires:  jflex
+BuildRequires:  jflex >= 1.4.1
 BuildRequires:  byaccj
 Requires:       jpackage-utils
 Requires:       java
@@ -70,10 +71,14 @@
 
 %prep
 %setup -q -n %{name}
+for j in $(find . -name "*.jar"); do mv $j $j.no; done
+find . -name "*.class" -exec rm {} \;
+
 cp %{SOURCE2} src/java/com/thoughtworks/qdox/parser/structs/LocatedDef.java 
 cp %{SOURCE1} build.xml
 
 %patch0 -b .sav
+%patch1 -b .sav
 #Remove files which needed jmock
 rm src/test/com/thoughtworks/qdox/parser/MockBuilder.java
 rm src/test/com/thoughtworks/qdox/parser/MockLexer.java
@@ -117,6 +122,10 @@
 %doc %{_javadocdir}/*
 
 %changelog
+* Fri Feb 22 2008 Matt Wringe <mwringe at redhat.com> - 0:1.5-2jpp.2
+- add a patch (qdox-flex.patch) so that qdox will build with
+  the new jflex.
+
 * Thu Feb 15 2007 Permaine Cheung <pcheung at redhat.com> - 0:1.5-2jpp.1
 - Use ant for building, and fixes as per fedora guidelines.
 




More information about the fedora-extras-commits mailing list