70 lines
1.7 KiB
RPMSpec
70 lines
1.7 KiB
RPMSpec
Name: xmlstarlet
|
|
Version: 1.0.1
|
|
Release: 3%{?dist}
|
|
Summary: Command Line XML Toolkit
|
|
Group: Applications/Text
|
|
License: MIT
|
|
URL: http://xmlstar.sourceforge.net/
|
|
Source0: http://dl.sourceforge.net/xmlstar/%{name}-%{version}.tar.gz
|
|
Patch0: xmlstarlet-1.0.1-nostatic.patch
|
|
Patch1: xmlstarlet-1.0.1-cmdname.patch
|
|
Patch2: xmlstarlet-1.0.1-docs.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: xmlto automake14 autoconf libxml2-devel libxslt-devel
|
|
|
|
%description
|
|
XMLStarlet is a set of command line utilities 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 UNIX grep, sed, awk, diff, patch, join, etc
|
|
commands.
|
|
|
|
%prep
|
|
%setup -q
|
|
# cope with inconsistent naming
|
|
%patch0 -p1 -b .nostatic
|
|
%patch1 -p1 -b .cmdname
|
|
%patch2 -p1 -b .docs
|
|
|
|
%build
|
|
automake-1.4 && autoconf
|
|
%configure
|
|
make
|
|
cd $RPM_BUILD_DIR/%{name}-%{version}/doc
|
|
xmlto man xmlstarlet-man.xml
|
|
xmlto html-nochunks xmlstarlet-ug.xml
|
|
./gen-doc > xmlstarlet.txt
|
|
|
|
|
|
%install
|
|
rm -fr %{buildroot}
|
|
|
|
%makeinstall
|
|
|
|
%clean
|
|
rm -fr %{buildroot}
|
|
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc AUTHORS ChangeLog NEWS README Copyright TODO doc/xmlstarlet.txt doc/xmlstarlet-ug.html
|
|
%{_mandir}/man1/xmlstarlet.1*
|
|
%{_bindir}/xmlstarlet
|
|
|
|
|
|
%changelog
|
|
* Fri Feb 17 2006 Paul W. Frields <stickster@gmail.com> - 1.0.1-3
|
|
- FESCo mandated rebuild
|
|
|
|
* Wed Nov 23 2005 Paul W. Frields <stickster@gmail.com> - 1.0.1-2
|
|
- Minor changes per review
|
|
|
|
* Tue Nov 22 2005 Paul W. Frields <stickster@gmail.com> - 1.0.1-1.2
|
|
- Improve patching to conquer inconsistent naming
|
|
|
|
* Tue Nov 22 2005 Paul W. Frields <stickster@gmail.com> - 1.0.1-1.1
|
|
- Initial RPM version
|
|
|
|
|