# # spec file for package xmlstarlet # # Copyright (c) 2011 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: xmlstarlet BuildRequires: libxml2-devel >= 2.6.23 BuildRequires: libxslt-devel >= 1.1.9 BuildRequires: sgml-skel BuildRequires: autoconf automake gcc glibc-devel libtool pkgconfig Summary: Command Line Tool to Process XML Documents Version: 1.2.1 Release: 1 License: MIT License (or similar) Group: Productivity/Publishing/XML # http://prdownloads.sourceforge.net/xmlstar/xmlstarlet-%{version}.tar.gz Source0: xmlstarlet-%{version}.tar.bz2 Source1: %{name}-rpmlintrc Patch2: %{name}-xml_depyx.c.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build Url: http://sourceforge.net/projects/xmlstar/ %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 %prep %setup -q %patch2 #%patch3 %build export CFLAGS="$RPM_OPT_FLAGS -W -Wall" %configure \ --disable-static-libs %__make %{?_smp_flags} %__mkdir_p html %__cp -a doc/callouts html %__cp doc/*{css,html} html %check %__make tests %install %makeinstall %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files %defattr(-, root, root) %doc AUTHORS ChangeLog NEWS README Copyright TODO %doc doc/xmlstarlet.txt doc/xmlstarlet.pdf %doc html %{_bindir}/xml %doc %{_mandir}/man1/xmlstarlet.1%{ext_man} %changelog