However, they have very capable military hardware, and in many types of it, quantity has a quality of its own. It doesn't matter much that an M1 Abrams is technically superior than a T-14 Armata if for the same budget you can get three times more Armatas.
That, and ease of maintenance and support, is among the reasons why Russian military hardware is very popular and sells extremely well, even if it might not be the best objectively compared to the competition.
And sometimes it is better, like the S-400 SAM which is objectively better than the Patriot, or some types of missiles ( e.g. BrahMos). Or BMPs/BTRs that are even popular with very US friendly Gulf states which don't care about budgets.
Regarding Spain, they have literally developed a (small) aircraft carrier, frigates, supply ships, submarines that were successfully sold abroad. Airbus Military is based in Spain, and they're working on a future stealth 6 gen fighter with Dassault Aviation, Thales and Indra ( which are fully Spanish).
Don't shit on smaller countries just because they don't have the same budget as the US.