File xmlstarlet.spec of Package xmlstarlet
#
# spec file for package xmlstarlet (Version 1.0.1)
#
# Copyright (c) 2005 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: xmlstarlet
BuildRequires: libxslt-devel pkgconfig sgml-skel
Summary: Command Line Tool to Process XML Documents
Version: 1.0.1
Release: 3
License: X11/MIT
Group: Productivity/Publishing/XML
Source0: http://ftp1.sourceforge.net/xmlstar/xmlstarlet-%{version}.tar.gz
Patch0: %{name}-1.0.0-no_static_linking.diff
Patch1: %{name}-0.9.5-configure_fix.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
URL: http://sourceforge.net/projects/xmlstar/
Prefix: %{_prefix}
Docdir: %{_docdir}
%description
XMLStarlet (xml) is a command line XML toolkit which can be used to
transform, query, validate, and edit XML documents and files using
simple set of shell commands in similar way it is done for plain text
files using 'grep', 'sed', 'awk', 'tr', 'diff', or 'patch'.
Authors:
--------
Mikhail Grushinskiy <mgrouch@users.sourceforge.net>
%prep
%setup -q
%patch -p 1
%patch1
%build
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -W -Wall"
./configure --prefix=%prefix \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--libdir=%{_libdir}
make
make tests
mkdir -p html
cp -a doc/callouts html
cp doc/*{css,html} html
%install
rm -fr %{buildroot}
%makeinstall
%clean
rm -fr %{buildroot}
%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README Copyright TODO
%doc doc/xmlstarlet.txt doc/xmlstarlet.pdf
%doc html
%{prefix}/bin/xml
%{_mandir}/*/*
%changelog -n xmlstarlet
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 08 2005 - dmueller@suse.de
- don't build as root
* Mon Apr 04 2005 - ke@suse.de
- Update to version 1.0.1.
* Mon Jan 31 2005 - ke@suse.de
- Update to version 1.0.0:
* Fix various segfaults.
* Wed Dec 01 2004 - pth@suse.de
- Use xml2-config and xslt-config instead of hard coded paths
and libraries. This also gets rid of linking xmlstarlet statically.
* Thu Oct 14 2004 - ro@suse.de
- add libgcrypt and libgpg-error
* Thu Oct 07 2004 - ke@suse.de
- Update to version 0.9.5:
* Bugfixes.
* more examples and tests.
* Install HTML documentation.
- Drop obsolete configure patch.
* Fri Jul 16 2004 - ke@suse.de
- Update to version 0.9.1:
* Additional examples and tests.
* Fix c14n canonicalization bug.
* Update documentation.
* Mon Feb 16 2004 - ke@suse.de
- Update to version 0.8.1.
* Mon Sep 01 2003 - ke@suse.de
- Make it build on ppc64 and x86_64: use
--with-libxml-libs-prefix=%%_libdir,
--with-libxslt-libs-prefix=%%_libdir, and
--with-libiconv-libs-prefix=%%_libdir.
* Thu Aug 28 2003 - toms@suse.de
- New package: xmlstarlet 0.5.1