2019-04-12 15:58:18 +00:00
|
|
|
#
|
|
|
|
# spec file for package xstream
|
|
|
|
#
|
2024-02-20 13:24:42 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-04-12 15:58:18 +00:00
|
|
|
# Copyright (c) 2000-2007, JPackage Project
|
|
|
|
#
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: xstream
|
2024-11-08 07:17:41 +00:00
|
|
|
Version: 1.4.21
|
2019-04-12 15:58:18 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Java XML serialization library
|
2019-04-16 17:36:26 +00:00
|
|
|
License: BSD-3-Clause
|
2019-04-12 15:58:18 +00:00
|
|
|
Group: Development/Libraries/Java
|
2021-01-15 21:06:34 +00:00
|
|
|
URL: https://x-stream.github.io/
|
|
|
|
Source0: https://repo1.maven.org/maven2/com/thoughtworks/%{name}/%{name}-distribution/%{version}/%{name}-distribution-%{version}-src.zip
|
2021-04-15 13:54:56 +00:00
|
|
|
Patch0: Revert-MXParser-changes.patch
|
2019-04-12 15:58:18 +00:00
|
|
|
BuildRequires: fdupes
|
2021-01-15 21:06:34 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2019-04-12 15:58:18 +00:00
|
|
|
BuildRequires: maven-local
|
2021-01-15 21:06:34 +00:00
|
|
|
BuildRequires: unzip
|
2024-11-08 07:24:33 +00:00
|
|
|
BuildRequires: mvn(cglib:cglib-nodep)
|
|
|
|
BuildRequires: mvn(com.fasterxml.woodstox:woodstox-core)
|
2019-04-12 15:58:18 +00:00
|
|
|
BuildRequires: mvn(dom4j:dom4j)
|
2022-03-17 04:45:19 +00:00
|
|
|
BuildRequires: mvn(javax.activation:activation)
|
|
|
|
BuildRequires: mvn(javax.xml.bind:jaxb-api)
|
2019-04-12 15:58:18 +00:00
|
|
|
BuildRequires: mvn(joda-time:joda-time)
|
|
|
|
BuildRequires: mvn(net.sf.kxml:kxml2-min)
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
2021-01-15 21:06:34 +00:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
2019-04-12 15:58:18 +00:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
|
|
|
|
BuildRequires: mvn(org.codehaus.jettison:jettison)
|
|
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
|
|
BuildRequires: mvn(org.jdom:jdom)
|
|
|
|
BuildRequires: mvn(org.jdom:jdom2)
|
2024-11-08 07:17:41 +00:00
|
|
|
BuildRequires: mvn(stax:stax)
|
|
|
|
BuildRequires: mvn(stax:stax-api)
|
2019-04-12 15:58:18 +00:00
|
|
|
BuildRequires: mvn(xom:xom)
|
|
|
|
BuildRequires: mvn(xpp3:xpp3)
|
|
|
|
BuildRequires: mvn(xpp3:xpp3_min)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
XStream is a simple library to serialize objects to XML
|
|
|
|
and back again. A high level facade is supplied that
|
|
|
|
simplifies common use cases. Custom objects can be serialized
|
|
|
|
without need for specifying mappings. Speed and low memory
|
|
|
|
footprint are a crucial part of the design, making it suitable
|
|
|
|
for large object graphs or systems with high message throughput.
|
|
|
|
No information is duplicated that can be obtained via reflection.
|
|
|
|
This results in XML that is easier to read for humans and more
|
|
|
|
compact than native Java serialization. XStream serializes internal
|
|
|
|
fields, including private and final. Supports non-public and inner
|
|
|
|
classes. Classes are not required to have default constructor.
|
|
|
|
Duplicate references encountered in the object-model will be
|
|
|
|
maintained. Supports circular references. By implementing an
|
|
|
|
interface, XStream can serialize directly to/from any tree
|
|
|
|
structure (not just XML). Strategies can be registered allowing
|
|
|
|
customization of how particular types are represented as XML.
|
|
|
|
When an exception occurs due to malformed XML, detailed diagnostics
|
|
|
|
are provided to help isolate and fix the problem.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
%{name} API documentation.
|
|
|
|
|
|
|
|
%package benchmark
|
2019-04-16 17:36:26 +00:00
|
|
|
Summary: The benchmark module for %{name}
|
2021-01-15 21:06:34 +00:00
|
|
|
Group: Development/Libraries/Java
|
2019-04-12 15:58:18 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description benchmark
|
2019-04-16 17:36:26 +00:00
|
|
|
This package contains the benchmark module for %{name}.
|
2019-04-12 15:58:18 +00:00
|
|
|
|
|
|
|
%package parent
|
|
|
|
Summary: Parent POM for %{name}
|
2021-01-15 21:06:34 +00:00
|
|
|
Group: Development/Libraries/Java
|
2019-04-12 15:58:18 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description parent
|
|
|
|
Parent POM for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-02-20 13:24:42 +00:00
|
|
|
%patch -P 0 -p1
|
2019-04-12 15:58:18 +00:00
|
|
|
find . -name "*.class" -print -delete
|
|
|
|
find . -name "*.jar" -print -delete
|
|
|
|
|
|
|
|
# Require org.codehaus.xsite:xsite-maven-plugin
|
|
|
|
%pom_disable_module xstream-distribution
|
2024-11-08 07:24:43 +00:00
|
|
|
%pom_remove_plugin :xsite-maven-plugin
|
2019-04-12 15:58:18 +00:00
|
|
|
|
|
|
|
# missing artifacts:
|
|
|
|
# org.openjdk.jmh:jmh-core:jar:1.11.1
|
|
|
|
# org.openjdk.jmh:jmh-generator-annprocess:jar:1.11.1
|
|
|
|
%pom_disable_module xstream-jmh
|
|
|
|
|
2024-11-08 07:35:47 +00:00
|
|
|
%pom_disable_module xstream-hibernate
|
|
|
|
|
2019-04-12 15:58:18 +00:00
|
|
|
# Unwanted
|
|
|
|
%pom_remove_plugin :maven-source-plugin
|
|
|
|
%pom_remove_plugin :maven-dependency-plugin
|
|
|
|
%pom_remove_plugin :maven-eclipse-plugin
|
|
|
|
%pom_remove_plugin :maven-release-plugin
|
|
|
|
|
|
|
|
# Require unavailable proxytoys:proxytoys
|
2024-11-08 07:17:41 +00:00
|
|
|
%pom_remove_plugin :maven-dependency-plugin xstream xstream-hibernate
|
2023-10-25 19:20:56 +00:00
|
|
|
|
2019-04-12 15:58:18 +00:00
|
|
|
%{mvn_file} :%{name} %{name}/%{name} %{name}
|
|
|
|
%{mvn_file} :%{name}-benchmark %{name}/%{name}-benchmark %{name}-benchmark
|
|
|
|
|
|
|
|
%{mvn_package} :%{name}
|
|
|
|
|
|
|
|
%build
|
2021-01-15 21:06:34 +00:00
|
|
|
%{mvn_build} -f -s -- \
|
2023-09-09 15:02:26 +00:00
|
|
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
|
2024-11-08 07:30:07 +00:00
|
|
|
-Dversion.java.source=8 -Dversion.java.target=8
|
2019-04-12 15:58:18 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
%fdupes %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.txt
|
|
|
|
%dir %{_javadir}/%{name}
|
|
|
|
|
|
|
|
%files parent -f .mfiles-%{name}-parent
|
|
|
|
%if %{with hibernate}
|
|
|
|
%files hibernate -f .mfiles-%{name}-hibernate
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files benchmark -f .mfiles-%{name}-benchmark
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
%changelog
|