For instance on Fedora 22
Download python-django-horizon-2015.1.0-7.el7.src.rpm
Install
$rpm -iv python-django-horizon-2015.1.0-7.el7.src.rpm
$ cd
$ cd rpmbuild/SOURCES/
place in SOURCES
patch 0021-Fixed-two-errors-when-upload-an-image-from-file.patch
Analyze and update correspondingly ../SPECS/python-django-horizon.spec
$ rpmbuild -bb python-django-horizon.spec
$ cd ../RPMS/noarch
Then try :-
sudo dnf install openstack-dashboard-2015.1.0-7.fc22.noarch.rpm \
openstack-dashboard-theme-2015.1.0-7.fc22.noarch.rpm \
python-django-horizon-2015.1.0-7.fc22.noarch.rpm \
python-django-horizon-doc-2015.1.0-7.fc22.noarch.rpm
You need to know package which contain /usr/share/openstack-dashboard/openstack_dashboard/api/glance.py
Then try follow http://cs-people.bu.edu/doucette/xia/...
5 years ago I did spice build for Oneiric (you may see all my PPAs @Launchpad)
Debian builds are different from RH's. But you just need to add 1 patch to build. Look for up to date "Howto", or post "A question" at launchpad. They will respond for sure.