html-xml-utils/html-xml-utils.spec
Sebastian Wagner a37af587bf - update to version 7.7:
* dtd.hash: Don't include the arguments in the forward declaration
   of lookup_element(), because those arguments differ slightly
   depending on which version of gperf is used to generate dtd.c:
   "unsigned int" in gperf 3.0 vs "size_t" in gperf 3.1.
 * conficgure.ac: Check for libiconv with the AM_ICONV macro (from
   gettext) instead of AC_SEARCH_LIBS. (Advice from Christian
   Weisgerber, received via Anthony Bentley). That in turn requires
   adding config.rpath to the EXTRA_DIST in Makefile.am.
 * hxindex.c: Replaced fgets() by getline(), to allow lines of
   arbitrary length in the term database.

OBS-URL: https://build.opensuse.org/package/show/utilities/html-xml-utils?expand=0&rev=5
2018-05-27 08:47:46 +00:00

86 lines
3.2 KiB
RPMSpec

#
# spec file for package html-xml-utils
#
# Copyright (c) 2018 SUSE LINUX 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/
#
Name: html-xml-utils
Version: 7.7
Release: 0
Summary: A number of simple utilities for manipulating HTML and XML files
License: W3C
Group: Development/Languages/Other
Url: https://www.w3.org/Tools/HTML-XML-utils/
Source: https://www.w3.org/Tools/HTML-XML-utils/html-xml-utils-%{version}.tar.gz
BuildRequires: bison
BuildRequires: flex
BuildRequires: libcurl-devel
BuildRequires: libidn2-devel
%description
HTML-XML-utils provides a number of simple utilities for manipulating and
converting HTML and XML files in various ways. The suite consists of the
following tools:
asc2xml - convert from UTF-8 to &\#nnn; entities
xml2asc - convert from &\#nnn; entities to UTF-8
hxaddid - add IDs to selected elements
hxcite - replace bibliographic references by hyperlinks
hxcite-mkbib - expand references and create bibliography
hxclean - apply heuristics to correct an HTML file
hxcopy - copy an HTML file while preserving relative links
hxcount - count elements and attributes in HTML or XML files
hxextract - extract selected elements
hxincl - expand included HTML or XML files
hxindex - create an alphabetically sorted index
hxmkbib - create bibliography from a template
hxmultitoc - create a table of contents for a set of HTML files
hxname2id - move some ID= or NAME= from A elements to their parents
hxnormalize - pretty-print an HTML file
hxnsxml - convert output of hxxmlns back to normal XML
hxnum - number section headings in an HTML file
hxpipe - convert XML to a format easier to parse with Perl or AWK
hxprintlinks - number links & add table of URLs at end of an HTML file
hxprune - remove marked elements from an HTML file
hxref - generate cross-references
hxselect - extract elements that match a (CSS) selector
hxtoc - insert a table of contents in an HTML file
hxuncdata - replace CDATA sections by character entities
hxunent - replace HTML predefined character entities to UTF-8
hxunpipe - convert output of pipe back to XML format
hxunxmlns - replace "global names" by XML Namespace prefixes
hxwls - list links in an HTML file
hxxmlns - replace XML Namespace prefixes by "global names"
%prep
%setup -q
chmod -x ChangeLog README
%build
%configure
make %{?_smp_mflags}
%install
%make_install
rm %{buildroot}%{_datadir}/doc/%{name}/COPYING
%files
%doc ChangeLog README
%license COPYING
%{_bindir}/*
%{_mandir}/man1/*.1*
%changelog