0def58
# Copyright (c) 2000-2005, JPackage Project
0def58
# All rights reserved.
0def58
#
0def58
# Redistribution and use in source and binary forms, with or without
0def58
# modification, are permitted provided that the following conditions
0def58
# are met:
0def58
#
0def58
# 1. Redistributions of source code must retain the above copyright
0def58
#    notice, this list of conditions and the following disclaimer.
0def58
# 2. Redistributions in binary form must reproduce the above copyright
0def58
#    notice, this list of conditions and the following disclaimer in the
0def58
#    documentation and/or other materials provided with the
0def58
#    distribution.
0def58
# 3. Neither the name of the JPackage Project nor the names of its
0def58
#    contributors may be used to endorse or promote products derived
0def58
#    from this software without specific prior written permission.
0def58
#
0def58
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
0def58
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
0def58
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
0def58
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
0def58
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0def58
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0def58
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
0def58
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
0def58
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0def58
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0def58
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0def58
#
0def58
0def58
%global apiver  1.0.1
0def58
0def58
Summary:        Streaming API for XML
0def58
URL:            http://stax.codehaus.org/Home
0def58
Source0:        http://dist.codehaus.org/stax/distributions/stax-src-%{version}.zip
0def58
Source1:        http://dist.codehaus.org/stax/jars/stax-%{version}.pom
0def58
Source2:        http://dist.codehaus.org/stax/jars/stax-api-%{apiver}.pom
0def58
Name:           bea-stax
0def58
Version:        1.2.0
0def58
Release:        16%{?dist}
0def58
License:        ASL 1.1 and ASL 2.0
0def58
BuildArch:      noarch
0def58
0def58
BuildRequires:  javapackages-local
0def58
BuildRequires:  ant
0def58
BuildRequires:  xerces-j2
0def58
BuildRequires:  xalan-j2
0def58
0def58
%description
0def58
The Streaming API for XML (StAX) is a groundbreaking
0def58
new Java API for parsing and writing XML easily and
0def58
efficiently.
0def58
0def58
%package api
0def58
Summary:        The StAX API
0def58
0def58
%description api
0def58
%{summary}
0def58
0def58
%package javadoc
0def58
Summary:        Javadoc for %{name}
0def58
0def58
%description javadoc
0def58
%{summary}
0def58
0def58
%prep
0def58
%setup -q -c -n %{name}-%{version}
0def58
0def58
# Convert CR+LF to LF
0def58
%{__sed} -i 's/\r//' ASF2.0.txt
0def58
0def58
cp -p %{SOURCE1} pom.xml
0def58
0def58
# Incorrectly scoped
0def58
%pom_remove_dep :junit
0def58
0def58
%build
0def58
ant all javadoc
0def58
0def58
%install
0def58
%mvn_file ':{*}' bea-@1
0def58
%mvn_package :stax-api api
0def58
%mvn_alias :stax-api javax.xml.stream:stax-api
0def58
%mvn_artifact pom.xml build/stax-%{version}-dev.jar
0def58
%mvn_artifact %{SOURCE2} build/stax-api-%{apiver}.jar
0def58
0def58
%mvn_install -J build/javadoc
0def58
0def58
%files -f .mfiles
0def58
%license ASF2.0.txt
0def58
0def58
%files api -f .mfiles-api
0def58
%license ASF2.0.txt
0def58
0def58
%files javadoc -f .mfiles-javadoc
0def58
%license ASF2.0.txt
0def58
0def58
%changelog
0def58
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-16
0def58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0def58
0def58
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-15
0def58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0def58
0def58
* Wed Mar 22 2017 Michael Simacek <msimacek@redhat.com> - 1.2.0-14
0def58
- Install with XMvn
0def58
0def58
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-13
0def58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0def58
0def58
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-12
0def58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0def58
0def58
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-11
0def58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0def58
0def58
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-10
0def58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0def58
0def58
* Wed May 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.0-9
0def58
- Use .mfiles generated during build
0def58
0def58
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-8
0def58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0def58
0def58
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-7
0def58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0def58
0def58
* Wed Nov 28 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.0-6
0def58
- Remove unneeded patch
0def58
0def58
* Wed Nov 14 2012 Jaromir Capik <jcapik@redhat.com> - 1.2.0-5
0def58
- ASL 1.1 was missing
0def58
0def58
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-4
0def58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0def58
0def58
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
0def58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0def58
0def58
* Thu Sep 29 2011 Jaromir Capik <jcapik@redhat.com> - 1.2.0-2
0def58
- Symlink "-ri" created for backward compatibility
0def58
0def58
* Thu Sep 29 2011 Jaromir Capik <jcapik@redhat.com> - 1.2.0-1
0def58
- Update to 1.2.0
0def58
- Introduction of POM files and depmaps
0def58
0def58
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2.0-0.8.rc1
0def58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0def58
0def58
* Thu Oct 7 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.2.0-0.7.rc1
0def58
- BR java 1.6.0.
0def58
0def58
* Thu Oct 7 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.2.0-0.6.rc1
0def58
- Drop gcj support.
0def58
0def58
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2.0-0.5.rc1
0def58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0def58
0def58
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2.0-0.4.rc1
0def58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0def58
0def58
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.2.0-0.3.rc1
0def58
- drop repotag
0def58
- fix license
0def58
0def58
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.2.0-0.2.rc1.2jpp.1
0def58
- Autorebuild for GCC 4.3
0def58
0def58
* Mon Feb 12 2007 Vivek Lakshmanan <vivekl@redhat.com> 0:1.2.0-0.1.rc1.2jpp.1.fc7
0def58
- Use new naming convention
0def58
- Add ASF2.0.txt as doc for api and main package
0def58
- Remove post/postun magic for javadoc
0def58
- Add BR on ant, xerces-j2 and xalan-j2
0def58
- Add conditional patch to make the package build under ecj/gcj
0def58
0def58
* Wed Jan 18 2006 Fernando Nasser <fnasser@redhat.com> 0:1.2.0-0.rc1.2jpp
0def58
- First JPP 1.7 build
0def58
0def58
* Wed Jan 18 2006 Deepak Bhole <dbhole@redhat.com> 0:1.2.0-0.rc1.1jpp
0def58
- Change source zip, and build the ri jars
0def58
- Use setup macro in prep
0def58
- First version all under APL
0def58
- New package name
0def58
- Demo still not yet available under the APL; will be in an update
0def58
0def58
* Tue Apr 26 2005 Fernando Nasser <fnasser@redhat.com> 0:1.0-2jpp_2rh
0def58
- First Red Hat build
0def58
0def58
* Wed Oct 20 2004 David Walluck <david@jpackage.org> 0:1.0-2jpp
0def58
- fix build
0def58
0def58
* Thu Sep 09 2004 Ralph Apel <r.apel at r-apel.de> 0:1.0-1jpp
0def58
- First JPackage build 
0def58
- Note: there is a stax project starting at codehaus