File htmlcxx.spec of Package htmlcxx
#
# spec file for package htmlcxx
#
# Copyright (c) 2014 Klaus Singvogel, Kaierberg, 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: htmlcxx
Version: 0.84
Release: 0
License: LGPL-2.0
Summary: Recursive Hasher
Url: http://htmlcxx.sourceforge.net/
Group: Productivity/File utilities
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch1: %{name}-0.84-cstddef.patch
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is a simple non-validating css1 and html parser for C++. Although there are several other html parsers available, htmlcxx has some characteristics that make it unique:
- STL like navigation of DOM tree, using excelent's tree.hh library from Kasper Peeters
- It is possible to reproduce exactly, character by character, the original document from the parse tree
- Bundled css parser
- Optional parsing of attributes
- C++ code that looks like C++ (not so true anymore)
- Offsets of tags/elements in the original document are stored in the nodes of the DOM tree
%package devel
Summary: Headers and Static Library for htmlcxx
Group: Development/Libraries/C and C++
BuildRequires: pkg-config
Requires: %{name} = %{version}
%description devel
The htmlcxx-devel package contains libraries and header files for
developing applications that use htmlcxx.
%prep
%setup
%patch1 -p1
./configure \
--prefix=%{_prefix} \
--bindir=%{_bindir} \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--without-static
%build
make
%install
%makeinstall \
PREFIX=%{_prefix} \
LIBDIR=%{_libdir} \
OPTFLAGS="%{optflags}" \
OPTLDFLAGS=""
%check
make check
%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog LGPL_V2 README ASF-2.0
%{_bindir}/*
%{_datadir}/*
%{_libdir}/*.la
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog