xmlstarlet/xmlstarlet.spec

116 lines
3.3 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: 150
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 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
%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
* 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