From f82bbe8e09d59f0604eb5f2ddaaa83cc316f360f Mon Sep 17 00:00:00 2001
From: Apertis package maintainers <packagers@lists.apertis.org>
Date: Thu, 3 Jun 2021 10:23:10 +0200
Subject: [PATCH] d/rules: strip `rust-` prefix from manpage filenames

On Debian, `rust-coreutils` is meant to be installed alongside
`coreutils`, which would cause file conflicts if the manpages had the
same name, hence the need for the `rust-` prefix.

We intend to fully replace `coreutils` with `rust-coreutils` in Apertis,
so this prefix is not necessary nor relevant in our case.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
---
 debian/rules                   | 2 +-
 debian/rust-coreutils.manpages | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index d475525..b69f75f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,7 @@ override_dh_auto_install:
 	CARGO_HOME=$(shell pwd)/debian/cargo_home DESTDIR=$(CURDIR)/debian/tmp/ make install PROFILE=release
 	for f in $(CURDIR)/debian/tmp/usr/local/bin/*; do \
 		filename=$$(basename $$f); \
-		help2man $$f > docs/rust-$$filename.1; \
+		help2man $$f > docs/$$filename.1; \
 	done
 	rm -f $(CURDIR)/debian/tmp/usr/local/man/man1/arch.1.gz
 
diff --git a/debian/rust-coreutils.manpages b/debian/rust-coreutils.manpages
index 330dc58..7fc9e0a 100644
--- a/debian/rust-coreutils.manpages
+++ b/debian/rust-coreutils.manpages
@@ -1 +1 @@
-docs/rust-*.1
+docs/*.1
-- 
GitLab