--- libparserutils-0.2.5.orig/debian/changelog
+++ libparserutils-0.2.5/debian/changelog
@@ -0,0 +1,11 @@
+libparserutils (0.2.5-1+21.32) unstable; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Thu, 09 Jul 2026 03:51:39 +0000
+
+libparserutils (0.2.5) unstable; urgency=low
+
+  * Initial release.
+
+ -- NetSurf Developers <netsurf@netsurf-browser.org>  Wed, 15 Apr 2026 00:00:00 +0000
--- libparserutils-0.2.5.orig/debian/control
+++ libparserutils-0.2.5/debian/control
@@ -0,0 +1,25 @@
+Source: libparserutils
+Priority: extra
+Maintainer: NetSurf Developers <netsurf@netsurf-browser.org>
+Build-Depends: debhelper-compat (= 13), pkg-config
+Standards-Version: 4.6.0
+Section: libs
+Homepage: http://www.netsurf-browser.org/
+
+Package: libparserutils-dev
+Section: libdevel
+Architecture: any
+Depends: libparserutils0 (= ${binary:Version})
+Description: parser utility library
+ NetSurf's parser utility library.
+ .
+ This package contains the development files.
+
+Package: libparserutils0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: parser utility library
+ NetSurf's parser utility library.
+ .
+ This package contains the shared library.
--- libparserutils-0.2.5.orig/debian/copyright
+++ libparserutils-0.2.5/debian/copyright
@@ -0,0 +1,25 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libparserutils
+Upstream-Contact: NetSurf Developers <netsurf@netsurf-browser.org>
+Source: http://www.netsurf-browser.org/
+
+Files: *
+Copyright: 2007-2008 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.
--- libparserutils-0.2.5.orig/debian/libparserutils-dev.install
+++ libparserutils-0.2.5/debian/libparserutils-dev.install
@@ -0,0 +1,3 @@
+usr/include/parserutils/*
+usr/lib/*/libparserutils.so
+usr/lib/pkgconfig/libparserutils.pc
--- libparserutils-0.2.5.orig/debian/libparserutils0.install
+++ libparserutils-0.2.5/debian/libparserutils0.install
@@ -0,0 +1 @@
+usr/lib/*/libparserutils.so.0
--- libparserutils-0.2.5.orig/debian/rules
+++ libparserutils-0.2.5/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+SOURCES = \
+	src/charset/aliases.c \
+	src/charset/codec.c \
+	src/charset/encodings/utf8.c \
+	src/charset/encodings/utf16.c \
+	src/charset/codecs/codec_8859.c \
+	src/charset/codecs/codec_ascii.c \
+	src/charset/codecs/codec_ext8.c \
+	src/charset/codecs/codec_utf8.c \
+	src/charset/codecs/codec_utf16.c \
+	src/input/filter.c \
+	src/input/inputstream.c \
+	src/utils/buffer.c \
+	src/utils/errors.c \
+	src/utils/stack.c \
+	src/utils/vector.c
+
+override_dh_auto_clean:
+	true
+
+override_dh_auto_configure:
+	mkdir -p build
+
+override_dh_auto_build:
+	perl build/make-aliases.pl && cd build && \
+	         gcc -shared -fPIC -o libparserutils.so.0 \
+		-I../include -I../src \
+		-D_BSD_SOURCE -D_DEFAULT_SOURCE \
+		-Wall -W -Wundef -Wpointer-arith -Wcast-align \
+		-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
+		-Wmissing-declarations -Wnested-externs \
+		-Werror -std=c99 \
+		$(addprefix ../,$(SOURCES))
+	ln -sf libparserutils.so.0 build/libparserutils.so
+
+override_dh_auto_install:
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
+	install -m 755 build/libparserutils.so.0 $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
+	ln -sf libparserutils.so.0 $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libparserutils.so
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/include/parserutils
+	install -m 644 include/parserutils/*.h $(CURDIR)/debian/tmp/usr/include/parserutils/
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/include/parserutils/charset/
+	install -m 644 include/parserutils/charset/*.h $(CURDIR)/debian/tmp/usr/include/parserutils/charset/
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/include/parserutils/input/
+	install -m 644 include/parserutils/input/*.h $(CURDIR)/debian/tmp/usr/include/parserutils/input/
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/include/parserutils/utils/
+	install -m 644 include/parserutils/utils/*.h $(CURDIR)/debian/tmp/usr/include/parserutils/utils/
+	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.2.5|g' \
+	    libparserutils.pc.in > $(CURDIR)/debian/tmp/usr/lib/pkgconfig/libparserutils.pc
+	chmod 644 $(CURDIR)/debian/tmp/usr/lib/pkgconfig/libparserutils.pc
+
+override_dh_auto_test:
+	true
