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