From 2bd75a3388d6fbe6190dfbb4a7239f152e76462d Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 25 Jan 2025 21:45:44 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.13.0-1mamba;Sat Jan 25 2025] --- README.md | 2 ++ gumbo-parser.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 gumbo-parser.spec diff --git a/README.md b/README.md index 0fc3b27..d9a0c0f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # gumbo-parser +Gumbo is an implementation of the HTML5 parsing algorithm implemented as a pure C99 library with no outside dependencies. It's designed to serve as a building block for other tools and libraries such as linters, validators, templating languages, and refactoring and analysis tools. + diff --git a/gumbo-parser.spec b/gumbo-parser.spec new file mode 100644 index 0000000..203f1a1 --- /dev/null +++ b/gumbo-parser.spec @@ -0,0 +1,67 @@ +Name: gumbo-parser +Version: 0.13.0 +Release: 1mamba +Summary: An implementation of the HTML5 parsing algorithm implemented as a pure C99 library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://codeberg.org/gumbo-parser/gumbo-parser +Source: https://codeberg.org/gumbo-parser/gumbo-parser.git/%{version}/gumbo-parser-%{version}.tar.bz2 +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +Gumbo is an implementation of the HTML5 parsing algorithm implemented as a pure C99 library with no outside dependencies. It's designed to serve as a building block for other tools and libraries such as linters, validators, templating languages, and refactoring and analysis tools. + +%package -n lib%{name} +Summary: An implementation of the HTML5 parsing algorithm implemented as a pure C99 library +Group: System/Libraries + +%description -n lib%{name} +Gumbo is an implementation of the HTML5 parsing algorithm implemented as a pure C99 library with no outside dependencies. It's designed to serve as a building block for other tools and libraries such as linters, validators, templating languages, and refactoring and analysis tools. +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%prep +%setup -q +./autogen.sh + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libgumbo.so.* +%doc doc/COPYING doc/THANKS + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/gumbo.h +%{_includedir}/tag_enum.h +%{_libdir}/libgumbo.a +%{_libdir}/libgumbo.so +%{_libdir}/pkgconfig/gumbo.pc +%doc README.md + +%changelog +* Sat Jan 25 2025 Silvan Calarco 0.13.0-1mamba +- package created using the webbuild interface