77c7b56
Name:          javaparser
77c7b56
Version:       1.0.8
fe8692d
Release:       7%{?dist}
77c7b56
Summary:       Java 1.5 Parser and AST
77c7b56
License:       GPLv3+ and LGPLv3+
77c7b56
URL:           http://code.google.com/p/javaparser/
77c7b56
Source0:       http://javaparser.googlecode.com/files/%{name}-%{version}-src.zip
77c7b56
Source1:       http://%{name}.googlecode.com/svn/maven2/com/google/code/%{name}/%{name}/%{version}/%{name}-%{version}.pom
77c7b56
77c7b56
BuildRequires: java-devel
77c7b56
77c7b56
# test deps
77c7b56
BuildRequires: junit
77c7b56
77c7b56
BuildRequires: javacc
Stanislav Ochotnicky 46710f8
BuildRequires: maven-local
77c7b56
# BuildRequires: maven-surefire-provider-junit4
77c7b56
BuildRequires: sonatype-oss-parent
77c7b56
77c7b56
BuildArch:     noarch
77c7b56
77c7b56
%description
77c7b56
A Java 1.5 Parser with AST generation and visitor support.
77c7b56
The AST records the source code structure, java doc and
77c7b56
comments. It is also possible to change the AST nodes or
77c7b56
create new ones to modify the source code.
77c7b56
77c7b56
%package javadoc
77c7b56
Summary:       Javadoc for %{name}
77c7b56
77c7b56
%description javadoc
77c7b56
This package contains javadoc for %{name}.
77c7b56
77c7b56
%prep
77c7b56
%setup -q -c
77c7b56
77c7b56
cp -p %{SOURCE1} pom.xml
613a2cf
# remove org.jvnet.wagon-svn wagon-svn 1.9
613a2cf
%pom_xpath_remove "pom:project/pom:build/pom:extensions"
77c7b56
77c7b56
for s in $(find . -name "*.java");do
77c7b56
  native2ascii -encoding UTF8 ${s} ${s}
77c7b56
done
77c7b56
77c7b56
for d in COPYING readme.txt ; do
77c7b56
  iconv -f iso8859-1 -t utf-8 $d > $d.conv && mv -f $d.conv $d
77c7b56
  sed -i 's/\r//' $d
77c7b56
done
77c7b56
77c7b56
sed -i 's/\r//' COPYING.LESSER
77c7b56
77c7b56
%build
77c7b56
77c7b56
(
77c7b56
  cd src/japa/parser
77c7b56
  rm JavaCharStream.java ParseException.java Token.java TokenMgrError.java
77c7b56
  javacc.sh java_1_5.jj
77c7b56
)
613a2cf
%mvn_file :%{name} %{name}
77c7b56
# test skip http://code.google.com/p/javaparser/issues/detail?id=43
613a2cf
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8
77c7b56
77c7b56
%install
613a2cf
%mvn_install
77c7b56
613a2cf
%files -f .mfiles
77c7b56
%doc COPYING COPYING.LESSER readme.txt
77c7b56
613a2cf
%files javadoc -f .mfiles-javadoc
77c7b56
%doc COPYING COPYING.LESSER readme.txt
77c7b56
77c7b56
%changelog
fe8692d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-7
fe8692d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
fe8692d
1460cd7
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.0.8-6
1460cd7
- Use Requires: java-headless rebuild (#1067528)
1460cd7
1d8e729
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-5
1d8e729
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1d8e729
613a2cf
* Mon Jul 08 2013 gil cattaneo <puntogil@libero.it> 1.0.8-4
613a2cf
- switch to XMvn
613a2cf
- minor changes to adapt to current guideline
613a2cf
6edd897
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-3
6edd897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6edd897
Stanislav Ochotnicky 46710f8
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.0.8-2
Stanislav Ochotnicky 46710f8
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky 46710f8
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky 46710f8
77c7b56
* Thu Jul 26 2012 gil cattaneo <puntogil@libero.it> 1.0.8-1
77c7b56
- initial rpm