Fridrich Strba 2024-09-29 05:47:35 +00:00 committed by Git OBS Bridge
commit 0797363b31
7 changed files with 298 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -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

43
aelfred-javadoc.patch Normal file
View File

@ -0,0 +1,43 @@
--- aelfred-7.0/net/sf/saxon/aelfred/SAXDriver.java 2022-03-19 13:47:57.460297985 +0100
+++ aelfred-7.0/net/sf/saxon/aelfred/SAXDriver.java 2022-03-19 13:58:48.212214516 +0100
@@ -60,13 +60,14 @@
* no longer public. See the package level documentation for more
* information.
*
- * <table border="1" width='100%' cellpadding='3' cellspacing='0'>
- * <tr bgcolor='#ccccff'>
- * <th><font size='+1'>Name</font></th>
- * <th><font size='+1'>Notes</font></th></tr>
+ * <table border="1" style="width:100%">
+ * <caption></caption>
+ * <tr style="background-color:#ccccff">
+ * <th>Name</th>
+ * <th>Notes</th></tr>
*
- * <tr><td colspan=2><center><em>Features ... URL prefix is
- * <b>http://xml.org/sax/features/</b></em></center></td></tr>
+ * <tr><td colspan=2 style="align:center"><em>Features ... URL prefix is
+ * <b>http://xml.org/sax/features/</b></em></td></tr>
*
* <tr><td>(URL)/external-general-entities</td>
* <td>Value is fixed at <em>true</em></td></tr>
@@ -82,8 +83,8 @@
* <tr><td>(URL)/validation</td>
* <td>Value is fixed at <em>false</em></td></tr>
*
- * <tr><td colspan=2><center><em>Handler Properties ... URL prefix is
- * <b>http://xml.org/sax/properties/</b></em></center></td></tr>
+ * <tr><td colspan=2 style="align:center"><em>Handler Properties ... URL prefix is
+ * <b>http://xml.org/sax/properties/</b></em></td></tr>
*
* <tr><td>(URL)/declaration-handler</td>
* <td>A declaration handler may be provided. Declaration of general
@@ -186,7 +187,7 @@
/**
* <b>SAX1, SAX2</b>: Set the entity resolver for this parser.
- * @param handler The object to receive entity events.
+ * @param resolver The object to receive entity events.
*/
public void setEntityResolver (EntityResolver resolver)
{

93
aelfred.changes Normal file
View File

@ -0,0 +1,93 @@
-------------------------------------------------------------------
Tue Feb 20 10:02:33 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Sat Mar 19 13:00:20 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* aelfred-javadoc.patch
+ fix build with javadoc 17
-------------------------------------------------------------------
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

89
aelfred.spec Normal file
View File

@ -0,0 +1,89 @@
#
# spec file for package aelfred
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: aelfred
Version: 7.0
Release: 0
Summary: Java-based XML parser
License: BSD-3-Clause
Group: Development/Libraries/Java
URL: https://saxon.sourceforge.net/aelfred.html
Source0: http://downloads.sourceforge.net/project/saxon/aelfred/7.0/aelfred7_0.zip
Patch0: aelfred-icedtea-build.patch
Patch1: aelfred-javadoc.patch
BuildRequires: ant
BuildRequires: fdupes
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
rm *.jar
unzip %{name}-source.zip
%patch -P 0
%patch -P 1 -p1
%build
mkdir -p classes
javac -source 8 -target 8 -d classes `find net -name \*.java`
javadoc -notimestamp -source 8 -d HTML `find net -name \*.java`
jar \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
--date="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \
%endif
--create --file=%{name}.jar -C classes .
%install
# jar
install -dm 0755 %{buildroot}%{_javadir}
install -pm 0644 %{name}.jar %{buildroot}%{_javadir}/%{name}.jar
# javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
cp -a HTML/* %{buildroot}%{_javadocdir}/%{name}
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
%files
%{_javadir}/%{name}.jar
%files javadoc
%{_javadocdir}/%{name}
%changelog

3
aelfred7_0.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c8a7dba1d509d1962a3785040af6a6c5c2958178394803fc4a315d40f9261ae9
size 80866