xmlstarlet/xmlstarlet.spec
OBS User autobuild ac739b056f Accepting request 18836 from Publishing
Copy from Publishing/xmlstarlet based on submit request 18836 from user mlschroe

OBS-URL: https://build.opensuse.org/request/show/18836
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xmlstarlet?expand=0&rev=4
2009-08-26 13:46:55 +00:00

82 lines
2.2 KiB
RPMSpec

#
# spec file for package xmlstarlet (Version 1.0.1)
#
# Copyright (c) 2009 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: libxslt-devel pkgconfig sgml-skel
Summary: Command Line Tool to Process XML Documents
Version: 1.0.1
Release: 151
License: MIT License (or similar)
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 is a command line XML toolkit that can be used to transform,
query, validate, and edit XML documents and files using a simple set of
shell commands, which work similarly to 'grep', 'sed', 'awk', 'tr',
'diff', or 'patch' on plain text files.
Authors:
--------
Mikhail Grushinskiy <mgrouch@users.sourceforge.net>
%prep
%setup -q
%patch0 -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