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