b85a9d
%define oversion 1.1.3_8
b85a9d
b85a9d
Summary:        XML Pull Parser
b85a9d
Name:           xpp3
b85a9d
Version:        1.1.3.8
62aae7
Release:        11%{?dist}
b85a9d
Epoch:          0
b85a9d
License:        ASL 1.1
b85a9d
URL:            http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/index.html
b85a9d
Source0:        http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/xpp3-%{oversion}_src.tgz
b85a9d
Source1:        http://mirrors.ibiblio.org/pub/mirrors/maven2/xpp3/xpp3/1.1.3.4.O/xpp3-1.1.3.4.O.pom
b85a9d
Source2:        http://mirrors.ibiblio.org/pub/mirrors/maven2/xpp3/xpp3_xpath/1.1.3.4.O/xpp3_xpath-1.1.3.4.O.pom
b85a9d
Source3:        http://mirrors.ibiblio.org/pub/mirrors/maven2/xpp3/xpp3_min/1.1.3.4.O/xpp3_min-1.1.3.4.O.pom
b85a9d
Patch0:         %{name}-link-docs-locally.patch
b85a9d
Requires:       java
b85a9d
BuildRequires:  jpackage-utils
b85a9d
BuildRequires:  ant
b85a9d
BuildRequires:  junit
b85a9d
BuildRequires:  xml-commons-apis
b85a9d
Requires:       junit
b85a9d
Requires:       xml-commons-apis
b85a9d
Requires:       java
b85a9d
b85a9d
BuildArch:      noarch
b85a9d
b85a9d
%description
b85a9d
XML Pull Parser 3rd Edition (XPP3) MXP1 is an XmlPull
b85a9d
parsing engine that is based on ideas from XPP and in
b85a9d
particular XPP2 but completely revised and rewritten to
b85a9d
take best advantage of latest JIT JVMs such as Hotspot in JDK 1.4.
b85a9d
b85a9d
%package minimal
b85a9d
Summary:        Minimal XML Pull Parser
b85a9d
Requires:       junit
b85a9d
Requires:       xml-commons-apis
b85a9d
Requires:       java
b85a9d
b85a9d
%description minimal
b85a9d
Minimal XML pull parser implementation.
b85a9d
b85a9d
%package javadoc
b85a9d
Summary:        Javadoc for %{name}
b85a9d
b85a9d
%description javadoc
b85a9d
Javadoc for %{name}.
b85a9d
b85a9d
%prep
b85a9d
%setup -q -n %{name}-%{oversion}
b85a9d
# remove all binary libs
b85a9d
find -name \*.jar -delete
b85a9d
b85a9d
%patch0
b85a9d
b85a9d
%build
b85a9d
export CLASSPATH=$(build-classpath xml-commons-apis junit)
b85a9d
ant xpp3 junit apidoc
b85a9d
b85a9d
%install
b85a9d
install -d -m 755 %{buildroot}%{_javadir}
b85a9d
install -d -m 755 %{buildroot}%{_mavenpomdir}
b85a9d
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
b85a9d
b85a9d
# JARs
b85a9d
install -p -m 644 build/%{name}-%{oversion}.jar \
b85a9d
    %{buildroot}%{_javadir}/%{name}.jar
b85a9d
install -p -m 644 build/%{name}_xpath-%{oversion}.jar \
b85a9d
    %{buildroot}%{_javadir}/%{name}-xpath.jar
b85a9d
install -p -m 644 build/%{name}_min-%{oversion}.jar \
b85a9d
    %{buildroot}%{_javadir}/%{name}-minimal.jar
