#
# spec file for package xml2
#
#
# 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.

#


Name:           xml2
Version:        0.5
Release:        2.37
Summary:        Convert between XML, HTML, CSV and a line-oriented format
License:        GPL-2.0+
Group:          Development/Tools/Building
Url:            http://ofb.net/~egnor/xml2/
Source:         %{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(libxml-2.0)


%description
xml2 tools are used to convert XML, HTML and CSV to and from a 
line-oriented format more amenable to processing by classic Unix 
pipeline processing tools, like grep, sed, awk, cut, shell scripts, 
and so forth.

%prep
%setup -q

%build
%configure
%make_build

%install
%make_install 

pushd %{buildroot}%{_bindir}
  %{__rm} -f 2html
  %{__ln_s} -v 2xml 2html
  %{__rm} -f html2
  %{__ln_s} -v xml2 html2
popd
  
%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/*

%changelog
* Thu May 18 2023 holgerbruenjes@gmx.net
  - rebuild glibc-2.37
* Sun Oct 11 2015 holgerbruenjes@gmx.net
  - first version 0.5