diff --git a/rpm.spec b/rpm.spec index 08257cf..c40ed9e 100644 --- a/rpm.spec +++ b/rpm.spec @@ -242,6 +242,7 @@ gzip -9n apidocs/man/man*/* || : # Get rid of unpackaged files { cd $RPM_BUILD_ROOT + rm -f .%{_libdir}/lib*.la rm -f .%{__prefix}/lib/rpm/{Specfile.pm,cpanflute,cpanflute2,rpmdiff,rpmdiff.cgi,sql.prov,sql.req,tcl.req} rm -rf .%{__mandir}/{fr,ko} %if %{with_python_subpackage} @@ -251,6 +252,7 @@ gzip -9n apidocs/man/man*/* || : %endif } + %clean rm -rf $RPM_BUILD_ROOT