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 <m.chehab@samsung.com>
epel9
Mauro Carvalho Chehab 12 years ago committed by Mauro Carvalho Chehab
parent 6747812698
commit bfab31e9db

@ -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

Loading…
Cancel
Save