Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2014-09-03 10:56:44 +0200
committerMichal Marek <mmarek@suse.cz>2014-09-03 10:56:44 +0200
commitdeb25bccc7af701754572e3320ca62b5355d5d76 (patch)
treea0452e96b49d9b6da74cc200d15845ddc2e6b506
parent8331f47b2dfe5e0e0b623114216d73db15e522d7 (diff)
rpm/kernel-source.spec.in: Install doc files in a versioned directory (bnc#867595)
-rw-r--r--rpm/kernel-source.spec.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/rpm/kernel-source.spec.in b/rpm/kernel-source.spec.in
index 4c258d81e2..a7b270d5e5 100644
--- a/rpm/kernel-source.spec.in
+++ b/rpm/kernel-source.spec.in
@@ -199,10 +199,10 @@ fi
%install
%if ! %vanilla_only
# Install the documentation and example Kernel Module Package.
-DOC=$RPM_BUILD_ROOT/usr/share/doc/packages/%name
-mkdir -p $DOC
-cp %_sourcedir/README.SUSE %_sourcedir/config-options.changes.txt $DOC
-ln -s /usr/share/doc/packages/%name/README.SUSE %buildroot/%src_install_dir/
+DOC=/usr/share/doc/packages/%name-%kernelrelease
+mkdir -p %buildroot/$DOC
+cp %_sourcedir/README.SUSE %_sourcedir/config-options.changes.txt %buildroot/$DOC
+ln -s $DOC/README.SUSE %buildroot/%src_install_dir/
install -m 755 -d $RPM_BUILD_ROOT/etc/rpm
install -m 644 %_sourcedir/macros.kernel-source $RPM_BUILD_ROOT/etc/rpm/
@@ -240,7 +240,7 @@ find %buildroot/usr/src/linux* ! -type l | xargs touch -d "$ts"
%files -n kernel-devel%variant -f devel.files
%defattr(-,root,root)
%ghost /usr/src/linux%variant
-/usr/share/doc/packages/%name
+%doc /usr/share/doc/packages/*
/etc/rpm/macros.kernel-source
/usr/lib/rpm/kernel-*-subpackage
%endif