diff --git a/.gitignore b/.gitignore index e824af2..1b0e26d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /javaparser-1.0.8-src.zip +/javaparser-1.0.11.tar.gz diff --git a/javaparser-1.0.8.pom b/javaparser-1.0.8.pom deleted file mode 100644 index 601e713..0000000 --- a/javaparser-1.0.8.pom +++ /dev/null @@ -1,112 +0,0 @@ - - 4.0.0 - com.google.code.javaparser - javaparser - jar - Java 1.5 Parser and AST - 1.0.8 - A Java 1.5 Parser with AST generation and visitor support. The AST records the source code structure, javadoc and comments. It is also possible to change the AST nodes or create new ones to modify the source code. - http://code.google.com/p/javaparser/ - - Google Code - http://code.google.com/p/javaparser/issues/ - - - - GNU Lesser General Public License - http://www.gnu.org/licenses/lgpl.html - repo - - - - http://code.google.com/p/javaparser/source/browse/ - http://javaparser.googlecode.com/svn/trunk/ - - 2007 - - - JĂșlio Vilmar Gesser - jgesser@gmail.com - - - - - Hendy Irawan - hendy@soluvas.com - http://www.HendyIrawan.com/ - Soluvas - http://www.Soluvas.com/ - - - - - javaparser-site - JavaParser - http://code.google.com/p/javaparser - - http://code.google.com/p/javaparser/downloads/ - - javaparser-release - JavaParser Maven Releases Repository - svn:https://javaparser.googlecode.com/svn/maven2 - - - javaparser-snapshots - JavaParser Maven Snapshots Repository - svn:https://javaparser.googlecode.com/svn/maven2-snapshots - - - - src - test - bin - bin - - - org.jvnet.wagon-svn - wagon-svn - 1.9 - - - - - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - - - - org.apache.maven.plugins - maven-surefire-plugin - - - ignore/** - **/*$* - - - - - - - - - - junit - junit - 4.8.1 - test - - - - - java.net.m2 - http://download.java.net/maven/2 - - false - - - - \ No newline at end of file diff --git a/javaparser.spec b/javaparser.spec index e162acc..95714ee 100644 --- a/javaparser.spec +++ b/javaparser.spec @@ -1,23 +1,22 @@ Name: javaparser -Version: 1.0.8 -Release: 10%{?dist} -Summary: Java 1.5 Parser and AST +Version: 1.0.11 +Release: 1%{?dist} +Summary: Java 1.7 Parser and AST License: GPLv3+ and LGPLv3+ +# https://github.com/before/javaparser/ URL: http://javaparser.github.io/javaparser/ -Source0: http://javaparser.googlecode.com/files/%{name}-%{version}-src.zip -Source1: http://%{name}.googlecode.com/svn/maven2/com/google/code/%{name}/%{name}/%{version}/%{name}-%{version}.pom +Source0: https://github.com/javaparser/javaparser/archive/%{name}-%{version}.tar.gz -# test deps -BuildRequires: junit - -BuildRequires: javacc BuildRequires: maven-local -BuildRequires: sonatype-oss-parent +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) +BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin) +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildArch: noarch %description -A Java 1.5 Parser with AST generation and visitor support. +A Java 1.7 Parser with AST generation and visitor support. The AST records the source code structure, java doc and comments. It is also possible to change the AST nodes or create new ones to modify the source code. @@ -29,48 +28,31 @@ Summary: Javadoc for %{name} This package contains javadoc for %{name}. %prep -%setup -q -c - -cp -p %{SOURCE1} pom.xml -# remove org.jvnet.wagon-svn wagon-svn 1.9 -%pom_xpath_remove "pom:project/pom:build/pom:extensions" - -for s in $(find . -name "*.java");do - native2ascii -encoding UTF8 ${s} ${s} -done +%setup -q -n %{name}-%{name}-%{version} -for d in COPYING readme.txt ; do - iconv -f iso8859-1 -t utf-8 $d > $d.conv && mv -f $d.conv $d - sed -i 's/\r//' $d -done - -sed -i 's/\r//' COPYING.LESSER +sed -i 's/\r//' readme.md %mvn_file :%{name} %{name} %build -( - cd src/japa/parser - rm JavaCharStream.java ParseException.java Token.java TokenMgrError.java - javacc.sh java_1_5.jj -) - # test skip http://code.google.com/p/javaparser/issues/detail?id=43 -%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8 +%mvn_build %install %mvn_install %files -f .mfiles -%doc readme.txt +%doc readme.md %license COPYING COPYING.LESSER %files javadoc -f .mfiles-javadoc -%doc readme.txt %license COPYING COPYING.LESSER %changelog +* Fri Jul 31 2015 gil cattaneo 1.0.11-1 +- update to 1.0.11 + * Wed Jun 17 2015 Fedora Release Engineering - 1.0.8-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index 565508d..0791ae7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -84b3df6e8cf6331e6d3f7eaebbd70140 javaparser-1.0.8-src.zip +e8dacc8e02f05b342e920a7aa1ad56a8 javaparser-1.0.11.tar.gz