File trang.spec of Package trang

#
# spec file for package trang (Version 20030619)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           trang
BuildRequires:  gcc-c++ gcc-java libxslt unzip
Summary:        Schema Converter Based on RELAX NG
Version:        20030619
Release:        286
Url:            http://www.thaiopensource.com/relaxng/trang.html
Source:         %{name}-%{version}.zip
Source1:        trang
License:        BSD 3-Clause
Group:          Productivity/Publishing/XML
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       jre jing
BuildArch:      noarch

%description
Trang is a command line converter for XML schema languages. The
following languages are supported:

* RELAX NG (XML syntax)

* RELAX NG compact syntax

* XML 1.0 DTDs

* W3C XML Schema

W3C XML Schema is not supported for input.

Trang can also derive a schema from XML documents.

Trang will try to build human-readable schemas; aspects of the input
schema will be preserved as much as possible (including definitions,
spreading over files, annotations, and comments).



%prep
%setup -q

%build

%install
install -D -m 755 %{S:1} $RPM_BUILD_ROOT%{_bindir}/trang
install -D -m 644 trang.jar $RPM_BUILD_ROOT%{_javadir}/trang.jar

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc copying.txt trang-manual.html
%{_bindir}/trang
%{_javadir}/*

%changelog
* Tue Feb 19 2008 prusnak@suse.cz
- fixed build
* Fri Mar 30 2007 rguenther@suse.de
- add unzip BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jun 03 2005 ke@suse.de
- For the moment, switch to the Java version:
  * Provide a trang wrapper script.
  * Make the package noarch.
  * Require jre and jing.
* Thu Apr 28 2005 skh@suse.de
- fix build with gcc 4:
  - use -findirect-dispatch
  - adjust Makefile.in to compile .java to .class and then
  .class to .o to be able to use -findirect-dispatch
  (matz@suse.de)
  - change some private members of inner classes to protected
  where gcj (probably wrongly) complains about illegal
  accesses
* Wed Oct 13 2004 ke@suse.de
- Add libgpg-error and libgcrypt to needeforbuild.
* Tue Sep 07 2004 ke@suse.de
- Remove namespace workaround; cf. [# 44214].
* Mon Aug 30 2004 ke@suse.de
- Disable two dubious test cases; cf. [# 44214].
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Tue Jun 24 2003 ke@suse.de
- New package: Version 20030619.
openSUSE Build Service is sponsored by