Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
name = chrpath
version = 0.16
-release = 1
+release = 2
groups = Development/Tools
url = https://directory.fsf.org/wiki/Chrpath/
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}