Now(2021) there exist spice packages for Ubuntu.
Use these
sudo apt install libspice-protocol-dev
sudo apt install libspice-server-dev
Remember to configure qemu with --enable-spice.
For reference these are the spice related packages I have.
username@username-H81 ~/b/q/qemu (master)> apt list --installed | grep spice
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libspice-client-glib-2.0-8/groovy,now 0.38-2ubuntu1 amd64 [installed,automatic]
libspice-client-gtk-3.0-5/groovy,now 0.38-2ubuntu1 amd64 [installed,automatic]
libspice-protocol-dev/groovy,groovy,now 0.14.1-2 all [installed]
libspice-server-dev/groovy,now 0.14.3-1ubuntu2 amd64 [installed]
libspice-server1/groovy,now 0.14.3-1ubuntu2 amd64 [installed,automatic]
spice-client-glib-usb-acl-helper/groovy,now 0.38-2ubuntu1 amd64 [installed,automatic]
spice-client-gtk/groovy,now 0.38-2ubuntu1 amd64 [installed]
spice-vdagent/groovy-security,groovy-updates,now 0.20.0-1ubuntu0.1 amd64 [installed]
spice-webdavd/groovy,now 2.5-1 amd64 [installed]
pkg-config spice-protocol --modversion 0.12.3 pkg-config spice-server --modversion 0.12.2
– user1640204 Dec 21 '12 at 15:53pkg-config --cflags spice-protocol spice-server
? – Salem Dec 21 '12 at 16:14