bd60e2
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
bd60e2
bd60e2
Name: xmlstarlet
bd60e2
Version: 1.6.1
bd60e2
Release: 20%{?dist}
bd60e2
Summary: Command Line XML Toolkit
bd60e2
License: MIT
bd60e2
URL: http://xmlstar.sourceforge.net/
bd60e2
Source0: http://downloads.sourceforge.net/xmlstar/%{name}-%{version}.tar.gz
bd60e2
# https://sourceforge.net/p/xmlstar/bugs/109/
bd60e2
Patch0: xmlstarlet-1.6.1-nogit.patch
bd60e2
# http://sourceforge.net/tracker/?func=detail&aid=3266898&group_id=66612&atid=515106
bd60e2
bd60e2
BuildRequires: make
bd60e2
BuildRequires: gcc
bd60e2
BuildRequires: xmlto automake autoconf libxslt-devel
bd60e2
BuildRequires: libxml2-devel >= 2.6.23
bd60e2
BuildRequires: docbook5-schemas
bd60e2
bd60e2
bd60e2
%description
bd60e2
XMLStarlet is a set of command line utilities which can be used
bd60e2
to transform, query, validate, and edit XML documents and files
bd60e2
using simple set of shell commands in similar way it is done for
bd60e2
plain text files using UNIX grep, sed, awk, diff, patch, join, etc
bd60e2
commands.
bd60e2
bd60e2
%prep
bd60e2
%autosetup -p1
bd60e2
bd60e2
bd60e2
%build
bd60e2
autoreconf -i
bd60e2
%configure --disable-static-libs --with-libxml-include-prefix=%{_includedir}/libxml2 --docdir=%{_pkgdocdir} # --libdir=%{_libdir}
bd60e2
%make_build
bd60e2
bd60e2
bd60e2
%install
bd60e2
%make_install
bd60e2
# Avoid name kludging in autotools
bd60e2
mv %{buildroot}%{_bindir}/xml %{buildroot}%{_bindir}/xmlstarlet
bd60e2
bd60e2
bd60e2
%check
bd60e2
make check
bd60e2
bd60e2
bd60e2
bd60e2
%files
bd60e2
%doc AUTHORS ChangeLog NEWS README Copyright TODO
bd60e2
%doc %{_pkgdocdir}/*
bd60e2
%{_mandir}/man1/xmlstarlet.1*
bd60e2
%{_bindir}/xmlstarlet
bd60e2
bd60e2
bd60e2
%changelog
bd60e2
* Thu May 12 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.6.1-20
bd60e2
- Rebuild
bd60e2
  Related: #2069689
bd60e2
bd60e2
* Thu Mar 17 2022 Neal Gompa <ngompa@datto.com> - 1.6.1-19
bd60e2
- Minor spec improvements
bd60e2
bd60e2
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-18
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
bd60e2
bd60e2
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-17
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
bd60e2
bd60e2
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-16
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
bd60e2
bd60e2
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-15
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
bd60e2
bd60e2
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-14
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
bd60e2
bd60e2
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-13
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bd60e2
bd60e2
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-12
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bd60e2
bd60e2
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-11
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
bd60e2
bd60e2
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-10
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bd60e2
bd60e2
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-9
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
bd60e2
bd60e2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-8
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bd60e2
bd60e2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-7
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bd60e2
bd60e2
* Tue Mar 01 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 1.6.1-6
bd60e2
- Mark installed documentation as %%doc (#1308255)
bd60e2
bd60e2
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-5
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bd60e2
bd60e2
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-4
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bd60e2
bd60e2
* Mon Dec  8 2014 Paul W. Frields <stickster@gmail.com> - 1.6.1-3
bd60e2
- Fix noisy git related spew (#1171864)
bd60e2
bd60e2
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-2
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
bd60e2
bd60e2
* Wed Aug 13 2014 Paul W. Frields <stickster@gmail.com> - 1.6.1-1
bd60e2
- Update to upstream 1.6.1 (#1129106)
bd60e2
bd60e2
* Mon Jun 16 2014 Paul W. Frields <stickster@gmail.com> - 1.6.0-1
bd60e2
- Update to upstream 1.6.0 (#1037400, #1107292)
bd60e2
bd60e2
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-3
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bd60e2
bd60e2
* Sat Jul 27 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.5.0-2
bd60e2
- Install docs to %%{_pkgdocdir} where available.
bd60e2
bd60e2
* Wed Jul 10 2013 Paul W. Frields <stickster@gmail.com> - 1.5.0-1
bd60e2
- Update to upstream 1.5.0 (#983025)
bd60e2
- Fix man page rendering (#981050)
bd60e2
- Use standard docdir
bd60e2
bd60e2
* Mon Mar 25 2013 Paul W. Frields <stickster@gmail.com> - 1.4.2-1
bd60e2
- Update to upstream 1.4.2 (#851880)
bd60e2
bd60e2
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-4
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bd60e2
bd60e2
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-3
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bd60e2
bd60e2
* Wed Feb 15 2012 Paul W. Frields <stickster@gmail.com> - 1.3.1-2
bd60e2
- Fix build with configure flag
bd60e2
bd60e2
* Wed Feb 15 2012 Paul W. Frields <stickster@gmail.com> - 1.3.1-1
bd60e2
- Update to upstream 1.3.1 (#782066)
bd60e2
bd60e2
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bd60e2
bd60e2
* Mon Oct  3 2011 Paul W. Frields <stickster@gmail.com> - 1.3.0-1
bd60e2
- Update to upstream 1.3.0
bd60e2
bd60e2
* Fri Aug 26 2011 Paul W. Frields <stickster@gmail.com> - 1.2.1-1
bd60e2
- Update to upstream 1.2.1
bd60e2
bd60e2
* Sun Apr 10 2011 Paul W. Frields <stickster@gmail.com> - 1.1.0-1
bd60e2
- Update to upstream 1.1.0
bd60e2
bd60e2
* Thu Apr 07 2011 Dan Horák <dan[at]danny.cz> - 1.0.6-2
bd60e2
- fix build on 64-bit big-endians
bd60e2
bd60e2
* Sat Mar 26 2011 Paul W. Frields <stickster@gmail.com> - 1.0.6-1
bd60e2
- Update to upstream 1.0.6
bd60e2
- Drop obsolete patch
bd60e2
bd60e2
* Thu Feb 17 2011 Paul W. Frields <stickster@gmail.com> - 1.0.5-1
bd60e2
- Update to upstream 1.0.5
bd60e2
- Update libxml2 requirement
bd60e2
- Drop unnecessary patch, naming issue fixed upstream
bd60e2
bd60e2
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-2
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bd60e2
bd60e2
* Wed Jan 19 2011 Paul W. Frields <stickster@gmail.com> - 1.0.4-1
bd60e2
- Update to new upstream 1.0.4
bd60e2
- Drop patches for fixed upstream issues
bd60e2
bd60e2
* Fri Dec 17 2010 Paul W. Frields <stickster@gmail.com> - 1.0.3-1
bd60e2
- Update to new upstream 1.0.3
bd60e2
- Add %%check section for validation testing
bd60e2
bd60e2
* Mon Nov  1 2010 Paul W. Frields <stickster@gmail.com> - 1.0.2-1
bd60e2
- Update to new upstream 1.0.2
bd60e2
bd60e2
* Sun Jan 10 2010 Paul W. Frields <stickster@gmail.com> - 1.0.1-9
bd60e2
- Correct source URL
bd60e2
bd60e2
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-8
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bd60e2
bd60e2
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-7
bd60e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
bd60e2
bd60e2
* Fri Mar 21 2008 Paul W. Frields <stickster@gmail.com> - 1.0.1-6
bd60e2
- Rebuild to use FORTIFY_SOURCE correctly
bd60e2
bd60e2
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.1-5
bd60e2
- Autorebuild for GCC 4.3
bd60e2
bd60e2
* Sat Sep  2 2006 Paul W. Frields <stickster@gmail.com> - 1.0.1-4
bd60e2
- Bump release for FC6 mass rebuild
bd60e2
bd60e2
* Fri Feb 17 2006 Paul W. Frields <stickster@gmail.com> - 1.0.1-3
bd60e2
- FESCo mandated rebuild
bd60e2
bd60e2
* Wed Nov 23 2005 Paul W. Frields <stickster@gmail.com> - 1.0.1-2
bd60e2
- Minor changes per review
bd60e2
bd60e2
* Tue Nov 22 2005 Paul W. Frields <stickster@gmail.com> - 1.0.1-1.2
bd60e2
- Improve patching to conquer inconsistent naming
bd60e2
bd60e2
* Tue Nov 22 2005 Paul W. Frields <stickster@gmail.com> - 1.0.1-1.1
bd60e2
- Initial RPM version
bd60e2
bd60e2