b85a9d
b85a9d
# POMs
b85a9d
install -p -m 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
b85a9d
install -p -m 644 %{SOURCE2} %{buildroot}%{_mavenpomdir}/JPP-%{name}-xpath.pom
b85a9d
install -p -m 644 %{SOURCE3} %{buildroot}%{_mavenpomdir}/JPP-%{name}-minimal.pom
b85a9d
b85a9d
# XMvn metadata
b85a9d
%add_maven_depmap
b85a9d
%add_maven_depmap JPP-%{name}-xpath.pom %{name}-xpath.jar
b85a9d
%add_maven_depmap JPP-%{name}-minimal.pom %{name}-minimal.jar -f minimal
b85a9d
b85a9d
# Javadocs
b85a9d
cp -pr doc/api/* %{buildroot}%{_javadocdir}/%{name}
b85a9d
b85a9d
%files -f .mfiles
b85a9d
%doc README.html LICENSE.txt doc/*
b85a9d
b85a9d
%files minimal -f .mfiles-minimal
b85a9d
%doc LICENSE.txt
b85a9d
b85a9d
%files javadoc
b85a9d
%doc %{_javadocdir}/%{name}
b85a9d
b85a9d
%changelog
62aae7
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 01.1.3.8-11
62aae7
- Mass rebuild 2013-12-27
62aae7
b85a9d
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.1.3.8-10
b85a9d
- Rebuild to regenerate API documentation
b85a9d
- Resolves: CVE-2013-1571
b85a9d
b85a9d
* Fri Jun 21 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.1.3.8-9
b85a9d
- General specfile cleanup
b85a9d
- Update to current packaging guidelines
b85a9d
b85a9d
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.3.8-8
b85a9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b85a9d
b85a9d
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.3.8-7
b85a9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b85a9d
b85a9d
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.3.8-6
b85a9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b85a9d
b85a9d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.3.8-5
b85a9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b85a9d
b85a9d
* Thu Dec  2 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.1.3.8-4
b85a9d
- Fix pom filenames (Resolves rhbz#655829)
b85a9d
- Changes according to new guidelines (versionless jars)
b85a9d
- Fix few packaging problems (post/postun deps)
b85a9d
b85a9d
* Mon Jun 14 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.3.8-3.4
b85a9d
- Add maven poms and depmaps.
b85a9d
b85a9d
* Wed Mar 10 2010 Peter Lemenkov <lemenkov@gmail.com> - 0:1.1.3.8-3.3
b85a9d
- *-javadoc must also require jpackage-utils (for %%{_javadocdir})
b85a9d
b85a9d
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.3.8-3.2
b85a9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b85a9d
b85a9d
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.3.8-2.2
b85a9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b85a9d
b85a9d
* Sat Sep  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.1.3.8-1.2
b85a9d
- fix license tag
b85a9d
- drop jpp tag
b85a9d
b85a9d
* Mon Feb 12 2007 Fernando Nasser <fnasser@redhat.com> - 0:1.1.3.8-1jpp.1
b85a9d
- Import
b85a9d
- Fix per Fedora spec
b85a9d
b85a9d
* Mon Feb 12 2007 Fernando Nasser <fnasser@redhat.com> - 0:1.1.3.8-1jpp
b85a9d
- Upgrade to 1.1.3.8
b85a9d
- Remove vendor and distribution tags
b85a9d
b85a9d
* Mon Feb 27 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.1.3.4-1.o.2jpp
b85a9d
- First JPP 1.7 build
b85a9d
b85a9d
* Tue Dec 20 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.1.3.4-1.o.1jpp
b85a9d
- Upgrade to 1.1.3.4-O
b85a9d
- Now includes xpath support
b85a9d
b85a9d
* Thu Aug 26 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.1.3.4-1.d.2jpp
b85a9d
- Build with ant-1.6.2
b85a9d
b85a9d
* Tue Jun 01 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.1.3.4-1.d.1jpp
b85a9d
- Update to 1.1.3.4
b85a9d
b85a9d
* Mon May  5 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.1.2-1.a.3jpp
b85a9d
- Fix non-versioned javadoc symlinking.
b85a9d
b85a9d
* Mon Apr 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.1.2-1.a.2jpp
b85a9d
- Include non-versioned javadoc symlink.
b85a9d
b85a9d
* Tue Apr  1 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.1.2-1.a.1jpp
b85a9d
- First JPackage release.