2009-05-20 22:33:17 +00:00
|
|
|
#
|
2013-09-12 11:26:44 +00:00
|
|
|
# spec file for package xml-im-exporter
|
2009-05-20 22:33:17 +00:00
|
|
|
#
|
2024-01-12 11:39:17 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2009-05-20 22:33:17 +00: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.
|
|
|
|
|
2022-03-23 11:34:12 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-05-20 22:33:17 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: xml-im-exporter
|
|
|
|
Version: 1.1
|
2013-09-12 11:26:44 +00:00
|
|
|
Release: 0
|
2009-05-20 22:33:17 +00:00
|
|
|
Summary: XML Im-/Exporter
|
2022-03-23 11:34:12 +00:00
|
|
|
License: LGPL-2.0-or-later
|
2009-05-20 22:33:17 +00:00
|
|
|
Group: Development/Libraries/Java
|
2023-09-29 13:48:40 +00:00
|
|
|
URL: https://xml-im-exporter.sourceforge.net/
|
2009-05-20 22:33:17 +00:00
|
|
|
Source0: xml-im-exporter1.1.tar.bz2
|
2022-03-23 11:34:12 +00:00
|
|
|
Source1: https://repo1.maven.org/maven2/de/zeigermann/xml/%{name}/%{version}/%{name}-%{version}.pom
|
2009-05-20 22:33:17 +00:00
|
|
|
Patch0: xml-im-exporter-build_xml.patch
|
2013-09-12 11:26:44 +00:00
|
|
|
Patch1: encoding.patch
|
2009-05-20 22:33:17 +00:00
|
|
|
BuildRequires: ant >= 1.6
|
|
|
|
BuildRequires: ant-junit
|
2022-03-23 11:34:12 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2023-09-29 13:48:40 +00:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2009-05-20 22:33:17 +00:00
|
|
|
BuildRequires: junit
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
XML Im-/Exporter is a low level library to assist you in the straight
|
|
|
|
forward process of importing and exporting XML from and to your Java
|
|
|
|
classes. All of this is designed having performance and simplicity in
|
|
|
|
mind.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: XML Im-/Exporter
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
XML Im-/Exporter is a low level library to assist you in the straight
|
|
|
|
forward process of importing and exporting XML from and to your Java
|
|
|
|
classes. All of this is designed having performance and simplicity in
|
|
|
|
mind.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}
|
|
|
|
# remove all binary libs
|
|
|
|
find . -name "*.jar" | xargs rm
|
|
|
|
#for j in $(find . -name "*.jar"); do
|
|
|
|
# mv $j $j.no
|
|
|
|
#done
|
|
|
|
# wrong end of line encoding
|
|
|
|
sed -i -e 's/.$//' *.txt doc/javadoc/stylesheet.css doc/javadoc/package-list
|
2024-02-21 10:55:45 +00:00
|
|
|
%patch -P 0 -b .sav
|
|
|
|
%patch -P 1 -p1
|
2009-05-20 22:33:17 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CLASSPATH=
|
|
|
|
export OPT_JAT_LIST="junit ant/ant-junit"
|
2022-03-23 11:34:12 +00:00
|
|
|
ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 -Djavac.encoding="utf-8" jar test javadocs
|
2009-05-20 22:33:17 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2017-05-19 11:41:44 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
2009-05-20 22:33:17 +00:00
|
|
|
install -m 644 build/lib/%{name}%{version}.jar \
|
2017-05-19 11:41:44 +00:00
|
|
|
%{buildroot}%{_javadir}/%{name}.jar
|
2013-09-12 11:26:44 +00:00
|
|
|
|
2009-05-20 22:33:17 +00:00
|
|
|
# javadoc
|
2017-05-19 11:41:44 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr doc/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
2009-05-20 22:33:17 +00:00
|
|
|
|
2013-09-12 11:26:44 +00:00
|
|
|
# maven
|
2017-05-19 11:41:44 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}/
|
2023-09-29 13:48:40 +00:00
|
|
|
%{mvn_install_pom} %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
2013-09-12 11:26:44 +00:00
|
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
2017-07-26 16:14:50 +00:00
|
|
|
rm -f TEST-*.txt # has test durations that differ across builds
|
2009-05-20 22:33:17 +00:00
|
|
|
|
2023-09-29 13:48:40 +00:00
|
|
|
%files -f .mfiles
|
2009-05-20 22:33:17 +00:00
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc doc/index.html *.txt
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|