From e8a7ac43b3396a011c2660db9ad070f46a8f154c698095aa4611166196f68845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Sat, 4 May 2024 00:28:58 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main saxpath revision 22ff1651e502cc63d5a43f68e64cea0e --- .gitattributes | 23 +++++++++++++ LICENSE | 52 +++++++++++++++++++++++++++++ saxpath-1.0-FCS.pom | 6 ++++ saxpath-1.0.tar.gz | 3 ++ saxpath.changes | 4 +++ saxpath.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 169 insertions(+) create mode 100644 .gitattributes create mode 100644 LICENSE create mode 100644 saxpath-1.0-FCS.pom create mode 100644 saxpath-1.0.tar.gz create mode 100644 saxpath.changes create mode 100644 saxpath.spec 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/LICENSE b/LICENSE new file mode 100644 index 0000000..f0399f7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,52 @@ + * ==================================================================== + * + * Copyright (C) 2000-2002 werken digital. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions, and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions, and the disclaimer that follows + * these conditions in the documentation and/or other materials + * provided with the distribution. + * + * 3. The name "SAXPath" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact license@saxpath.org. + * + * 4. Products derived from this software may not be called "SAXPath", nor + * may "SAXPath" appear in their name, without prior written permission + * from the SAXPath Project Management (pm@saxpath.org). + * + * In addition, we request (but do not require) that you include in the + * end-user documentation provided with the redistribution and/or in the + * software itself an acknowledgement equivalent to the following: + * "This product includes software developed by the + * SAXPath Project (http://www.saxpath.org/)." + * Alternatively, the acknowledgment may be graphical using the logos + * available at http://www.saxpath.org/ + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE SAXPath AUTHORS OR THE PROJECT + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * ==================================================================== + * This software consists of voluntary contributions made by many + * individuals on behalf of the SAXPath Project and was originally + * created by bob mcwhirter and + * James Strachan . For more information on the + * SAXPath Project, please see . diff --git a/saxpath-1.0-FCS.pom b/saxpath-1.0-FCS.pom new file mode 100644 index 0000000..ab79a9d --- /dev/null +++ b/saxpath-1.0-FCS.pom @@ -0,0 +1,6 @@ + + 4.0.0 + saxpath + saxpath + 1.0-FCS + \ No newline at end of file diff --git a/saxpath-1.0.tar.gz b/saxpath-1.0.tar.gz new file mode 100644 index 0000000..828d8e0 --- /dev/null +++ b/saxpath-1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90c07abb3e3f09c398c02d84b44b651aa59d724aa6fabf45aa44a2365a6725c1 +size 2166023 diff --git a/saxpath.changes b/saxpath.changes new file mode 100644 index 0000000..c6e4541 --- /dev/null +++ b/saxpath.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Aug 23 19:45:51 UTC 2023 - Fridrich Strba + +- Initial packaging of standalone saxpath with version 1.0 FCS diff --git a/saxpath.spec b/saxpath.spec new file mode 100644 index 0000000..c4d4551 --- /dev/null +++ b/saxpath.spec @@ -0,0 +1,81 @@ +# +# spec file for package saxpath +# +# Copyright (c) 2023 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: saxpath +Version: 1.0 +Release: 0 +Summary: Simple API for XPath +License: Saxpath +URL: https://sourceforge.net/projects/saxpath/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Source1: https://repo1.maven.org/maven2/%{name}/%{name}/%{version}-FCS/%{name}-%{version}-FCS.pom +Source2: LICENSE +BuildRequires: ant +BuildRequires: javapackages-local +Requires: jpackage-utils +BuildArch: noarch + +%description +The SAXPath project is a Simple API for XPath. SAXPath is analogous to SAX +in that the API abstracts away the details of parsing and provides a simple +event based callback interface. + +%package javadoc +Summary: API documentation for %{name} + +%description javadoc +This package contains %{summary}. + +%prep +%setup -q -n %{name}-%{version}-FCS + +find -name \*.jar -delete + +cp %{SOURCE2} . + +%build +mkdir src/conf +touch src/conf/MANIFEST.MF + +%{ant} + +# fix rpmlint warings: saxpath-javadoc.noarch: W: wrong-file-end-of-line-encoding /usr/share/javadoc/saxpath/**/*.css +for file in `find build/doc -type f | grep .css`; do + sed -i 's/\r//g' $file +done + +%install +# jar +install -d -m 755 %{buildroot}/%{_javadir} +install -p -m 644 build/%{name}.jar %{buildroot}/%{_javadir}/ +# pom +install -d -m 755 %{buildroot}/%{_mavenpomdir} +install -p -m 644 %{SOURCE1} %{buildroot}/%{_mavenpomdir}/%{name}.pom +%add_maven_depmap %{name}.pom %{name}.jar +# javadoc +install -d -m 755 %{buildroot}/%{_javadocdir}/%{name} +cp -a build/doc/* %{buildroot}/%{_javadocdir}/%{name}/ + +%files -f .mfiles +%license LICENSE + +%files javadoc +%license LICENSE +%{_javadocdir}/%{name} + +%changelog