From d807350b10d58294ec30a79751c8c84d98d57e5a Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 6 Jan 2024 00:09:30 +0100 Subject: [PATCH] update to 1.1.3 [release 1.1.3-1mamba;Sat Jan 22 2011] --- README.md | 5 + ...-jfree-libxml-1.1.3-build_properties.patch | 18 ++ java-pentaho-libxml.spec | 155 ++++++++++++++++++ 3 files changed, 178 insertions(+) create mode 100644 java-jfree-libxml-1.1.3-build_properties.patch create mode 100644 java-pentaho-libxml.spec diff --git a/README.md b/README.md index be69a66..75487c3 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # java-pentaho-libxml +LibXML is a namespace aware SAX-Parser utility library. It eases the pain of implementing non-trivial SAX input handlers. The original code of these classes had been written by Peter Becker for the JCommon library. + +LibXML replaces the JCommon-XML classes, which were not namespace aware. +Due to JCommons frozen API, namespace awareness could not be added to the original code without creating a mess. + diff --git a/java-jfree-libxml-1.1.3-build_properties.patch b/java-jfree-libxml-1.1.3-build_properties.patch new file mode 100644 index 0000000..0e16d5b --- /dev/null +++ b/java-jfree-libxml-1.1.3-build_properties.patch @@ -0,0 +1,18 @@ +--- build.properties 2009-11-16 10:27:58.000000000 +0100 ++++ build.properties-gil 2011-01-22 14:49:56.000000000 +0100 +@@ -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 +\ Manca newline alla fine del file ++testsrc.dir=${basedir}/test ++antcontrib.available=true ++build.cache.dir=lib +\ Manca newline alla fine del file diff --git a/java-pentaho-libxml.spec b/java-pentaho-libxml.spec new file mode 100644 index 0000000..8bcbfa5 --- /dev/null +++ b/java-pentaho-libxml.spec @@ -0,0 +1,155 @@ +%define with_gcj 1 +%define javahome %{_jvmdir}/jdk +Name: java-pentaho-libxml +Version: 1.1.3 +Release: 1mamba +Summary: LibXML is a namespace aware SAX-Parser utility library +Group: Development/Libraries/Java +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://reporting.pentaho.org/ +# http://sourceforge.net/projects/jfreereport/ +# cvs -d:pserver:anonymous@jfreereport.cvs.sourceforge.net:/cvsroot/jfreereport login +# cvs -z3 -d:pserver:anonymous@jfreereport.cvs.sourceforge.net:/cvsroot/jfreereport co -P libxml +Source0: http://sourceforge.net/projects/jfreereport/files/02.%20Libraries/1.1.3-stable/libxml-1.1.3.zip +Patch0: java-jfree-libxml-1.1.3-build_properties.patch +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: java-gcj-compat +BuildRequires: libgcc +BuildRequires: libgcj4-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: ant-contribb3 +BuildRequires: java-jfree-libloader +BuildRequires: java-jfree-libbase +BuildRequires: jakarta-commons-logging +BuildRequires: apache-ant +BuildRequires: java-junit3 +BuildRequires: jpackage-utils +Requires: java-jfree-libbase +Requires: java-jfree-libloader +Requires: jpackage-utils +Obsoletes: java-jfree-libxml +Provides: java-jfree-libxml +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +LibXML is a namespace aware SAX-Parser utility library. It eases the pain of implementing non-trivial SAX input handlers. The original code of these classes had been written by Peter Becker for the JCommon library. + +LibXML replaces the JCommon-XML classes, which were not namespace aware. +Due to JCommons frozen API, namespace awareness could not be added to the original code without creating a mess. + +%if %with_gcj +%package gcj +Group: System/Libraries/Java +Summary: GCJ support for %{name} +Requires: java-gcj-compat + +%description gcj +LibXML is a namespace aware SAX-Parser utility library. + +This package contains GCJ support for %{name}. +%endif + +%package javadoc +Group: Documentation +Summary: Javadoc for %{name} + +%description javadoc +LibXML is a namespace aware SAX-Parser utility library. + +This package contains documentation for %{name}. + +%prep + +%setup -q -c -n libxml +%patch0 +for j in $(find . -name "*.jar"); do + rm -rf $j +done + +for txt in ChangeLog.txt licence-LGPL.txt README.txt; do + %{__perl} -pi -e 's/\r$//g' $txt +done + +mkdir -p lib/ant-contrib +ln -sf $(build-classpath libbase) lib/libbase.jar +%if "%{stage1}" != "1" +ln -sf $(build-classpath libloader) lib/libloader.jar +%endif +ln -sf $(build-classpath junit-3.8.2) lib/junit.jar +ln -sf $(build-classpath commons-logging-api) lib/ + +ln -s %{_javadir}/ant/* lib/ant-contrib + +%build +export CLASSPATH=$(build-classpath ant-contribb3 libbase junit-3.8.2 libloader commons-logging-api) +ant \ + jar javadoc + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_javadir} + +install -pm 644 dist/libxml-%{version}.jar %{buildroot}%{_javadir}/libxml-%{version}.jar + +( + cd %{buildroot}%{_javadir} + for jar in *-%{version}*; do + ln -sf ${jar} ${jar/-%{version}/} + done +) + +mkdir -p %{buildroot}%{_javadocdir}/libxml +cp -pr bin/javadoc/docs/api/* %{buildroot}%{_javadocdir}/libxml + +%if %with_gcj +%{_bindir}/aot-compile-rpm +%endif + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_javadir}/libxml-%{version}.jar +%{_javadir}/libxml.jar +%doc ChangeLog.txt licence-LGPL.txt README.txt + +%if %with_gcj +%post gcj +if [ -x %{_bindir}/rebuild-gcj-db ] ; then + %{_bindir}/rebuild-gcj-db +fi + +%postun gcj +if [ -x %{_bindir}/rebuild-gcj-db ] ; then + %{_bindir}/rebuild-gcj-db +fi + +%files gcj +%defattr(-,root,root) +%{_libdir}/gcj/java-pentaho-libxml/libxml-%{version}.jar.db +%{_libdir}/gcj/java-pentaho-libxml/libxml-%{version}.jar.so +%endif + +%files javadoc +%defattr(-,root,root) +%{_javadocdir}/libxml + +%changelog +* Sat Jan 22 2011 gil 1.1.3-1mamba +- update to 1.1.3 + +* Wed Dec 09 2009 gil 1.0.0-2mamba +- rebuilt + +* Wed Dec 09 2009 gil 1.0.0-1mamba +- update to 1.0.0 + +* Tue Dec 08 2009 gil 0.9.6-1mamba +- package created by autospec