update to 1.0.11
This commit is contained in:
parent
177bb60895
commit
202ab84c06
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
/javaparser-1.0.8-src.zip
|
||||
/javaparser-1.0.11.tar.gz
|
||||
|
@ -1,112 +0,0 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.google.code.javaparser</groupId>
|
||||
<artifactId>javaparser</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>Java 1.5 Parser and AST</name>
|
||||
<version>1.0.8</version>
|
||||
<description>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.</description>
|
||||
<url>http://code.google.com/p/javaparser/</url>
|
||||
<issueManagement>
|
||||
<system>Google Code</system>
|
||||
<url>http://code.google.com/p/javaparser/issues/</url>
|
||||
</issueManagement>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl.html</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<scm>
|
||||
<url>http://code.google.com/p/javaparser/source/browse/</url>
|
||||
<connection>http://javaparser.googlecode.com/svn/trunk/</connection>
|
||||
</scm>
|
||||
<inceptionYear>2007</inceptionYear>
|
||||
<developers>
|
||||
<developer>
|
||||
<name>Júlio Vilmar Gesser</name>
|
||||
<email>jgesser@gmail.com</email>
|
||||
</developer>
|
||||
</developers>
|
||||
<contributors>
|
||||
<contributor>
|
||||
<name>Hendy Irawan</name>
|
||||
<email>hendy@soluvas.com</email>
|
||||
<url>http://www.HendyIrawan.com/</url>
|
||||
<organization>Soluvas</organization>
|
||||
<organizationUrl>http://www.Soluvas.com/</organizationUrl>
|
||||
</contributor>
|
||||
</contributors>
|
||||
<distributionManagement>
|
||||
<site>
|
||||
<id>javaparser-site</id>
|
||||
<name>JavaParser</name>
|
||||
<url>http://code.google.com/p/javaparser</url>
|
||||
</site>
|
||||
<downloadUrl>http://code.google.com/p/javaparser/downloads/</downloadUrl>
|
||||
<repository>
|
||||
<id>javaparser-release</id>
|
||||
<name>JavaParser Maven Releases Repository</name>
|
||||
<url>svn:https://javaparser.googlecode.com/svn/maven2</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>javaparser-snapshots</id>
|
||||
<name>JavaParser Maven Snapshots Repository</name>
|
||||
<url>svn:https://javaparser.googlecode.com/svn/maven2-snapshots</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
<build>
|
||||
<sourceDirectory>src</sourceDirectory>
|
||||
<testSourceDirectory>test</testSourceDirectory>
|
||||
<outputDirectory>bin</outputDirectory>
|
||||
<testOutputDirectory>bin</testOutputDirectory>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.jvnet.wagon-svn</groupId>
|
||||
<artifactId>wagon-svn</artifactId>
|
||||
<version>1.9</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>ignore/**</exclude>
|
||||
<exclude>**/*$*</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<resources>
|
||||
</resources>
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>java.net.m2</id>
|
||||
<url>http://download.java.net/maven/2</url>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
</project>
|
@ -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
|
||||
%setup -q -n %{name}-%{name}-%{version}
|
||||
|
||||
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
|
||||
|
||||
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 <puntogil@libero.it> 1.0.11-1
|
||||
- update to 1.0.11
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user