java-msv/java-msv.spec

107 lines
3.7 KiB
RPMSpec
Raw Normal View History

Name: java-msv
Version: 2022.7
Release: 1mamba
Summary: Sun Multi-Schema Validator
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://msv.dev.java.net/
Source0: https://repo.mavenlibs.com/maven/net/java/dev/msv/msv-core/%{version}/msv-core-%{version}.jar
Source1: https://repo.mavenlibs.com/maven/net/java/dev/msv/msv-relames/%{version}/msv-relames-%{version}.jar
Source2: https://repo.mavenlibs.com/maven/net/java/dev/msv/msv-rngconverter/%{version}/msv-rngconverter-%{version}.jar
Source3: https://repo.mavenlibs.com/maven/net/java/dev/msv/msv-generator/%{version}/msv-generator-%{version}.jar
Source4: https://repo.mavenlibs.com/maven/net/java/dev/msv/xsdlib/%{version}/xsdlib-%{version}.jar
License: BSD
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
Requires: javapackages
Provides: java-msv-msv
Obsoletes: java-msv-msv <= 1.2
Provides: java-msv-relames
Obsoletes: java-msv-relames <= 1.2
Provides: java-msv-rngconv
Obsoletes: java-msv-rngconv <= 1.2
Provides: java-msv-xmlgen
Obsoletes: java-msv-xmlgen <= 1.2
Provides: java-msv-xsdlib
Obsoletes: java-msv-xsdlib <= 1.2
%description
The Sun Multi-Schema XML Validator (MSV) is a Java technology tool to validate XML documents against several kinds of XML schemata. It supports RELAX NG,
RELAX Namespace, RELAX Core, TREX, XML DTDs, and a subset of XML Schema Part 1. This latest (version 1.2) release includes several bug fixes and adds better conformance to RELAX NG/W3C XML standards and JAXP masquerading.
This tool is:
* A command line tool that can read XML documents and validate them against a schema (DTD/RELAX/TREX/W3C).
If an error is found, error messages are provided.
* A library that can be incorporated into Java applications as a validator.
See the included commandline.html file for details on how to use MSV from the command line. See the included developer.html file for details on how to use it as a library.
%prep
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}
install -m 644 %{SOURCE0} \
%{buildroot}%{_javadir}/msv-msv-%{version}.jar
install -m 644 %{SOURCE1} \
%{buildroot}%{_javadir}/msv-relames-%{version}.jar
install -m 644 %{SOURCE2} \
%{buildroot}%{_javadir}/msv-rngconv-%{version}.jar
install -m 644 %{SOURCE3} \
%{buildroot}%{_javadir}/msv-xmlgen-%{version}.jar
install -m 644 %{SOURCE4} \
%{buildroot}%{_javadir}/msv-xsdlib-%{version}.jar
(
cd %{buildroot}%{_javadir}
for jar in *-%{version}.jar; do
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
done
)
(
cd %{buildroot}%{_javadir}
ln -sf msv-msv.jar msv-strict.jar
ln -sf msv-xsdlib.jar xsdlib.jar
)
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_javadir}/msv-msv-%{version}.jar
%{_javadir}/msv-msv.jar
%{_javadir}/msv-strict.jar
%{_javadir}/msv-relames-%{version}.jar
%{_javadir}/msv-relames.jar
%{_javadir}/msv-rngconv-%{version}.jar
%{_javadir}/msv-rngconv.jar
%{_javadir}/msv-xmlgen-%{version}.jar
%{_javadir}/msv-xmlgen.jar
%{_javadir}/msv-xsdlib-%{version}.jar
%{_javadir}/msv-xsdlib.jar
%{_javadir}/xsdlib.jar
%changelog
* Sat Aug 20 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2022.7-1mamba
- update to 2022.7
* Fri Mar 25 2011 gil <puntogil@libero.it> 1.2-4mamba
- rebuilt with java-gcj-compat support
* Thu Dec 02 2010 gil <puntogil@libero.it> 1.2-3mamba
- rebuilt devel
* Mon Mar 09 2009 gil <puntogil@libero.it> 1.2-2mamba
- rebuilt
* Thu Feb 26 2009 gil <puntogil@libero.it> 1.2-1mamba
- package created by autospec