2008-03-26 16:04:44 +01:00
|
|
|
#
|
2011-09-22 10:17:10 +02:00
|
|
|
# spec file for package bea-stax
|
2008-03-26 16:04:44 +01:00
|
|
|
#
|
2018-05-15 19:35:43 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-03-26 16:04:44 +01:00
|
|
|
#
|
2008-09-12 23:22:52 +02:00
|
|
|
# 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.
|
|
|
|
|
2018-12-17 12:47:32 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-03-26 16:04:44 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define section free
|
2018-12-17 12:47:32 +01:00
|
|
|
%global apiver 1.0.1
|
2017-05-21 10:15:27 +02:00
|
|
|
Name: bea-stax
|
|
|
|
Version: 1.2.0
|
|
|
|
Release: 0
|
2008-03-26 16:04:44 +01:00
|
|
|
Summary: Streaming API for XML
|
2013-01-07 13:17:38 +01:00
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/Java
|
2018-12-17 12:47:32 +01:00
|
|
|
URL: http://stax.codehaus.org/Home
|
|
|
|
# http://dist.codehaus.org/stax/distributions/stax-src-%{version}.zip
|
|
|
|
Source0: stax-src-%{version}.zip
|
|
|
|
# http://dist.codehaus.org/stax/jars/stax-%{version}.pom
|
|
|
|
Source1: stax-%{version}.pom
|
|
|
|
# http://dist.codehaus.org/stax/jars/stax-api-%{apiver}.pom
|
|
|
|
Source2: stax-api-%{apiver}.pom
|
2018-12-19 18:15:59 +01:00
|
|
|
Source10: http://apache.org/licenses/LICENSE-2.0.txt
|
2018-05-15 19:35:43 +02:00
|
|
|
Patch0: bea-stax-target8.patch
|
2009-05-28 02:20:21 +02:00
|
|
|
Patch2: bea-stax-gcj-build.patch
|
2013-01-07 13:17:38 +01:00
|
|
|
BuildRequires: ant
|
2018-05-15 19:35:43 +02:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2018-12-17 12:47:32 +01:00
|
|
|
BuildRequires: javapackages-local
|
2008-03-26 16:04:44 +01:00
|
|
|
BuildRequires: unzip
|
2018-12-17 12:47:32 +01:00
|
|
|
BuildRequires: xml-apis
|
|
|
|
BuildRequires: xml-resolver
|
|
|
|
#!BuildIgnore: antlr
|
|
|
|
#!BuildIgnore: antlr-java
|
2008-03-26 16:04:44 +01:00
|
|
|
Requires: %{name}-api = %{version}-%{release}
|
2017-05-21 10:15:27 +02:00
|
|
|
BuildArch: noarch
|
2008-03-26 16:04:44 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Streaming API for XML (StAX) is a groundbreaking new Java API for
|
|
|
|
parsing and writing XML easily and efficiently.
|
|
|
|
|
|
|
|
%package api
|
2008-09-12 23:22:52 +02:00
|
|
|
Summary: The StAX API
|
2008-03-26 16:04:44 +01:00
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description api
|
|
|
|
Streaming API for XML
|
|
|
|
|
|
|
|
%{summary}
|
|
|
|
|
|
|
|
%prep
|
2017-05-21 10:15:27 +02:00
|
|
|
%setup -q -c
|
2008-09-12 23:22:52 +02:00
|
|
|
%patch0 -b .target15
|
2009-05-28 02:20:21 +02:00
|
|
|
%patch2 -b .gcj-build
|
2018-12-19 18:15:59 +01:00
|
|
|
cp %{SOURCE10} LICENSE
|
2008-03-26 16:04:44 +01:00
|
|
|
|
|
|
|
%build
|
2013-08-22 14:29:21 +02:00
|
|
|
ant all
|
2008-03-26 16:04:44 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jar
|
2017-05-21 10:15:27 +02:00
|
|
|
install -d -m 0755 %{buildroot}%{_javadir}
|
2018-12-17 12:47:32 +01:00
|
|
|
install -p -m 0644 build/stax-api-%{apiver}.jar %{buildroot}%{_javadir}/%{name}-api-%{version}.jar
|
|
|
|
install -p -m 0644 build/stax-%{version}-dev.jar %{buildroot}%{_javadir}/%{name}-ri-%{version}.jar
|
2017-05-21 10:15:27 +02:00
|
|
|
ln -s %{name}-api-%{version}.jar %{buildroot}%{_javadir}/%{name}-api.jar
|
|
|
|
ln -s %{name}-ri-%{version}.jar %{buildroot}%{_javadir}/%{name}-ri.jar
|
2018-12-17 12:47:32 +01:00
|
|
|
# pom
|
|
|
|
install -d -m 0755 %{buildroot}%{_mavenpomdir}
|
|
|
|
install -p -m 0644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}-ri-%{version}.pom
|
|
|
|
%add_maven_depmap %{name}-ri-%{version}.pom %{name}-ri-%{version}.jar
|
|
|
|
install -p -m 0644 %{SOURCE2} %{buildroot}%{_mavenpomdir}/%{name}-api-%{version}.pom
|
2018-12-17 12:59:23 +01:00
|
|
|
%add_maven_depmap %{name}-api-%{version}.pom %{name}-api-%{version}.jar -f api -a javax.xml.stream:stax-api
|
2008-03-26 16:04:44 +01:00
|
|
|
|
|
|
|
%files
|
2018-12-19 18:15:59 +01:00
|
|
|
%license LICENSE
|
2008-03-26 16:04:44 +01:00
|
|
|
%{_javadir}/%{name}-ri-%{version}.jar
|
|
|
|
%{_javadir}/%{name}-ri.jar
|
2018-12-17 12:47:32 +01:00
|
|
|
%{_mavenpomdir}/%{name}-ri-%{version}.pom
|
|
|
|
%if %{defined _maven_repository}
|
|
|
|
%{_mavendepmapfragdir}/%{name}
|
|
|
|
%else
|
|
|
|
%{_datadir}/maven-metadata/%{name}.xml*
|
|
|
|
%endif
|
2008-03-26 16:04:44 +01:00
|
|
|
|
|
|
|
%files api
|
2018-12-19 18:15:59 +01:00
|
|
|
%license LICENSE
|
2008-03-26 16:04:44 +01:00
|
|
|
%{_javadir}/%{name}-api-%{version}.jar
|
|
|
|
%{_javadir}/%{name}-api.jar
|
2018-12-17 12:47:32 +01:00
|
|
|
%{_mavenpomdir}/%{name}-api-%{version}.pom
|
|
|
|
%if %{defined _maven_repository}
|
|
|
|
%{_mavendepmapfragdir}/%{name}-api
|
|
|
|
%else
|
|
|
|
%{_datadir}/maven-metadata/%{name}-api.xml*
|
|
|
|
%endif
|
2008-03-26 16:04:44 +01:00
|
|
|
|
|
|
|
%changelog
|