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