--- smlnj-2026.2-llvm-2026.2.orig/debian/changelog
+++ smlnj-2026.2-llvm-2026.2/debian/changelog
@@ -0,0 +1,14 @@
+smlnj-2026.2-llvm (2026.2-1+2.1) UNRELEASED; urgency=medium
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Sun, 30 Aug 2026 21:32:47 +0000
+
+smlnj-2026.2-llvm (2026.2-1) UNRELEASED; urgency=medium
+
+  * New upstream release.
+  * Install under /usr/lib/smlnj-2026.2-llvm instead of /usr.
+  * Version the binary package name so that several SML/NJ releases can
+    coexist in one OBS project.
+
+ -- Skye Soss <skye@soss.website>  Sun, 30 Aug 2026 12:00:00 -0500
--- smlnj-2026.2-llvm-2026.2.orig/debian/control
+++ smlnj-2026.2-llvm-2026.2/debian/control
@@ -0,0 +1,25 @@
+Source: smlnj-2026.2-llvm
+Section: devel
+Priority: optional
+Maintainer: Skye Soss <skye@soss.website>
+Build-Depends: debhelper-compat (= 13),
+               cmake (>= 3.23),
+               ninja-build,
+               python3
+Standards-Version: 4.7.2
+Homepage: https://smlnj.org/
+Vcs-Git: https://github.com/smlnj/smlnj-llvm-21.1.git
+Vcs-Browser: https://github.com/smlnj/smlnj-llvm-21.1
+Rules-Requires-Root: no
+
+Package: smlnj-2026.2-llvm-dev
+Architecture: amd64 arm64
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: LLVM 21.1 with support for JWA Calling Convention (SML/NJ 2026.2)
+ This package contains a version of LLVM with support for the JWA calling convention.
+ It is written to be used with Standard ML of New Jersey (SML/NJ) 2026.2
+ and is based on LLVM version 21.1.7.
+ .
+ The package name and the installation prefix (/usr/lib/smlnj-2026.2-llvm)
+ both carry the SML/NJ release, so this package can be co-installed with the
+ system LLVM and with the LLVM of other SML/NJ releases.
--- smlnj-2026.2-llvm-2026.2.orig/debian/copyright
+++ smlnj-2026.2-llvm-2026.2/debian/copyright
@@ -0,0 +1,78 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: smlnj-llvm-21.1
+Upstream-Contact: John Reppy <jhr@cs.uchicago.edu>
+Source: https://github.com/smlnj/smlnj-llvm-21.1
+
+Files: *
+Copyright: 2003-2017 University of Illinois at Urbana-Champaign.
+License: APACHE-2-LLVM-EXCEPTIONS
+ On Debian systems the full text of the Apache Software License 2.0 can be
+ found in the `/usr/share/common-licenses/Apache-2.0' file.
+ .
+ ---- LLVM Exceptions to the Apache 2.0 License ----
+ .
+ As an exception, if, as a result of your compiling your source code, portions
+ of this Software are embedded into an Object form of such source code, you
+ may redistribute such embedded portions in such Object form without complying
+ with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
+ .
+ In addition, if you combine or link compiled forms of this Software with
+ software that is licensed under the GPLv2 ("Combined Software") and if a
+ court of competent jurisdiction determines that the patent provision (Section
+ 3), the indemnity provision (Section 9) or other Section of the License
+ conflicts with the conditions of the GPLv2, you may retroactively and
+ prospectively choose to deem waived or otherwise exclude such Section(s) of
+ the License, but only in their entirety and only with respect to the Combined
+ Software.
+
+Files: smlnj/*
+Copyright: 2025 Standard ML of New Jersey
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: 2026 Skye Soss <skye@soss.website>
+License: BSD-3-clause
+
+Files: llvm/lib/Support/reg*
+Copyright: 1992, 1993, 1994 Henry Spencer
+           1992, 1993, 1994 The Regents of the University of California
+License: BSD-3-clause
+
+Files: llvm/lib/Support/MD5.cpp llvm/include/llvm/Support/MD5.h
+Copyright: 2001 Alexander Peslyak <solar at openwall.com>
+License: solar-public-domain
+ This software was written by Alexander Peslyak in 2001.  No copyright is
+ claimed, and the software is hereby placed in the public domain.
+ In case this attempt to disclaim copyright and place the software in the
+ public domain is deemed null and void, then the software is
+ Copyright (c) 2001 Alexander Peslyak and it is hereby released to the
+ general public under the following terms:
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted.
+ .
+ * There's ABSOLUTELY NO WARRANTY, express or implied.
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+  1. Redistributions of source code must retain the above copyright notice,
+     this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright notice,
+     this list of conditions and the following disclaimer in the documentation
+     and/or other materials provided with the distribution.
+  3. Neither the name of the copyright holder nor the names of its contributors
+     may be used to endorse or promote products derived from this software
+     without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--- smlnj-2026.2-llvm-2026.2.orig/debian/rules
+++ smlnj-2026.2-llvm-2026.2/debian/rules
@@ -0,0 +1,42 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/architecture.mk
+
+# Private, release-versioned prefix: this LLVM must not collide with the
+# distribution's own LLVM packages (llvm-config, /usr/include/llvm,
+# libLLVM*.a, ...) nor with the LLVM of another SML/NJ release.
+LLVM_PREFIX := /usr/lib/smlnj-2026.2-llvm
+DEB_PKG := smlnj-2026.2-llvm-dev
+
+ifeq ($(DEB_TARGET_ARCH),amd64)
+LLVM_TARGETS := X86
+else ifeq ($(DEB_TARGET_ARCH),arm64)
+LLVM_TARGETS := AArch64
+endif
+
+%:
+	dh $@ --buildsystem=cmake+ninja
+
+override_dh_auto_configure:
+	dh_auto_configure -- \
+		--preset=smlnj-llvm-release \
+		-B$(CURDIR)/obj-$(DEB_HOST_GNU_TYPE) \
+		-DCMAKE_BUILD_TYPE=Release \
+		-DCMAKE_INSTALL_PREFIX=$(LLVM_PREFIX) \
+		-DLLVM_TARGETS_TO_BUILD=$(LLVM_TARGETS) \
+		-DLLVM_ENABLE_DUMP=ON \
+		-DLLVM_TOOL_LLC_BUILD=OFF \
+		-DSMLNJ_CFGC_BUILD=ON
+
+override_dh_auto_test:
+	:
+
+execute_after_dh_auto_install:
+	# build.sh drops these from the install tree as well
+	rm -f debian/tmp$(LLVM_PREFIX)/bin/llvm-libtool-darwin \
+	      debian/tmp$(LLVM_PREFIX)/bin/llvm-tblgen
+	rm -f debian/$(DEB_PKG)$(LLVM_PREFIX)/bin/llvm-libtool-darwin \
+	      debian/$(DEB_PKG)$(LLVM_PREFIX)/bin/llvm-tblgen
+
+override_dh_dwz:
+	:
