File xmlformat.spec of Package xmlformat

#
# spec file for package xmlformat (Version 1.04)
#
# Copyright (c) 2007 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:           xmlformat
BuildRequires:  perl
Summary:        XML document formatter
Version:        1.04
Release:        1
License:        BSD
Group:          Productivity/Publishing/XML
Source0:        http://www.kitebird.com/software/xmlformat/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:    noarch
URL:            http://www.kitebird.com/software/xmlformat/
Prefix:         %{_prefix}
Docdir:         %{_docdir}

%description
xmlformat is a configurable formatter (or "pretty-printer") for XML
documents. It provides control over indentation, line-breaking, and
text wrapping. These properties can be defined on a per-element basis.

xmlformat provides improved diagnostic information when a document is
not well-formed. (Prints line and token number, and stack trace).



Authors:
--------
    Paul DuBois <paul |at| kitebird |dot| com>

%prep
%setup -q

%build
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mkdir -p $RPM_BUILD_ROOT%{prefix}/bin/ $RPM_BUILD_ROOT%{_docdir}

%install
install -m755 xmlformat.pl  $RPM_BUILD_ROOT%{prefix}/bin/
install -m755 xmlformat.rb  $RPM_BUILD_ROOT%{prefix}/bin/

%clean
rm -fr %{buildroot}

%files
%defattr(-, root, root)
%doc BUGS ChangeLog INSTALL LICENSE README TODO
%doc bad* test.conf
%doc docs tests
%{prefix}/bin/xmlformat.*

%changelog -n xmlformat
* Tue Jan 30 2007 - toms@suse.de
- First release of version 1.04
openSUSE Build Service is sponsored by