forked from pool/xml-im-exporter
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 15 08:24:06 CEST 2009 - mvyskocil@suse.cz
|
||||
|
||||
- 'Initial SUSE packaging'
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
#
|
||||
# spec file for package xml-im-exporter (Version 1.1)
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products 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: xml-im-exporter
|
||||
Version: 1.1
|
||||
Release: 2
|
||||
Summary: XML Im-/Exporter
|
||||
License: LGPL v2.0 or later
|
||||
Url: http://xml-im-exporter.sourceforge.net/
|
||||
Group: Development/Libraries/Java
|
||||
Source0: xml-im-exporter1.1.tar.bz2
|
||||
Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/de/zeigermann/xml/xml-im-exporter/1.1/xml-im-exporter-1.1.pom
|
||||
Patch0: xml-im-exporter-build_xml.patch
|
||||
BuildRequires: jpackage-utils >= 1.6
|
||||
BuildRequires: ant >= 1.6
|
||||
BuildRequires: ant-junit
|
||||
BuildRequires: junit
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%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
|
||||
License: LGPL v2.0 or later
|
||||
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
|
||||
%patch0 -b .sav
|
||||
|
||||
%build
|
||||
export CLASSPATH=
|
||||
export OPT_JAT_LIST="junit ant/ant-junit"
|
||||
ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 jar test javadocs
|
||||
|
||||
%install
|
||||
# jars
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||||
install -m 644 build/lib/%{name}%{version}.jar \
|
||||
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||
# javadoc
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||
cp -pr doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||
# maven
|
||||
%add_to_maven_depmap de.zeigermann.xml %{name} %{version} JPP %{name}
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
|
||||
install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}.pom
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc doc/index.html *.txt
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_javadir}/%{name}-%{version}.jar
|
||||
%{_datadir}/maven2/poms/*
|
||||
%config %{_mavendepmapfragdir}/*
|
||||
|
||||
%files javadoc
|
||||
%defattr(0644,root,root,0755)
|
||||
%{_javadocdir}/%{name}-%{version}
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Fri May 15 2009 mvyskocil@suse.cz
|
||||
- 'Initial SUSE packaging'
|
||||
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
@@ -0,0 +1 @@
|
||||
.osc
|
||||
@@ -0,0 +1,8 @@
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>de.zeigermann.xml</groupId>
|
||||
<artifactId>xml-im-exporter</artifactId>
|
||||
<name>XML Im-/Exporter</name>
|
||||
<version>1.1</version>
|
||||
<url>http://xml-im-exporter.sourceforge.net</url>
|
||||
</project>
|
||||
@@ -0,0 +1,20 @@
|
||||
--- build.xml.sav 2005-08-23 17:38:32.000000000 +0200
|
||||
+++ build.xml 2005-08-23 17:38:59.000000000 +0200
|
||||
@@ -143,12 +143,12 @@
|
||||
-->
|
||||
|
||||
<target name="test" depends="build" description="Exectutes JUnit tests">
|
||||
- <junit printsummary="yes" haltonfailure="yes">
|
||||
+ <junit printsummary="yes" haltonfailure="no">
|
||||
<classpath refid="classpath" />
|
||||
<formatter type="plain" />
|
||||
- <test name="de.zeigermann.xml.XMLWriterTest" haltonfailure="yes" />
|
||||
- <test name="de.zeigermann.xml.simpleImporter.SimpleImportTest" haltonfailure="yes" />
|
||||
+ <test name="de.zeigermann.xml.XMLWriterTest" haltonfailure="no" />
|
||||
+ <test name="de.zeigermann.xml.simpleImporter.SimpleImportTest" haltonfailure="no" />
|
||||
</junit>
|
||||
</target>
|
||||
|
||||
-</project>
|
||||
\ No newline at end of file
|
||||
+</project>
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d82826d12ea82d79a601b2fd99bafd13906c011201fe64ba299a40deb3ccdd6e
|
||||
size 208168
|
||||
Reference in New Issue
Block a user