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