[cdk/epel7] EPEL7 can't recognize docdir files if existed already.

Christopher Meng cicku at fedoraproject.org
Fri Jan 24 04:46:29 UTC 2014


commit ccfafab13c29463c5b41e766600b97b4cdb7b68d
Author: Christopher Meng <i at cicku.me>
Date:   Fri Jan 24 12:45:45 2014 +0800

    EPEL7 can't recognize docdir files if existed already.

 cdk.spec |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/cdk.spec b/cdk.spec
index dd5a376..e2fe013 100644
--- a/cdk.spec
+++ b/cdk.spec
@@ -36,6 +36,9 @@ make install installCDKSHLibrary DESTDIR=%{buildroot} INSTALL="install -pD"
 chmod +x %{buildroot}%{_libdir}/*.so
 find %{buildroot} -name '*.a' -delete
 
+# Remove doc installed by program itself.
+rm -rf %{buildroot}%{_docdir}/cdk
+
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig


More information about the scm-commits mailing list