# Copyright (c) 2000-2005, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the # distribution. # 3. Neither the name of the JPackage Project nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # %global mainver 1.2.0 %global apiver 1.0.1 Summary: Streaming API for XML URL: http://stax.codehaus.org/Home Source0: http://dist.codehaus.org/stax/distributions/stax-src-1.2.0.zip Source1: http://dist.codehaus.org/stax/jars/stax-1.2.0.pom Source2: http://dist.codehaus.org/stax/jars/stax-api-1.0.1.pom Name: bea-stax Version: %{mainver} Release: %mkrel 3 License: ASL 1.1 and ASL 2.0 Group: Development/Java BuildArch: noarch BuildRequires: jpackage-utils BuildRequires: ant BuildRequires: xerces-j2,xalan-j2 BuildRequires: java-devel Requires: jpackage-utils %description The Streaming API for XML (StAX) is a groundbreaking new Java API for parsing and writing XML easily and efficiently. %package api Summary: The StAX API Group: Development/Java Requires: jpackage-utils %description api %{summary} %package javadoc Summary: Javadoc for %{name} Group: Documentation Requires: jpackage-utils %description javadoc %{summary} %prep %setup -q -c -n %{name}-%{version} # Convert CR+LF to LF %{__sed} -i 's/\r//' ASF2.0.txt %build export CLASSPATH=`pwd`/build/stax-api-%{apiver}.jar ant all javadoc %install # jar install -Dpm 0644 build/stax-api-%{apiver}.jar %{buildroot}%{_javadir}/%{name}-api.jar install -Dpm 0644 build/stax-%{version}-dev.jar %{buildroot}%{_javadir}/%{name}.jar # the following symlink can be removed once no package needs "bea-stax-ri" ln -s %{name}.jar %{buildroot}%{_javadir}/%{name}-ri.jar # javadoc install -d -m 755 %{buildroot}%{_javadocdir}/%{name} cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name} # pom install -Dpm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom install -Dpm 644 %{SOURCE2} %{buildroot}%{_mavenpomdir}/JPP-%{name}-api.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar %add_maven_depmap -f api -a "javax.xml.stream:stax-api" JPP-%{name}-api.pom %{name}-api.jar %files %doc ASF2.0.txt %{_javadir}/%{name}.jar %{_javadir}/%{name}-ri.jar %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %files api %doc ASF2.0.txt %{_javadir}/%{name}-api.jar %{_mavenpomdir}/JPP-%{name}-api.pom %{_mavendepmapfragdir}/%{name}-api %files javadoc %doc ASF2.0.txt %doc %{_javadocdir}/* %changelog * Fri Jan 11 2013 umeabot <umeabot> 1.2.0-3.mga3 + Revision: 346885 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Dec 03 2012 dmorgan <dmorgan> 1.2.0-2.mga3 + Revision: 325780 - Add maven pom - Remove gcj support - Clean spec file * Mon Jan 17 2011 dmorgan <dmorgan> 0:1.2.0-1.3.5.mga1 + Revision: 21384 - imported package bea-stax