# We don't need these scripts:
rm -rf install.sh tools/bin/docbook-xsl-update
-find -type f -exec chmod -x {} \;
+find -type f -print0 |xargs -0 chmod -x
chmod -R a+rX,g-w,o-w .
chmod -x images/*.{svg,png,gif,tif} images/callouts/*.{svg,png,gif} extensions/docbook.py
# Start cleanup (to avoid warnings for rpmlint
%{INSTALL_DIR} %{buildroot}%{xml_mod_style_prod_dir}/%{version}
cp -a [[:lower:]]* %{buildroot}%{xml_mod_style_prod_dir}/%{version}
cp -a VERSION.xsl %{buildroot}%{xml_mod_style_prod_dir}/%{version}
-find %{buildroot}%{xml_mod_style_prod_dir} -type f -name '*.orig' -exec rm -f {} \;
+find %{buildroot}%{xml_mod_style_prod_dir} -type f -name '*.orig' -print0 |xargs -0 rm -f
rm -f %{buildroot}%{xml_mod_style_prod_dir}/%{version}/for-catalog*
: >%{name}_list
{