Moved the clean section to the end of the install section
%clean is no longer triggered during brew build which causes the rpmbuild byproducts appears in the build (nss, nspr, etc) Related: RHEL-19339
This commit is contained in:
parent
c04f377e98
commit
b97a304deb
21
firefox.spec
21
firefox.spec
@ -1631,6 +1631,17 @@ rm -rf %{buildroot}%{mozappdir}/gtk2/
|
||||
ln -sf /usr/lib64/libnss3.so %{buildroot}%{_libdir}/libnss3.so
|
||||
ln -sf /usr/lib64/pkcs11/p11-kit-client.so %{buildroot}%{_libdir}/libnssckbi.so
|
||||
%endif
|
||||
|
||||
# clean the created bundled rpms if there are any
|
||||
rm -rf %{_srcrpmdir}/libffi*.src.rpm
|
||||
find %{_rpmdir} -name "libffi*.rpm" -delete
|
||||
rm -rf %{_srcrpmdir}/openssl*.src.rpm
|
||||
find %{_rpmdir} -name "openssl*.rpm" -delete
|
||||
rm -rf %{_srcrpmdir}/nss*.src.rpm
|
||||
find %{_rpmdir} -name "nss*.rpm" -delete
|
||||
rm -rf %{_srcrpmdir}/nspr*.src.rpm
|
||||
find %{_rpmdir} -name "nspr*.rpm" -delete
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
|
||||
%check
|
||||
@ -1644,16 +1655,6 @@ if [ $1 -eq 0 ]; then
|
||||
%{__rm} -rf %{mozappdir}/plugins
|
||||
fi
|
||||
|
||||
%clean
|
||||
rm -rf %{_srcrpmdir}/libffi*.src.rpm
|
||||
find %{_rpmdir} -name "libffi*.rpm" -delete
|
||||
rm -rf %{_srcrpmdir}/openssl*.src.rpm
|
||||
find %{_rpmdir} -name "openssl*.rpm" -delete
|
||||
rm -rf %{_srcrpmdir}/nss*.src.rpm
|
||||
find %{_rpmdir} -name "nss*.rpm" -delete
|
||||
rm -rf %{_srcrpmdir}/nspr*.src.rpm
|
||||
find %{_rpmdir} -name "nspr*.rpm" -delete
|
||||
|
||||
%post
|
||||
update-desktop-database &> /dev/null || :
|
||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
|
Loading…
Reference in New Issue
Block a user