2009-05-21 00:27:08 +02:00
|
|
|
#
|
2013-09-11 17:12:04 +02:00
|
|
|
# spec file for package xpp3
|
2009-05-21 00:27:08 +02:00
|
|
|
#
|
2017-05-19 18:25:27 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-05-21 00:27:08 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: xpp3
|
2014-12-05 08:53:11 +01:00
|
|
|
Version: 1.1.4c
|
2013-09-11 17:12:04 +02:00
|
|
|
Release: 0
|
2017-05-19 18:25:27 +02:00
|
|
|
Summary: XML Pull Parser
|
|
|
|
License: Apache-1.1
|
|
|
|
Group: Development/Libraries/Java
|
2009-05-21 00:27:08 +02:00
|
|
|
Url: http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/index.html
|
2014-12-05 08:53:11 +01:00
|
|
|
Source0: http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/xpp3-%{version}_src.tgz
|
2009-05-21 00:27:08 +02:00
|
|
|
BuildRequires: ant >= 1.6
|
2013-09-11 17:12:04 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2009-05-21 00:27:08 +02:00
|
|
|
BuildRequires: junit
|
|
|
|
BuildRequires: perl
|
2013-09-11 17:12:04 +02:00
|
|
|
BuildRequires: xml-commons-apis
|
2017-05-19 18:25:27 +02:00
|
|
|
Requires: java >= 1.4.2
|
2009-05-21 00:27:08 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-05-19 18:25:27 +02:00
|
|
|
BuildArch: noarch
|
2009-05-21 00:27:08 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Xml Pull Parser 3rd Edition (XPP3) MXP1 is a new XmlPull parsing engine
|
|
|
|
that is based on ideas from XPP and in particular XPP2 but completely
|
|
|
|
revised and rewritten to take best advantage of latest JIT JVMs such as
|
|
|
|
Hotspot in JDK 1.4.
|
|
|
|
|
|
|
|
%package minimal
|
|
|
|
Summary: XML Pull Parser
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description minimal
|
|
|
|
Xml Pull Parser 3rd Edition (XPP3) MXP1 is a new XmlPull parsing engine
|
|
|
|
that is based on ideas from XPP and in particular XPP2 but completely
|
|
|
|
revised and rewritten to take best advantage of latest JIT JVMs such as
|
|
|
|
Hotspot in JDK 1.4.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: XML Pull Parser
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
Xml Pull Parser 3rd Edition (XPP3) MXP1 is a new XmlPull parsing engine
|
|
|
|
that is based on ideas from XPP and in particular XPP2 but completely
|
|
|
|
revised and rewritten to take best advantage of latest JIT JVMs such as
|
|
|
|
Hotspot in JDK 1.4.
|
|
|
|
|
|
|
|
%prep
|
2014-12-05 08:53:11 +01:00
|
|
|
%setup -q
|
2009-05-21 00:27:08 +02:00
|
|
|
# remove all binary libs
|
|
|
|
find . -name "*.jar" -exec rm -f {} \;
|
2014-12-05 08:53:11 +01:00
|
|
|
# "src/java/addons_tests" does not exist
|
|
|
|
sed -i 's|depends="junit_main,junit_addons"|depends="junit_main"|' build.xml
|
2009-05-21 00:27:08 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CLASSPATH=$(build-classpath xml-commons-apis junit)
|
|
|
|
ant xpp3 junit apidoc
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2017-05-19 18:25:27 +02:00
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
2014-12-05 08:53:11 +01:00
|
|
|
cp -p build/%{name}-%{version}.jar \
|
2017-05-19 18:25:27 +02:00
|
|
|
%{buildroot}%{_javadir}/%{name}-%{version}.jar
|
2014-12-05 08:53:11 +01:00
|
|
|
cp -p build/%{name}_min-%{version}.jar \
|
2017-05-19 18:25:27 +02:00
|
|
|
%{buildroot}%{_javadir}/%{name}-minimal-%{version}.jar
|
2014-12-05 08:53:11 +01:00
|
|
|
cp -p build/%{name}_xpath-%{version}.jar \
|
2017-05-19 18:25:27 +02:00
|
|
|
%{buildroot}%{_javadir}/%{name}-xpath-%{version}.jar
|
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
2009-05-21 00:27:08 +02:00
|
|
|
# javadoc
|
2017-05-19 18:25:27 +02:00
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr doc/api/* %{buildroot}%{_javadocdir}/%{name}
|
2009-05-21 00:27:08 +02:00
|
|
|
rm -rf doc/{build.txt,api}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc README.html LICENSE.txt doc/*
|
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
%{_javadir}/%{name}-%{version}.jar
|
|
|
|
%{_javadir}/%{name}-xpath.jar
|
|
|
|
%{_javadir}/%{name}-xpath-%{version}.jar
|
|
|
|
|
|
|
|
%files minimal
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_javadir}/%{name}-minimal.jar
|
|
|
|
%{_javadir}/%{name}-minimal-%{version}.jar
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(0644,root,root,0755)
|
2014-07-11 15:50:23 +02:00
|
|
|
%{_javadocdir}/%{name}
|
2009-05-21 00:27:08 +02:00
|
|
|
|
|
|
|
%changelog
|