--- attachment-converter-0.1.53.orig/debian/attachment-converter.docs
+++ attachment-converter-0.1.53/debian/attachment-converter.docs
@@ -0,0 +1,1 @@
+usr/doc/attachment-converter/*
--- attachment-converter-0.1.53.orig/debian/changelog
+++ attachment-converter-0.1.53/debian/changelog
@@ -1,5 +1,11 @@
-attachment-converter (0.1.53-1~resolute) resolute; urgency=medium
-
-  * Initial release.
-
- -- Matt Teichman <teichman@uchicago.edu>  Mon, 06 Jul 2026 14:44:06 -0500
+attachment-converter (0.1.53-1+4.1) UNRELEASED; urgency=medium
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Tue, 07 Jul 2026 17:58:02 +0000
+
+attachment-converter (0.1.53-1) UNRELEASED; urgency=medium
+
+  * New upstream release.
+
+ -- Skye Soss <skye@soss.website>  Mon, 06 Jul 2026 06:10:59 +0600
--- attachment-converter-0.1.53.orig/debian/copyright
+++ attachment-converter-0.1.53/debian/copyright
@@ -1,27 +1,28 @@
-Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: attc
-Upstream-Contact: Matt Teichman <tiechman@uchicago.edu>
-Source: https://github.com/uchicago-library/attachment-converter
-
-Files: *
-Copyright: 2026 Matt Teichman <teichman@uchicago.edu>
-License: GPL-3.0-or-later
-
-License: GPL-3.0-or-later
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version. 
- .
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- .
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- .
- On Debian systems, the full text of the GNU General Public
- License version 2 can be found in the file
- '/usr/share/common-licenses/GPL-3'.
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Source: https://github.com/uchicago-library/attachment-converter
+Upstream-Name: attachment-converter
+Upstream-Contact: Matt Teichman
+Comment:
+ Debianized by Skye Soss <skye@soss.website> on July 6, 2026.
+
+Files: *
+Copyright:
+ Copyright 2026 Matt Teichman and Nathan Mull
+License: GPL-3+
+
+License: GPL-3+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, see <https://www.gnu.org/licenses/>.
+Comment:
+ On Debian systems, the full text of the GNU General Public License
+ version 3 can be found in the file '/usr/share/common-licenses/GPL-3'.
--- attachment-converter-0.1.53.orig/debian/rules
+++ attachment-converter-0.1.53/debian/rules
@@ -1,33 +1,13 @@
-#!/usr/bin/make -f
-PROJECT_ROOT = $(shell pwd)
-DUNE = opam exec -- dune $1 --display short
-
-%:
-	dh $@
-
-override_dh_auto_clean:
-	if [ -f ~/.opam/config ]; then \
-		eval $$(opam env) && opam exec -- dune clean; \
-	fi
-	rm -f $(wildcard *.maketrack)
-
-override_dh_auto_test:
-
-opam-installs:
-	cd $(PROJECT_ROOT)
-	tar -zxf opampack.tar.gz
-	./ubuntu_wsl/install.sh
-	export OPAMROOT=$(PROJECT_ROOT)/ubuntu_wsl/opamroot
-	eval $$(opam env --root=$(PROJECT_ROOT)/ubuntu_wsl/opamroot)
-
-pkg-opam-install::
-	eval $$(opam env --switch=opampack --root=$(PROJECT_ROOT)/ubuntu_wsl/opamroot --set-switch --set-root)
-	opam exec --verbose --switch=opampack --root=$(PROJECT_ROOT)/ubuntu_wsl/opamroot -- dune build --root=$(PROJECT_ROOT) --no-config
-.PHONY: pkg-opam-install
-
-override_dh_auto_build: opam-installs pkg-opam-install
-	cd $(PROJECT_ROOT)
-
-override_dh_auto_install:
-	cp $(wildcard conversion-scripts/*.sh) $$(pwd)/debian/attc/usr/lib/attachment-converter/scripts
-	mv $$(pwd)/_build/default/main.exe $$(pwd)/debian/attc/usr/bin/attc
+#!/usr/bin/make -f
+
+include /usr/share/ocaml/ocamlvars.mk
+
+%:
+	dh $@ --with ocaml --buildsystem ocaml_dune
+
+execute_before_dh_auto_configure:
+	sed -i 's/(lang dune 3.20)/(lang dune 3.14)/' dune-project
+
+execute_after_dh_auto_install:
+	install -d debian/tmp/usr/lib/attachment-converter/scripts
+	install -m 755 conversion-scripts/*.sh debian/tmp/usr/lib/attachment-converter/scripts
--- attachment-converter-0.1.53.orig/debian/attachment-converter.install
+++ attachment-converter-0.1.53/debian/attachment-converter.install
@@ -0,0 +1,3 @@
+usr/bin/attc
+usr/lib/*/ocaml/*/attachment-converter/*
+usr/lib/attachment-converter/scripts/*.sh
--- attachment-converter-0.1.53.orig/debian/debian-dune
+++ attachment-converter-0.1.53/debian/debian-dune
@@ -0,0 +1,1 @@
+attachment-converter
--- attachment-converter-0.1.53.orig/debian/control
+++ attachment-converter-0.1.53/debian/control
@@ -1,19 +1,42 @@
-Source: attachment-converter
-Maintainer: Matt Teichman <teichman@uchicago.edu>
-Section: misc
-Priority: optional
-Standards-Version: 4.6.2
-Build-Depends: debhelper-compat (=13), opam,  mercurial, pkg-config
-
-Package: attc
-Architecture: amd64 arm64
-Depends: ${shlibs:Depends}, ${misc:Depends}, pandoc, libreoffice, libvips-tools, ghostscript, imagemagick, poppler-utils
-Description: Tool for converting email mailboxes to preservation formats
- Attachment Converter is an open-source command-line tool for
- digital archivists. Given an email mailbox in MBOX format, it will
- go through that mailbox and batch convert all the attachments it
- can into preservation formats, putting a converted copy of each
- attachment back into the email from which it originated. The
- user can then re-open the new mailbox in a mail user agent,
- such as Apple Mail, and browse through the mailbox the normal
- way.
+Source: attachment-converter
+Section: misc
+Maintainer: Skye Soss <skye@soss.website>
+Build-Depends:
+ debhelper-compat (= 13),
+ ocaml,
+ dh-ocaml,
+ ocaml-dune,
+ ocaml-findlib,
+ libcmdliner-ocaml-dev,
+ libmrmime-ocaml-dev,
+ libocamlnet-ocaml-dev,
+ libprelude-ocaml-dev,
+ libre-ocaml-dev,
+ libounit-ocaml-dev,
+ pandoc,
+ libreoffice,
+ libvips-tools,
+ ghostscript,
+ imagemagick,
+ poppler-utils,
+Standards-Version: 4.7.2
+Homepage: https://dldc.lib.uchicago.edu/open/attachment-converter/
+Vcs-Git: https://github.com/uchicago-library/attachment-converter.git
+Vcs-Browser: https://github.com/uchicago-library/attachment-converter
+
+Package: attachment-converter
+Architecture: any
+Depends: ${ocaml:Depends}, ${misc:Depends}, ${shlibs:Depends},
+ pandoc,
+ libreoffice,
+ libvips-tools,
+ ghostscript,
+ imagemagick,
+ poppler-utils
+Description: Tool for batch converting email attachments
+ Attachment Converter is an open-source command-line tool for digital
+ archivists. Given an email mailbox in MBOX format, it will go through that
+ mailbox and batch convert all the attachments it can into preservation
+ formats, putting a converted copy of each attachment back into the email from
+ which it originated. The user can then re-open the new mailbox in a mail user
+ agent, such as Apple Mail, and browse through the mailbox the normal way.
