File gumbo-parser.spec of Package gumbo-parser

#
# spec file for package gumbo-parser
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           gumbo-parser
Version:        0.12.1
Release:        0
Summary:        An HTML5 parsing library in pure C99
License:        Apache-2.0
URL:            https://codeberg.org/gumbo-parser/gumbo-parser
Source:         https://codeberg.org/gumbo-parser/gumbo-parser/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  gcc 
BuildRequires:  gcc-c++ 
BuildRequires:  libtool
BuildRequires:  make
BuildRequires:  pkgconfig

%description
An HTML5 parsing library in pure C99

%package        devel
Summary:        An HTML5 parsing library in pure C99 (development files)
Requires:       %{name}

%description    devel 
An HTML5 parsing library in pure C99 (development files)

%package        static
Summary: An HTML5 parsing library in pure C99 (static library)
Requires:       %{name}

%description    static
An HTML5 parsing library in pure C99 (static library)

%prep
%autosetup -n %{name}

%build
./autogen.sh
export CFLAGS="$CFLAGS -ffat-lto-objects"
%configure
%make_build

%install
%make_install

%post   -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig

%check

%files
%license doc/COPYING
%doc README.md
%{_libdir}/libgumbo.so.*

%files          devel
%{_includedir}/gumbo.h
%{_includedir}/tag_enum.h
%{_libdir}/libgumbo.la
%{_libdir}/libgumbo.so
%{_libdir}/pkgconfig/gumbo.pc

%files          static
%{_libdir}/libgumbo.a

%changelog

openSUSE Build Service is sponsored by