The classical way is to build from sources.
git clone github.com/asiffer/libspot
cd libspot
make
The make command builds both the static and the dynamic libraries. Then to install libs and headers:
sudo make install
Info
By default it install the libraries to /usr/lib and headers to /usr/include/spot. You can change it through INSTALL_HEAD_DIR and INSTALL_LIB_DIR variables:
sudo make install INSTALL_HEAD_DIR=/tmp/spot INSTALL_LIB_DIR=/tmp
Or you can use the DESTDIR (unset) or PREFIX variables (set to /usr). Here is the extract of the Makefile:
DESTDIR =
PREFIX = /usr
INSTALL_HEAD_DIR = $(DESTDIR)$(PREFIX)/include/spot
INSTALL_LIB_DIR = $(DESTDIR)$(PREFIX)/lib
You can remove the library with the uninstall command.
sudo make uninstall