commit 08f5f9b0ac01034f2e4f9a9d7cc93550c89fde95253fa15074b9a7a5e74e2d61 Author: Michal Vyskocil Date: Tue Jan 7 13:52:44 2014 +0000 - Initial packaging of pentaho-libxml 1.1.3 for SUSE (based on Fedora spec) * add libxml-1.1.2-build.patch OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/pentaho-libxml?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libxml-1.1.2-build.patch b/libxml-1.1.2-build.patch new file mode 100644 index 0000000..caa0445 --- /dev/null +++ b/libxml-1.1.2-build.patch @@ -0,0 +1,17 @@ +--- pentaho-libxml-1.1.3/build.properties 2009-11-17 15:20:48.000000000 +0000 ++++ pentaho-libxml-1.1.3/build.properties 2009-11-17 15:20:57.000000000 +0000 +@@ -1,4 +1,4 @@ +-project.revision=TRUNK-SNAPSHOT ++project.revision=1.1.3 + ivy.artifact.group=pentaho-library + ivy.artifact.id=libxml + impl.title=LibXml +@@ -6,4 +6,6 @@ + src.dir=${basedir}/source + dependency.libbase.revision=1.1.3 + dependency.libloader.revision=1.1.3 +-testsrc.dir=${basedir}/test +\ No newline at end of file ++testsrc.dir=${basedir}/test ++antcontrib.available=true ++build.cache.dir=lib diff --git a/libxml-1.1.3-jarsdeleted.zip b/libxml-1.1.3-jarsdeleted.zip new file mode 100644 index 0000000..88e4032 --- /dev/null +++ b/libxml-1.1.3-jarsdeleted.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93c7e4f052aa7f279c92dbda182ea5467d101915847a93a917653283bd961962 +size 119951 diff --git a/pentaho-libxml.changes b/pentaho-libxml.changes new file mode 100644 index 0000000..3b076c7 --- /dev/null +++ b/pentaho-libxml.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Tue Jan 7 13:52:18 UTC 2014 - mvyskocil@suse.com + +- Initial packaging of pentaho-libxml 1.1.3 for SUSE (based on Fedora spec) + * add libxml-1.1.2-build.patch + diff --git a/pentaho-libxml.spec b/pentaho-libxml.spec new file mode 100644 index 0000000..7892ade --- /dev/null +++ b/pentaho-libxml.spec @@ -0,0 +1,91 @@ +# +# spec file for package pentaho-libxml +# +# Copyright (c) 2014 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 origname libxml +Name: pentaho-libxml +Version: 1.1.3 +Release: 0 +Summary: Namespace aware SAX-Parser utility library +License: LGPL-2.0 +Group: System Environment/Libraries +Url: http://reporting.pentaho.org/ +#Original source: http://downloads.sourceforge.net/jfreereport/%%{origname}-%%{version}.zip +#unzip, find . -name "*.jar" -exec rm {} \; +#to simplify the licensing +Source: %{origname}-%{version}-jarsdeleted.zip +#PATCH-FIX-UPSTREAM, fix some properties for build +Patch0: libxml-1.1.2-build.patch + +BuildRequires: ant +BuildRequires: ant-contrib +BuildRequires: java-devel +BuildRequires: jpackage-utils +BuildRequires: libbase +BuildRequires: libloader +BuildRequires: unzip +Requires: java +Requires: jpackage-utils +Requires: libbase >= 1.1.2 +Requires: libloader >= 1.1.2 +BuildArch: noarch + +%description +Pentaho LibXML is a namespace aware SAX-Parser utility library. It eases the +pain of implementing non-trivial SAX input handlers. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation +Requires: %{name} = %{version} +Requires: jpackage-utils + +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q -c +%patch0 -p1 -b .build +find . -name "*.jar" -exec rm -f {} \; +mkdir -p lib +build-jar-repository -s -p lib commons-logging-api libbase libloader +cd lib +ln -s %{_javadir}/ant ant-contrib + +%build +ant jar javadoc +for file in README.txt licence-LGPL.txt ChangeLog.txt; do + tr -d '\r' < $file > $file.new + mv $file.new $file +done + +%install +mkdir -p %{buildroot}%{_javadir} +cp -p ./dist/%{origname}-%{version}.jar %{buildroot}%{_javadir}/%{origname}.jar + +mkdir -p %{buildroot}%{_javadocdir}/%{origname} +cp -rp bin/javadoc/docs/api %{buildroot}%{_javadocdir}/%{origname} + +%files +%defattr(-,root,root) +%doc licence-LGPL.txt README.txt ChangeLog.txt +%{_javadir}/%{origname}.jar + +%files javadoc +%defattr(-,root,root) +%{_javadocdir}/%{origname} + +%changelog