Agreed with what Ron says. On bookshelves, you want a paint that is very hard and very dry.
Also, keep in mind that black paint will be devilishly difficult to cover adequately, and will take many coats. You must start with a light but very thorough sanding, or nothing will stick. The last thing you need after putting down 5 coats of paint is the stuff peeling off at the first disturbance, and leaving black speckles all over your furniture.
The sanding need only be light - we're just looking to remove the gloss from the paint so the next primer can have some "tooth" to engage at the molecular level. My favorite go-to for that is 3M green Scotchbrite like on pots-and-pan sponges.
Then follow with 2-3 coats of primer until the color seems fairly uniform (not too much blotchy black printing through - you'll see what I mean) and then 2 coats of topcoat. Be sure to mind your re-coating intervals, or you'll have to sand again.
This will be the stinky oil-based alkyd enamels, unless you want to roll the dice on the newest water-borne alkyds.
thinks about the sheer labor involved You know, Ikea makes really nice white bookshelves :)