--- yosys-0.38.orig/debian/changelog
+++ yosys-0.38/debian/changelog
@@ -0,0 +1,12 @@
+yosys (0.38-c4m.0+1.4) stable; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Sun, 17 May 2026 04:52:09 +0000
+
+yosys (0.38-c4m.0) stable; urgency=low
+
+  * Compiled from git sources with some patches for OBS build; see repository
+    https://gitlab.com/Chips4Makers/yosys; tag yosys-0.38-obs for change history
+
+ -- Chips4Makers <info@chips4makers.io>  Thu, 22 Feb 2024 16:27:11 +0100
--- yosys-0.38.orig/debian/compat
+++ yosys-0.38/debian/compat
@@ -0,0 +1 @@
+10
--- yosys-0.38.orig/debian/control
+++ yosys-0.38/debian/control
@@ -0,0 +1,22 @@
+Source: yosys
+Section: electronics
+Priority: extra
+Maintainer: Chips4Makers <info@chips4makers.io>
+Build-Depends: debhelper (>= 9), python3, pkg-config, flex, bison, libffi-dev, tcl-dev, libreadline-dev
+
+Package: yosys
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Yosys Open SYnthesis Suite
+ This is a framework for RTL synthesis tools. It currently has extensive
+ Verilog-2005 support and provides a basic set of synthesis algorithms for
+ various application domains.
+ .
+ Yosys can be adapted to perform any synthesis job by combining the existing
+ passes (algorithms) using synthesis scripts and adding additional passes as
+ needed by extending the yosys C++ code base.
+ .
+ Yosys is free software licensed under the ISC license (a GPL compatible license
+ that is similar in terms to the MIT license or the 2-clause BSD license).
+ .
+ http://www.clifford.at/yosys/
--- yosys-0.38.orig/debian/rules
+++ yosys-0.38/debian/rules
@@ -0,0 +1,95 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+CFLAGS = -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+CFLAGS += -O0
+else
+CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+	echo "CONFIG := gcc" > Makefile.conf
+	echo "ENABLE_LIBYOSYS := 1" >> Makefile.conf
+	echo "PREFIX := /usr" >> Makefile.conf
+
+	touch configure-stamp
+
+
+build: build-stamp
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+	make
+	# --- end custom part for compiling
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+
+	# Add here commands to clean up after the build process.
+	make clean || true
+	# --- end custom part for cleaning up
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package
+	# The DESTDIR Has To Be Exactly  /usr/src/packages/BUILD/debian/<nameOfPackage>
+	make install DESTDIR=/usr/src/packages/BUILD/debian/yosys
+	# --- end custom part for installing
+
+# Build architecture-independent files here.
+binary-indep: build install
+	# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+#	dh_installdebconf
+#	dh_installdocs
+#	dh_installexamples
+#	dh_installmenu
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+#	dh_installman
+#	dh_installinfo
+#	dh_undocumented
+	dh_installchangelogs
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_python
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
