Blame SPECS/xpp3.spec

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