From 35f1c70780d7e87b0f17eb7f67e6efbea34d045b Mon Sep 17 00:00:00 2001 From: Bernhard M. Wiedemann Date: Dec 07 2020 03:40:35 +0000 Subject: commit state of 2019-09-11 --- diff --git a/aelfred-icedtea-build.patch b/aelfred-icedtea-build.patch new file mode 100644 index 0000000..2d6ff1f --- /dev/null +++ b/aelfred-icedtea-build.patch @@ -0,0 +1,46 @@ +diff -rupN net.old/sf/saxon/aelfred/XmlParser.java net/sf/saxon/aelfred/XmlParser.java +--- net.old/sf/saxon/aelfred/XmlParser.java 2002-04-12 14:30:00.000000000 -0700 ++++ net/sf/saxon/aelfred/XmlParser.java 2014-08-08 07:24:55.979292881 -0700 +@@ -1463,7 +1463,7 @@ loop: + { + String name; + int type; +- String enum = null; ++ String enum2 = null; + + // Read the attribute name. + name = readNmtoken (true); +@@ -1475,12 +1475,12 @@ loop: + // Get the string of enumerated values + // if necessary. + if (type == ATTRIBUTE_ENUMERATED || type == ATTRIBUTE_NOTATION) { +- enum = dataBufferToString (); ++ enum2 = dataBufferToString (); + } + + // Read the default value. + requireWhitespace (); +- parseDefault (elementName, name, type, enum); ++ parseDefault (elementName, name, type, enum2); + } + + +@@ -1573,7 +1573,7 @@ loop: + String elementName, + String name, + int type, +- String enum ++ String enum2 + ) throws Exception + { + int valueType = ATTRIBUTE_DEFAULT_SPECIFIED; +@@ -1605,7 +1605,7 @@ loop: + } + } else + value = readLiteral (flags); +- setAttribute (elementName, name, type, enum, value, valueType); ++ setAttribute (elementName, name, type, enum2, value, valueType); + } + + +Binary files net.old/sf/saxon/aelfred/.XmlParser.java.un~ and net/sf/saxon/aelfred/.XmlParser.java.un~ differ diff --git a/aelfred.changes b/aelfred.changes new file mode 100644 index 0000000..c22ca11 --- /dev/null +++ b/aelfred.changes @@ -0,0 +1,81 @@ +------------------------------------------------------------------- +Tue May 15 05:00:18 UTC 2018 - fstrba@suse.com + +- Build with source and target 8 to prepare for a possible removal + of 1.6 compatibility + +------------------------------------------------------------------- +Wed Jan 10 03:57:04 UTC 2018 - bwiedemann@suse.com + +- Generate javadoc without timestamp to make build reproducible + (boo#1047218) + +------------------------------------------------------------------- +Thu Sep 14 07:54:54 UTC 2017 - fstrba@suse.com + +- Specify java source level 1.6 to allow building with jdk9 + +------------------------------------------------------------------- +Thu Dec 4 17:36:21 UTC 2014 - p.drouand@gmail.com + +- Remove java-devel dependency; not needed anymore + +------------------------------------------------------------------- +Fri Aug 8 14:26:03 UTC 2014 - sfalken@opensuse.org + +- Uploading proper patch, so things will build + +------------------------------------------------------------------- +Fri Aug 8 02:47:25 UTC 2014 - sfalken@opensuse.org + +- Updated to 7.0 + * Changed the package name to net.sf.saxon.aelfred to prevent any accidental confusion with the original Microstar code or with David Brownell's version. + * Fixed several bugs: (1) a bug in namespace handling (where an attribute xxx:name precedes the xmlns:xxx declaration) (2) poor diagnostics when end of file occurs prematurely + * Subsetting the code to include only the XML non-validating parser and SAX driver, with appropriate changes to the setFeature() and getFeature() methods. + * Some further changes made by David Brownell up to June 2001 have been incorporated. +- Rebased aelfred-icedtea-build.patch for new source +- Added: aelfred7_0.zip +- Deleted: aelfred.zip +- Updated URLs in specfile + +------------------------------------------------------------------- +Fri Jul 11 14:02:37 UTC 2014 - tchvatal@suse.com + +- Cleanup with spec-cleaner and do not version javadoc dir. + +------------------------------------------------------------------- +Mon Sep 9 11:04:07 UTC 2013 - tchvatal@suse.com + +- Move from jpackage-utils to javapackage-tools + +------------------------------------------------------------------- +Mon Jul 22 17:32:15 UTC 2013 - coolo@suse.com + +- %ghost is not a %dir but symlink + +------------------------------------------------------------------- +Sat Sep 17 10:49:23 UTC 2011 - jengelh@medozas.de + +- Remove redundant tags/sections from specfile + +------------------------------------------------------------------- +Mon Mar 3 10:28:26 CET 2008 - mvyskocil@suse.cz + +- merged with jpackage 1.7 +- allow to build with icedtea + +------------------------------------------------------------------- +Fri Mar 30 12:12:00 CEST 2007 - ssommer@suse.de + +- add unzip to BuildRequires + +------------------------------------------------------------------- +Wed Jan 25 21:45:42 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Wed Oct 19 13:40:50 CEST 2005 - jsmeix@suse.de + +- Current version 1.2 from JPackage.org + diff --git a/aelfred.spec b/aelfred.spec new file mode 100644 index 0000000..ae5acd4 --- /dev/null +++ b/aelfred.spec @@ -0,0 +1,89 @@ +# +# spec file for package aelfred +# +# Copyright (c) 2018 SUSE LINUX 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/ +# + + +Name: aelfred +Version: 7.0 +Release: 0 +Summary: Java-based XML parser +License: BSD-3-Clause +Group: Development/Libraries/Java +URL: http://saxon.sourceforge.net/aelfred.html +Source0: http://downloads.sourceforge.net/project/saxon/aelfred/7.0/aelfred7_0.zip +Patch0: aelfred-icedtea-build.patch +BuildRequires: ant +BuildRequires: java-devel >= 1.8 +BuildRequires: javapackages-tools +BuildRequires: unzip +BuildArch: noarch + +%description +AElfred is a Java-based XML parser from Microstar Software Ltd. AElfred +is distributed for free (with full source) for both commercial and +non-commercial use. + +%package javadoc +Summary: Java-based XML parser (documentation) +Group: Development/Libraries/Java + +%description javadoc +Javadoc for aelfred. + +%package demo +Summary: Java-based XML parser (demo and samples) +Group: Development/Libraries/Java +Requires: %{name} = %{version}-%{release} + +%description demo +Demonstrations and samples for aelfred. + +%prep +%setup -q -c +unzip %{name}-source.zip +%patch0 + +%build +export JAVA_HOME=%{java_home} +export PATH=%{java_home}/bin:$PATH +export CLASSPATH= +cd net +%{javac} -source 8 -target 8 `find . -name \*.java` +%{javadoc} -notimestamp -source 8 -d ../HTML `find . -name \*.java` + +%install +# jar +export JAVA_HOME=%{java_home} +cd net +mkdir -p %{buildroot}%{_javadir} +cp -a ../saxon-%{name}.jar \ +%{buildroot}%{_javadir}/%{name}-%{version}.jar +(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do \ +ln -s ${jar} ${jar/-%{version}/}; done) +# javadoc +mkdir -p %{buildroot}%{_javadocdir}/%{name} +cp -a ../HTML/* %{buildroot}%{_javadocdir}/%{name} + +%files +%defattr(0644,root,root,0755) +%{_javadir}/* + +%files javadoc +%defattr(0644,root,root,0755) +%dir %{_javadocdir}/%{name} +%{_javadocdir}/%{name}/* + +%changelog