From bfab31e9db2ab3f7d332e7148b14979201e31898 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Tue, 6 Aug 2013 08:45:47 -0300 Subject: [PATCH] Discard installed docs The spec makes those files to install directly from the source directory, and not from the installed one. error: Installed (but unpackaged) file(s) found: /usr/share/doc/zbar-0.10/COPYING /usr/share/doc/zbar-0.10/HACKING /usr/share/doc/zbar-0.10/INSTALL /usr/share/doc/zbar-0.10/LICENSE /usr/share/doc/zbar-0.10/NEWS /usr/share/doc/zbar-0.10/README /usr/share/doc/zbar-0.10/TODO Signed-off-by: Mauro Carvalho Chehab --- zbar.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zbar.spec b/zbar.spec index 552ed8c..03abbdd 100644 --- a/zbar.spec +++ b/zbar.spec @@ -104,6 +104,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" #Remove .la and .a files find ${RPM_BUILD_ROOT} -name '*.la' -or -name '*.a' | xargs rm -f +# Remove installed doc +rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-0.10/ + %clean rm -rf $RPM_BUILD_ROOT