2005-11-26 14:14:22 +00:00
|
|
|
Name: xmlstarlet
|
2010-12-18 17:01:59 +00:00
|
|
|
Version: 1.0.3
|
2010-11-01 18:30:16 +00:00
|
|
|
Release: 1%{?dist}
|
2005-11-26 14:14:22 +00:00
|
|
|
Summary: Command Line XML Toolkit
|
|
|
|
Group: Applications/Text
|
|
|
|
License: MIT
|
|
|
|
URL: http://xmlstar.sourceforge.net/
|
2010-01-10 18:03:40 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/xmlstar/%{name}-%{version}.tar.gz
|
2010-12-18 17:01:59 +00:00
|
|
|
Patch0: xmlstarlet-1.0.3-nostatic.patch
|
|
|
|
Patch1: xmlstarlet-1.0.3-cmdname.patch
|
2005-11-26 14:14:22 +00:00
|
|
|
Patch2: xmlstarlet-1.0.1-docs.patch
|
2010-12-18 17:01:59 +00:00
|
|
|
Patch3: xmlstarlet-1.0.3-bigxmldtd-results.patch
|
2005-11-26 14:14:22 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2006-09-16 03:27:46 +00:00
|
|
|
BuildRequires: xmlto automake autoconf libxml2-devel libxslt-devel
|
2005-11-26 14:14:22 +00:00
|
|
|
|
|
|
|
%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
|
2010-12-18 17:01:59 +00:00
|
|
|
# Refer to https://bugzilla.gnome.org/show_bug.cgi?id=325533
|
|
|
|
%patch3 -p1 -b .bigxmldtd-results
|
2005-11-26 14:14:22 +00:00
|
|
|
|
|
|
|
%build
|
2006-09-16 03:27:46 +00:00
|
|
|
autoreconf -i
|
2010-12-18 17:33:06 +00:00
|
|
|
%configure --libdir=%{_libdir}
|
2008-03-21 20:58:18 +00:00
|
|
|
make %{?_smp_mflags}
|
2005-11-26 14:14:22 +00:00
|
|
|
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}
|
2008-03-21 20:58:18 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2005-11-26 14:14:22 +00:00
|
|
|
|
|
|
|
|
2010-12-18 17:01:59 +00:00
|
|
|
%check
|
|
|
|
cd tests
|
|
|
|
./runTests
|
|
|
|
|
|
|
|
|
2005-11-26 14:14:22 +00:00
|
|
|
%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
|
2010-12-18 17:01:59 +00:00
|
|
|
* Fri Dec 17 2010 Paul W. Frields <stickster@gmail.com> - 1.0.3-1
|
|
|
|
- Update to new upstream 1.0.3
|
|
|
|
- Add %%check section for validation testing
|
|
|
|
|
2010-11-01 18:30:16 +00:00
|
|
|
* Mon Nov 1 2010 Paul W. Frields <stickster@gmail.com> - 1.0.2-1
|
|
|
|
- Update to new upstream 1.0.2
|
|
|
|
|
2010-01-10 18:03:40 +00:00
|
|
|
* Sun Jan 10 2010 Paul W. Frields <stickster@gmail.com> - 1.0.1-9
|
|
|
|
- Correct source URL
|
|
|
|
|
2009-07-27 08:12:56 +00:00
|
|
|
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-26 10:06:23 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-03-21 20:58:18 +00:00
|
|
|
* Fri Mar 21 2008 Paul W. Frields <stickster@gmail.com> - 1.0.1-6
|
|
|
|
- Rebuild to use FORTIFY_SOURCE correctly
|
|
|
|
|
2008-02-19 19:06:03 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.1-5
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2006-09-16 03:27:46 +00:00
|
|
|
* Sat Sep 2 2006 Paul W. Frields <stickster@gmail.com> - 1.0.1-4
|
|
|
|
- Bump release for FC6 mass rebuild
|
|
|
|
|
2006-02-18 04:10:38 +00:00
|
|
|
* Fri Feb 17 2006 Paul W. Frields <stickster@gmail.com> - 1.0.1-3
|
|
|
|
- FESCo mandated rebuild
|
|
|
|
|
2005-11-26 14:14:22 +00:00
|
|
|
* 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
|
|
|
|
|
|
|
|
|