bea-stax/bea-stax.spec

84 lines
2.5 KiB
RPMSpec

#
# spec file for package bea-stax
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define section free
Name: bea-stax
Version: 1.2.0
Release: 0
Summary: Streaming API for XML
License: Apache-2.0
Group: Development/Libraries/Java
Url: http://dev2dev.bea.com/technologies/stax/index.jsp
Source0: stax-src-1.2.0_rc1-dev.zip
Patch0: bea-stax-target15.patch
Patch2: bea-stax-gcj-build.patch
BuildRequires: ant
BuildRequires: java-1_5_0-gcj-compat-devel
BuildRequires: javapackages-tools
BuildRequires: unzip
#!BuildIgnore: xerces-j2-bootstrap
#!BuildIgnore: antlr antlr-java
#!BuildIgnore: xerces-j2 xml-commons xml-commons-apis xml-commons-resolver xml-commons-which
#!BuildIgnore: xml-commons-jaxp-1.3-apis
BuildRequires: xml-commons-apis-bootstrap
BuildRequires: xml-commons-resolver-bootstrap
BuildRequires: xml-commons-which-bootstrap
Requires: %{name}-api = %{version}-%{release}
BuildArch: noarch
%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/Libraries/Java
%description api
Streaming API for XML
%{summary}
%prep
%setup -q -c
%patch0 -b .target15
%patch2 -b .gcj-build
%build
ant all
%install
# jar
install -d -m 0755 %{buildroot}%{_javadir}
install -p -m 0644 build/stax-api-1.0.jar %{buildroot}%{_javadir}/%{name}-api-%{version}.jar
install -p -m 0644 build/stax-1.2.0_rc1-dev.jar %{buildroot}%{_javadir}/%{name}-ri-%{version}.jar
ln -s %{name}-api-%{version}.jar %{buildroot}%{_javadir}/%{name}-api.jar
ln -s %{name}-ri-%{version}.jar %{buildroot}%{_javadir}/%{name}-ri.jar
%files
%defattr(-,root,root,-)
%{_javadir}/%{name}-ri-%{version}.jar
%{_javadir}/%{name}-ri.jar
%files api
%defattr(-,root,root,-)
%{_javadir}/%{name}-api-%{version}.jar
%{_javadir}/%{name}-api.jar
%changelog