Name:           html-xml-utils
Version:        7.8
Release:        1%{?dist}
Summary:        A number of simple utilities for manipulating HTML and XML files

License:        W3C
URL:            http://www.w3.org/Tools/HTML-XML-utils/
Source0:        http://www.w3.org/Tools/HTML-XML-utils/html-xml-utils-%{version}.tar.gz

BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  libidn-devel
BuildRequires:  libidn2-devel
BuildRequires:  libcurl-devel

%description
A number of simple utilities for manipulating HTML and XML files. See Manpages
for each specific command.

%prep
%autosetup
# remove file executable permission bits
chmod 0644 *.{c,e,l,hash,1} ChangeLog README Makefile.am configure.ac

%build
%configure
%make_build

%install
%make_install
# move license from %%{_docdir} to %%{_defaultlicensedir}
mkdir -p %{buildroot}%{_defaultlicensedir}/%{name}
mv %{buildroot}%{_docdir}/%{name}/COPYING %{buildroot}%{_defaultlicensedir}/%{name}

%check
make %{?_smp_mflags} check

%files
%dir %{_defaultlicensedir}/%{name}
%dir %{_docdir}/%{name}
%license %{_defaultlicensedir}/%{name}/COPYING
%doc AUTHORS
%doc README
%{_bindir}/*
%{_mandir}/man1/*.1*

%changelog
* Fri Apr 24 2020 Matthew Krupcale <mkrupcale@matthewkrupcale.com> - 7.8-1
- Update to v7.8

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 6.3-3
- Perl 5.18 rebuild

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Thu Jan 10 2013 Miloš Jakubíček <xjakub@fi.muni.cz> - 6.3-1
- Update to 6.3

* Thu Oct 04 2012 Miloš Jakubíček <xjakub@fi.muni.cz> - 6.2-1
- Update to 6.2

* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Tue Jul 10 2012 Miloš Jakubíček <xjakub@fi.muni.cz> - 6.1-1
- Update to 6.1

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Sat Aug 20 2011 Miloš Jakubíček <xjakub@fi.muni.cz> - 6.0-1
- Update to 6.0

* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Sat Jan 22 2011 Milos Jakubicek <xjakub@fi.muni.cz> - 5.9-1
- Update to 5.9

* Wed Jan 19 2011 Milos Jakubicek <xjakub@fi.muni.cz> - 5.8-1
- Update to 5.8

* Wed Apr 28 2010 Milos Jakubicek <xjakub@fi.muni.cz> - 5.7-1
- Update to 5.7

* Tue Apr 27 2010 Milos Jakubicek <xjakub@fi.muni.cz> - 5.6-1
- Update to 5.6
- Dropped html-xml-utils-5.5-hxpipe-man.patch (merged upstream)

* Sun Oct 25 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 5.5-2
- Added html-xml-utils-5.5-hxpipe-man.patch, resolves BZ#527655

* Fri Aug 22 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 5.5-1
- Update to 5.5 (bugfix for self-URL references)

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Sun Jul 19 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 5.4-1
- Update to 5.4 (bug in removal of /./ fixed. Now leaves one / instead of none).

* Sat May 16 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 5.3-1
- Update to 5.3: many bugfixes, most binaries have now a "hx" prefix
- Removed Conflicts: surfraw, normalize
- Fixed license tag: W3C

* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Fri Nov 21 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 3.7-7
- Add explicit "Conflicts: surfraw" (#208781).
  Add explicit "Conflicts: normalize" (#208781).
  Both are fixed in upstream releases >= 5.0 (!)

* Thu Jul 31 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.7-6
- fix license tag

* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.7-5
- Autorebuild for GCC 4.3

* Mon Oct 09 2006 Gavin Henry <ghenry[AT]suretecsystems.com> - 3.7-4
- FC6 Rebuild

* Mon Sep 26 2005 Gavin Henry <ghenry[AT]suretecsystems.com> - 3.7-3
- Added README again, removed NEWS by mistake.

* Mon Sep 26 2005 Gavin Henry <ghenry[AT]suretecsystems.com> - 3.7-2
- Removed the emtpy README and changed name back to 
  html-xml-utils

* Wed Sep 21 2005 Gavin Henry <ghenry[AT]suretecsystems.com> - 3.7-1
- Initial Build