From 4a394d6269b369e34f3eb617991031795686f3b2 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 18 Mar 2023 16:58:42 +0100 Subject: [PATCH] chrpath: Install documentation to the correct place Signed-off-by: Stefan Schantl --- chrpath/chrpath.nm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/chrpath/chrpath.nm b/chrpath/chrpath.nm index 5739082b4..6f24793cb 100644 --- a/chrpath/chrpath.nm +++ b/chrpath/chrpath.nm @@ -5,7 +5,7 @@ name = chrpath version = 0.16 -release = 1 +release = 2 groups = Development/Tools url = https://directory.fsf.org/wiki/Chrpath/ @@ -22,6 +22,20 @@ end source_dl = https://deb.debian.org/debian/pool/main/c/chrpath/ sources = %{name}_%{version}.orig.tar.gz +build + configure_options += \ + --docdir=%{docdir} + + install_cmds + # Chrpath ignores the docdir swith during configure. + # Move the documentation to the correct place. + mv -vf %{BUILDROOT}/usr/doc/%{name}-* %{BUILDROOT}%{docdir} + + # Remove empty directory + rm -rvf %{BUILDROOT}/usr/doc + end +end + packages package %{name} -- 2.47.3