Cook onion until tender in oil, add remaining ingredients except for the ribs. Let simmer for 15 minutes.
Preheat broiler. Cut spareribs into serving pieces. Brown under broiler then lay in roasting pan and pour sauce over spareribs.
Simmer or cook slowly (covered) for about 1 1/2 hours.