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