--- libhubbub-0.3.8.orig/debian/changelog
+++ libhubbub-0.3.8/debian/changelog
@@ -0,0 +1,11 @@
+libhubbub (0.3.8-1+18.41) unstable; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Sun, 09 Aug 2026 16:01:15 +0000
+
+libhubbub (0.3.8) unstable; urgency=low
+
+  * Initial release.
+
+ -- NetSurf Developers <netsurf@netsurf-browser.org>  Wed, 15 Apr 2026 00:00:00 +0000
--- libhubbub-0.3.8.orig/debian/control
+++ libhubbub-0.3.8/debian/control
@@ -0,0 +1,25 @@
+Source: libhubbub
+Priority: extra
+Maintainer: NetSurf Developers <netsurf@netsurf-browser.org>
+Build-Depends: debhelper-compat (= 13), pkg-config, gperf, libparserutils-dev
+Standards-Version: 4.6.0
+Section: libs
+Homepage: http://www.netsurf-browser.org/
+
+Package: libhubbub-dev
+Section: libdevel
+Architecture: any
+Depends: libhubbub0 (= ${binary:Version}), libparserutils-dev
+Description: HTML5 parsing library
+ NetSurf's HTML5 parsing library.
+ .
+ This package contains the development files.
+
+Package: libhubbub0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libparserutils0
+Description: HTML5 parsing library
+ NetSurf's HTML5 parsing library.
+ .
+ This package contains the shared library.
--- libhubbub-0.3.8.orig/debian/copyright
+++ libhubbub-0.3.8/debian/copyright
@@ -0,0 +1,25 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libhubbub
+Upstream-Contact: NetSurf Developers <netsurf@netsurf-browser.org>
+Source: http://www.netsurf-browser.org/
+
+Files: *
+Copyright: 2007 J-M Bell
+License: MIT
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
--- libhubbub-0.3.8.orig/debian/libhubbub-dev.install
+++ libhubbub-0.3.8/debian/libhubbub-dev.install
@@ -0,0 +1,3 @@
+usr/include/hubbub/*
+usr/lib/*/libhubbub.so
+usr/lib/pkgconfig/libhubbub.pc
--- libhubbub-0.3.8.orig/debian/libhubbub0.install
+++ libhubbub-0.3.8/debian/libhubbub0.install
@@ -0,0 +1 @@
+usr/lib/*/libhubbub.so.0
--- libhubbub-0.3.8.orig/debian/rules
+++ libhubbub-0.3.8/debian/rules
@@ -0,0 +1,83 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+PARSERUTILS_LIBS := -L/usr/lib/$(DEB_HOST_MULTIARCH) -lparserutils
+
+override_dh_auto_clean:
+	true
+
+override_dh_auto_configure:
+	mkdir -p build
+
+SOURCES = \
+	src/charset/detect.c \
+	src/parser.c \
+	src/tokeniser/tokeniser.c \
+	src/tokeniser/entities.c \
+	src/treebuilder/treebuilder.c \
+	src/treebuilder/after_after_body.c \
+	src/treebuilder/after_after_frameset.c \
+	src/treebuilder/after_body.c \
+	src/treebuilder/after_frameset.c \
+	src/treebuilder/after_head.c \
+	src/treebuilder/before_head.c \
+	src/treebuilder/before_html.c \
+	src/treebuilder/element-type.c \
+	src/treebuilder/generic_rcdata.c \
+	src/treebuilder/in_body.c \
+	src/treebuilder/in_caption.c \
+	src/treebuilder/in_cell.c \
+	src/treebuilder/in_column_group.c \
+	src/treebuilder/in_foreign_content.c \
+	src/treebuilder/in_frameset.c \
+	src/treebuilder/in_head.c \
+	src/treebuilder/in_head_noscript.c \
+	src/treebuilder/in_row.c \
+	src/treebuilder/in_select.c \
+	src/treebuilder/in_select_in_table.c \
+	src/treebuilder/in_table.c \
+	src/treebuilder/in_table_body.c \
+	src/treebuilder/initial.c \
+	src/utils/errors.c \
+	src/utils/string.c
+
+ELEM_GEN_SRC=src/treebuilder/element-type.gperf
+ELEM_GEN_FILE=src/treebuilder/autogenerated-element-type.c
+
+gen_elem_type:
+	gperf --output-file=$(ELEM_GEN_FILE).tmp $(ELEM_GEN_SRC)
+	sed -e 's/^\(const struct element_type_map\)/static \1/' $(ELEM_GEN_FILE).tmp > $(ELEM_GEN_FILE)
+	rm $(ELEM_GEN_FILE).tmp
+
+override_dh_auto_build: gen_elem_type
+	perl build/make-entities.pl && cd build && \
+		gcc -shared -fPIC -o libhubbub.so.0 \
+		-I../include -I../src $(PARSERUTILS_LIBS) \
+		-D_BSD_SOURCE -D_DEFAULT_SOURCE \
+		-Wall -W -Wundef -Wpointer-arith -Wcast-align \
+		-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
+		-Wmissing-declarations -Wnested-externs -pedantic \
+		-Werror -std=c99 \
+		$(addprefix ../,$(SOURCES))
+	ln -sf libhubbub.so.0 build/libhubbub.so
+
+override_dh_auto_install:
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
+	install -m 755 build/libhubbub.so.0 $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
+	ln -sf libhubbub.so.0 $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libhubbub.so
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/include/hubbub
+	install -m 644 include/hubbub/*.h $(CURDIR)/debian/tmp/usr/include/hubbub/
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/lib/pkgconfig
+	sed -e 's|PREFIX|/usr|g' \
+	    -e 's|LIBDIR|/usr/lib/$(DEB_HOST_MULTIARCH)|g' \
+	    -e 's|INCLUDEDIR|/usr/include|g' \
+	    -e 's|VERSION|0.3.8|g' \
+	    libhubbub.pc.in > $(CURDIR)/debian/tmp/usr/lib/pkgconfig/libhubbub.pc
+	chmod 644 $(CURDIR)/debian/tmp/usr/lib/pkgconfig/libhubbub.pc
+
+override_dh_auto_test:
+	true
