Blame SPECS/bea-stax.spec

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