--- libdom-0.4.2.orig/debian/changelog
+++ libdom-0.4.2/debian/changelog
@@ -0,0 +1,11 @@
+libdom (0.4.2-1+21.30) unstable; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Thu, 02 Jul 2026 16:50:33 +0000
+
+libdom (0.4.2) unstable; urgency=low
+
+  * Initial release.
+
+ -- NetSurf Developers <netsurf@netsurf-browser.org>  Wed, 15 Apr 2026 00:00:00 +0000
--- libdom-0.4.2.orig/debian/control
+++ libdom-0.4.2/debian/control
@@ -0,0 +1,25 @@
+Source: libdom
+Priority: extra
+Maintainer: NetSurf Developers <netsurf@netsurf-browser.org>
+Build-Depends: debhelper-compat (= 13), pkg-config, libexpat-dev, libparserutils-dev, libwapcaplet-dev, libhubbub-dev
+Standards-Version: 4.6.0
+Section: libs
+Homepage: http://www.netsurf-browser.org/
+
+Package: libdom-dev
+Section: libdevel
+Architecture: any
+Depends: libdom0 (= ${binary:Version}), libexpat-dev, libparserutils-dev, libwapcaplet-dev, libhubbub-dev
+Description: DOM parsing library
+ NetSurf's DOM parsing library.
+ .
+ This package contains the development files.
+
+Package: libdom0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libparserutils0, libwapcaplet0, libhubbub0, libexpat1
+Description: DOM parsing library
+ NetSurf's DOM parsing library.
+ .
+ This package contains the shared library.
--- libdom-0.4.2.orig/debian/copyright
+++ libdom-0.4.2/debian/copyright
@@ -0,0 +1,25 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libdom
+Upstream-Contact: NetSurf Developers <netsurf@netsurf-browser.org>
+Source: http://www.netsurf-browser.org/
+
+Files: *
+Copyright: 2009-2020 John-Mark Bell <jmb@netsurf-browser.org>
+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.
--- libdom-0.4.2.orig/debian/libdom-dev.install
+++ libdom-0.4.2/debian/libdom-dev.install
@@ -0,0 +1,3 @@
+usr/include/dom/*
+usr/lib/*/libdom.so
+usr/lib/pkgconfig/libdom.pc
--- libdom-0.4.2.orig/debian/libdom0.install
+++ libdom-0.4.2/debian/libdom0.install
@@ -0,0 +1 @@
+usr/lib/*/libdom.so.0
--- libdom-0.4.2.orig/debian/rules
+++ libdom-0.4.2/debian/rules
@@ -0,0 +1,58 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+PARSERUTILS_LIBS := -L/usr/lib/$(DEB_HOST_MULTIARCH) -lparserutils
+WAPCAPLET_LIBS := -L/usr/lib/$(DEB_HOST_MULTIARCH) -lwapcaplet
+HUBBUB_LIBS := -L/usr/lib/$(DEB_HOST_MULTIARCH) -lhubbub
+
+override_dh_auto_clean:
+	true
+
+override_dh_auto_configure:
+	mkdir -p build
+
+CSOURCES=$(wildcard src/*/*.c)
+CSOURCES+=$(wildcard bindings/hubbub/*.c)
+
+override_dh_auto_build:
+	cd build && gcc -shared -fPIC -Wl,-soname -Wl,libdom.so.0 -o libdom.so.0 \
+		-I../include -I../src/ \
+		-lexpat $(PARSERUTILS_LIBS) $(WAPCAPLET_LIBS) $(HUBBUB_LIBS) \
+		-D_BSD_SOURCE -D_DEFAULT_SOURCE \
+		-Wall -W -Wundef -Wpointer-arith -Wcast-align \
+		-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
+                -std=c99 \
+		$(addprefix ../,$(CSOURCES))
+	ln -sf libdom.so.0 build/libdom.so
+
+override_dh_auto_install:
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
+	install -m 755 build/libdom.so.0 $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
+	ln -sf libdom.so.0 $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libdom.so
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/include/dom
+	install -m 644 include/dom/*.h $(CURDIR)/debian/tmp/usr/include/dom/
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/include/dom/core
+	install -m 644 include/dom/core/*.h $(CURDIR)/debian/tmp/usr/include/dom/core/
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/include/dom/events
+	install -m 644 include/dom/events/*.h $(CURDIR)/debian/tmp/usr/include/dom/events/
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/include/dom/html
+	install -m 644 include/dom/html/*.h $(CURDIR)/debian/tmp/usr/include/dom/html/
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/include/dom/bindings/hubbub/
+	install -m 644 bindings/hubbub/*.h $(CURDIR)/debian/tmp/usr/include/dom/bindings/hubbub/
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/include/dom/bindings/xml/
+	install -m 644 bindings/xml/*.h $(CURDIR)/debian/tmp/usr/include/dom/bindings/xml/
+	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.4.2|g' \
+	    -e 's|LIBRARIES|-lexpat|g' \
+	    libdom.pc.in > $(CURDIR)/debian/tmp/usr/lib/pkgconfig/libdom.pc
+	chmod 644 $(CURDIR)/debian/tmp/usr/lib/pkgconfig/libdom.pc
+
+override_dh_auto_test:
+	true
