]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
chrpath: Install documentation to the correct place
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 18 Mar 2023 15:58:42 +0000 (16:58 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Mar 2023 18:25:39 +0000 (18:25 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
chrpath/chrpath.nm

index 5739082b4ec1721c49ee96f727781aa4c2864eb6..6f24793cb7417a62b2115beae2ef62e8a0fd30d6 100644 (file)
@@ -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}