File jing.spec of Package jing

#
# spec file for package jing (Version 20081028)
#
# Copyright (c) 2009 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:        20081028
Release:        2
Url:            http://code.google.com/p/jing-trang/
Source:         %{name}-%{version}.zip
Source1:        jing
Source2:        %{name}-doc.tar.bz2
License:        BSD 3-Clause
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



Authors:
--------
    James Clark <jjc@jclark.com>

%prep
%setup -q -a 2

%build

%install
install -D -m 644 bin/jing.jar $RPM_BUILD_ROOT%{_javadir}/jing.jar
install -d $RPM_BUILD_ROOT%{_datadir}/jing
cp -a lib/* $RPM_BUILD_ROOT%{_datadir}/jing
install -D -m 755 %{S:1} $RPM_BUILD_ROOT%{_bindir}/jing
install -D -m 0644 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
* Wed Mar 18 2009 prusnak@suse.cz
- added documentation (manpage) by Thomas Schraitle
* Thu Nov 27 2008 prusnak@suse.cz
- updated to 20081028
* Tue Feb 19 2008 prusnak@suse.cz
- fixed build
* Thu Mar 29 2007 rguenther@suse.de
- add unzip BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jun 06 2005 ke@suse.de
- Add wrapper script; proposed by Martin Vidner.
* Fri Jun 03 2005 ke@suse.de
- New package: jing version 20030619.
openSUSE Build Service is sponsored by