File gumbo-parser.spec of Package gumbo-parser
Name: gumbo-parser
Version: 0
Release: 0
Summary: Google's HTML5 parser library for C99
License: Apache-2.0
URL: https://codeberg.org/grisha/gumbo-parser
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkg-config
%description
Gumbo is an implementation of the HTML5 parsing algorithm implemented
as a C99 library. It is fully conformant with the HTML5
specification, robust and resilient to bad input, supports source
locations and pointers back to the original text.
%package -n libgumbo2
Summary: Google's HTML5 parser library
Requires: %name = %version-%release
%description -n libgumbo2
Gumbo is an implementation of the HTML5 parsing algorithm implemented
as a C99 library. It is fully conformant with the HTML5
specification, robust and resilient to bad input, supports source
locations and pointers back to the original text.
%package -n libgumbo-devel
Summary: Development files for Google's C99 HTML5 parser
Requires: libgumbo2 = %version-%release
%description -n libgumbo-devel
Gumbo is an implementation of the HTML5 parsing algorithm implemented
as a C99 library. It is fully conformant with the HTML5
specification, robust and resilient to bad input, supports source
locations and pointers back to the original text.
This subpackage contains libraries and header files for developing
applications that want to make use of gumbo-parser.
%prep
rm -rf %_builddir/%name-%version
mv %_sourcedir/%name-%version %_builddir/%name-%version
%setup -c -T -D
%build
%define _configure ../configure
mkdir -p m4 obj
autoreconf -fi
pushd obj
%configure --includedir="%_includedir/%name" --disable-static
%make_build
popd
%install
pushd obj
%make_install docdir="%_defaultdocdir/%name"
popd
find "%buildroot/%_libdir" -type f -name "*.la" -delete
%post -n libgumbo2 -p /sbin/ldconfig
%postun -n libgumbo2 -p /sbin/ldconfig
%files
%license doc/COPYING
%files -n libgumbo2
%_libdir/libgumbo.so.*
%files -n libgumbo-devel
%_includedir/%name/
%_libdir/libgumbo.so
%_libdir/pkgconfig/gumbo.pc
%changelog