diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d3839a2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/relaxngDatatype-2011.1.tar.gz diff --git a/copying.txt b/copying.txt new file mode 100644 index 0000000..1b86eab --- /dev/null +++ b/copying.txt @@ -0,0 +1,30 @@ +Copyright (c) 2001, Thai Open Source Software Center Ltd, Sun Microsystems. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + Neither the names of the copyright holders nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS 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 REGENTS OR +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. diff --git a/relaxng-datatype-java.spec b/relaxng-datatype-java.spec new file mode 100644 index 0000000..c7b53df --- /dev/null +++ b/relaxng-datatype-java.spec @@ -0,0 +1,51 @@ +Name: relaxng-datatype-java +Version: 2011.1 +Release: 1%{?dist} +Summary: The relaxng datatype library for Java +# License file is not present in the source repository, the file was retrieved +# from SourceForge where the previous version is hosted +# https://sourceforge.net/projects/relaxng/files/datatype%20%28java%29/Ver.1.0/relaxngDatatype-1.0.zip/download +License: BSD-3-Clause +URL: https://relaxng.org/ +BuildArch: noarch +ExclusiveArch: %{java_arches} noarch + +Source0: https://github.com/java-schema-utilities/%{name}/archive/refs/tags/relaxngDatatype-%{version}.tar.gz +Source1: copying.txt + +BuildRequires: maven-local + +%description +Interface between RELAX NG validators and datatype libraries. + +%package javadoc +Summary: API documentation for %{name} + +%description javadoc +This package provides %{summary}. + +%prep +%setup -q -n %{name}-relaxngDatatype-%{version} +cp %{SOURCE1} . + +%pom_remove_parent + +%pom_xpath_remove 'pom:build/pom:extensions' + +%mvn_alias com.github.relaxng:relaxngDatatype relaxngDatatype:relaxngDatatype + +%build +%mvn_build -- -Dmaven.compiler.release=8 + +%install +%mvn_install + +%files -f .mfiles +%license copying.txt + +%files javadoc -f .mfiles-javadoc +%license copying.txt + +%changelog +* Mon Aug 07 2023 Marian Koncek - 2011.1-1 +- Initial build diff --git a/sources b/sources new file mode 100644 index 0000000..9a4ab35 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (relaxngDatatype-2011.1.tar.gz) = 8835cd7728aad10c1bb3e1b80f45e54699df8c502c1fbbbb0355b522bb591040116fa57f1495f1fecaf9a22174e0eebb55be5911cf29bf0eb9dce86be16a72bf