--- libcss-0.9.2.orig/debian/changelog
+++ libcss-0.9.2/debian/changelog
@@ -0,0 +1,11 @@
+libcss (0.9.2-1+25.1) unstable; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Mon, 27 Apr 2026 19:08:12 +0000
+
+libcss (0.9.2) unstable; urgency=low
+
+  * Initial release.
+
+ -- NetSurf Developers <netsurf@netsurf-browser.org>  Wed, 15 Apr 2026 00:00:00 +0000
--- libcss-0.9.2.orig/debian/control
+++ libcss-0.9.2/debian/control
@@ -0,0 +1,25 @@
+Source: libcss
+Priority: extra
+Maintainer: NetSurf Developers <netsurf@netsurf-browser.org>
+Build-Depends: debhelper-compat (= 13), pkg-config, libparserutils-dev, libwapcaplet-dev
+Standards-Version: 4.6.0
+Section: libs
+Homepage: http://www.netsurf-browser.org/
+
+Package: libcss-dev
+Section: libdevel
+Architecture: any
+Depends: libcss0 (= ${binary:Version}), libparserutils-dev, libwapcaplet-dev
+Description: CSS parsing and selection library
+ NetSurf's CSS parsing and selection library.
+ .
+ This package contains the development files.
+
+Package: libcss0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libparserutils0, libwapcaplet0
+Description: CSS parsing and selection library
+ NetSurf's CSS parsing and selection library.
+ .
+ This package contains the shared library.
--- libcss-0.9.2.orig/debian/copyright
+++ libcss-0.9.2/debian/copyright
@@ -0,0 +1,25 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libcss
+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.
--- libcss-0.9.2.orig/debian/libcss-dev.install
+++ libcss-0.9.2/debian/libcss-dev.install
@@ -0,0 +1,3 @@
+usr/include/libcss/*
+usr/lib/*/libcss.so
+usr/lib/pkgconfig/libcss.pc
--- libcss-0.9.2.orig/debian/libcss0.install
+++ libcss-0.9.2/debian/libcss0.install
@@ -0,0 +1 @@
+usr/lib/*/libcss.so.0
--- libcss-0.9.2.orig/debian/rules
+++ libcss-0.9.2/debian/rules
@@ -0,0 +1,49 @@
+#!/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
+
+override_dh_auto_clean:
+	true
+
+override_dh_auto_configure:
+	mkdir -p build
+
+GENERATOR=src/parse/properties/css_property_parser_gen.c
+
+CSOURCES=$(wildcard src/*.c)
+CSOURCES+=$(wildcard src/*/*.c)
+CSOURCES+=$(wildcard src/*/*/*.c)
+CSOURECS=$(filter-out $(GENERATOR),$(CSOURCES))
+
+override_dh_auto_build:
+	cd build && gcc -shared -fPIC -Wl,-soname -Wl,libcss.so.0 -o libcss.so.0 \
+		-I../include -I../src $(PARSERUTILS_LIBS) $(WAPCAPLET_LIBS) \
+		-D_BSD_SOURCE -D_DEFAULT_SOURCE \
+		'-D_ALIGNED=__attribute__((aligned))' \
+		-Wall -W -Wundef -Wpointer-arith -Wcast-align \
+		-std=c99 \
+		$(addprefix ../,$(CSOURCES))
+	ln -sf libcss.so.0 build/libcss.so
+
+override_dh_auto_install:
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
+	install -m 755 build/libcss.so.0 $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
+	ln -sf libcss.so.0 $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libcss.so
+	install -m 755 -d $(CURDIR)/debian/tmp/usr/include/libcss
+	install -m 644 include/libcss/*.h $(CURDIR)/debian/tmp/usr/include/libcss/
+	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.9.2|g' \
+	    libcss.pc.in > $(CURDIR)/debian/tmp/usr/lib/pkgconfig/libcss.pc
+	chmod 644 $(CURDIR)/debian/tmp/usr/lib/pkgconfig/libcss.pc
+
+override_dh_auto_test:
+	true
