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