File jing.spec of Package jing
#
# spec file for package jing (Version 20091111)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: jing
BuildRequires: unzip
Summary: Validator for RELAX NG in Java
Version: 20091111
Release: 1
Url: http://code.google.com/p/jing-trang/
Source: http://jing-trang.googlecode.com/files/%{name}-%{version}.zip
Source1: jing
Source2: %{name}-doc.tar.bz2
License: BSD3c
Group: Productivity/Publishing/XML
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: jre
BuildArch: noarch
%description
jing is an XML validator implemented in Java. It validates against the
RELAX NG schema language and implements the following features:
* RELAX NG 1.0 Specification
* RELAX NG Compact Syntax
* Parts of RELAX NG DTD Compatibility (checking of ID/IDREF/IDREFS)
It also comes with experimental support for schema languages other than
RELAX NG:
* W3C XML Schema (based on Xerces-J)
* Schematron
* Name Space Routing Language
%prep
%setup -q
mkdir man ; cd man
tar xfj %{SOURCE2}
%build
%install
install -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/jing
install -D -m 644 bin/jing.jar $RPM_BUILD_ROOT%{_javadir}/jing-%{version}.jar
ln -s jing-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/jing.jar
mkdir -p $RPM_BUILD_ROOT%{_datadir}/jing
cp -a lib/* $RPM_BUILD_ROOT%{_datadir}/jing
install -D -m 0644 man/doc/jing.1 $RPM_BUILD_ROOT%{_mandir}/man1/jing.1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc readme.html doc/ sample
%{_bindir}/jing
%{_javadir}/*
%dir %{_datadir}/jing
%{_datadir}/jing/*
%{_mandir}/man1/*
%changelog