diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3f2c5f5 --- /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.pom b/saxpath-1.0.pom new file mode 100644 index 0000000..d4edaa6 --- /dev/null +++ b/saxpath-1.0.pom @@ -0,0 +1,6 @@ + + 4.0.0 + saxpath + saxpath + 1.0-FCS + diff --git a/saxpath-1.0.tar.gz b/saxpath-1.0.tar.gz new file mode 100644 index 0000000..ee621fa Binary files /dev/null and b/saxpath-1.0.tar.gz differ diff --git a/saxpath.spec b/saxpath.spec new file mode 100644 index 0000000..a5ff22f --- /dev/null +++ b/saxpath.spec @@ -0,0 +1,69 @@ +Name: saxpath +Version: 1.0 +Release: 1 +Summary: Simple API for XPath +License: Saxpath +URL: http://sourceforge.net/projects/saxpath/ +Source0: http://downloads.sourceforge.net/saxpath/saxpath-1.0.tar.gz +#https://repo1.maven.org/maven2/saxpath/saxpath/1.0-FCS/saxpath-1.0-FCS.pom +Source1: %{name}-%{version}.pom +#https://spdx.org/licenses/Saxpath.html +Source2: LICENSE +BuildArch: noarch + +BuildRequires: ant ant-junit javapackages-local +Requires: jpackage-utils + +%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 +install -d -m 755 %{buildroot}/%{_javadir} +install -d -m 755 %{buildroot}/%{_mavenpomdir} +install -d -m 755 %{buildroot}/%{_javadocdir}/%{name} + +install -p -m 644 build/%{name}.jar %{buildroot}/%{_javadir}/ +install -p -m 644 %{SOURCE1} %{buildroot}/%{_mavenpomdir}/JPP-%{name}.pom +%add_maven_depmap +cp -a build/doc/* %{buildroot}/%{_javadocdir}/%{name}/ + +%check +ant test + +%files -f .mfiles +%doc LICENSE + +%files javadoc +%doc LICENSE +%{_javadocdir}/* + + +%changelog +* Sat Aug 15 2020 wangxiao - 1.0-1 +- package init diff --git a/saxpath.yaml b/saxpath.yaml new file mode 100644 index 0000000..00bbaf0 --- /dev/null +++ b/saxpath.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA