[gengetopt/epel7] Use %doc macro to install docs

Christopher Meng cicku at fedoraproject.org
Thu Feb 20 03:59:58 UTC 2014


commit 1e1540dfc8fe29cd98c04e2a9ccbcb8bb369c340
Author: Christopher Meng <i at cicku.me>
Date:   Thu Feb 20 11:59:43 2014 +0800

    Use %doc macro to install docs

 gengetopt.spec |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gengetopt.spec b/gengetopt.spec
index d377522..9c35b50 100644
--- a/gengetopt.spec
+++ b/gengetopt.spec
@@ -47,6 +47,8 @@ make
 %install
 make install INSTALL="%{__install} -p" DESTDIR=%{buildroot}
 rm -f %{buildroot}%{_infodir}/dir
+# Use %%doc macro to install instead.
+rm -f %{buildroot}%{_docdir}/%{name}
 
 mkdir ./examples
 pushd ./doc


More information about the scm-commits mailing list