debian: Package the manual pages

Message ID 20261016115103.86465-1-valter.jansons@gmail.com
State Accepted
Commit 62c37bb33c2754666f462f5b76ebc277391eda02
Headers
Series debian: Package the manual pages |

Commit Message

Valters Jansons 16 Oct 2026, 11:51 a.m. UTC
Looking at the `rpm` and `archlinux` changes, this commit also
ensures that manpage packaging is in place for Debian.

RPM also packages man3/Location.3pm* however Debian currently
builds with the `--disable-perl` flag, so that manpage is not
applicable as of now.

Signed-off-by: Valters Jansons <valter.jansons@gmail.com>
---
 debian/libloc1.manpages          | 2 ++
 debian/location.manpages         | 2 ++
 debian/lua-location.manpages     | 1 +
 debian/python3-location.manpages | 1 +
 debian/rules                     | 2 +-
 5 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 debian/libloc1.manpages
 create mode 100644 debian/location.manpages
 create mode 100644 debian/lua-location.manpages
 create mode 100644 debian/python3-location.manpages
  

Patch

diff --git a/debian/libloc1.manpages b/debian/libloc1.manpages
new file mode 100644
index 0000000..72ccf09
--- /dev/null
+++ b/debian/libloc1.manpages
@@ -0,0 +1,2 @@ 
+usr/share/man/man3/libloc.3*
+usr/share/man/man3/loc_*.3*
diff --git a/debian/location.manpages b/debian/location.manpages
new file mode 100644
index 0000000..ec25766
--- /dev/null
+++ b/debian/location.manpages
@@ -0,0 +1,2 @@ 
+usr/share/man/man1/location.1*
+usr/share/man/man1/location-importer.1*
diff --git a/debian/lua-location.manpages b/debian/lua-location.manpages
new file mode 100644
index 0000000..5a09a3f
--- /dev/null
+++ b/debian/lua-location.manpages
@@ -0,0 +1 @@ 
+usr/share/man/man3/lua-location.3*
diff --git a/debian/python3-location.manpages b/debian/python3-location.manpages
new file mode 100644
index 0000000..6d7cc2a
--- /dev/null
+++ b/debian/python3-location.manpages
@@ -0,0 +1 @@ 
+usr/share/man/man3/python-location.3*
diff --git a/debian/rules b/debian/rules
index 805fd6c..574304a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@  export PYBUILD_SYSTEM=custom
 export PYBUILD_CLEAN_ARGS=dh_auto_clean
 export PYBUILD_CONFIGURE_ARGS=intltoolize --force --automake; \
 	PYTHON={interpreter} dh_auto_configure -- \
-	--disable-man-pages --disable-perl --with-systemd
+	--disable-perl --with-systemd
 export PYBUILD_BUILD_ARGS=dh_auto_build
 export PYBUILD_INSTALL_ARGS=dh_auto_install --destdir={destdir}; \
 	mkdir -p {destdir}/usr/lib/python{version}/dist-packages; \