Skip to content

Instantly share code, notes, and snippets.

@mfournier
Created November 5, 2014 10:05
Show Gist options
  • Select an option

  • Save mfournier/fd634b6e9f435117452a to your computer and use it in GitHub Desktop.

Select an option

Save mfournier/fd634b6e9f435117452a to your computer and use it in GitHub Desktop.
qgis on RHEL6 (wip)
FROM centos:centos6
RUN rpm -U http://mirror.switch.ch/ftp/mirror/epel/6/x86_64/epel-release-6-8.noarch.rpm
# grass, qgis & qextserialport build deps
RUN yum -y install bison blas-devel cairo-devel cmake cpp desktop-file-utils doxygen expat-devel fcgi-devel fftw2-devel flex gcc gcc-c++ gdal-devel geos-devel gettext git gsl-devel lapack-devel libspatialite-devel libudev-devel libXmu-devel make mesa-libGLw-devel mysql-devel ncurses-devel pkgconfig postgresql-devel proj-devel proj-epsg proj-nad PyQt4-devel PyQwt-devel python2-devel qscintilla-devel qt4-devel qt4-webkit-devel qwt-devel qwtpolar-devel readline-devel rpm-build sip-devel spatialindex-devel sqlite-devel swig tar tk-devel unixODBC-devel wxGTK-devel wxPython-devel
# QT build deps
#RUN yum -y install cups-devel libmng-devel alsa-lib-devel dbus-devel libicu-devel NetworkManager-devel pulseaudio-libs-devel libXv-devel libXtst-devel gstreamer-devel gstreamer-plugins-base-devel
RUN rpm -e --nodeps openmotif-devel
RUN yum -y install lesstif-devel
RUN rpm -ivh https://kojipkgs.fedoraproject.org//packages/qextserialport/1.2/0.6.beta2.fc22/src/qextserialport-1.2-0.6.beta2.fc22.src.rpm
RUN rpm -ivh https://kojipkgs.fedoraproject.org//packages/grass/6.4.4/5.fc22/src/grass-6.4.4-5.fc22.src.rpm
#RUN rpm -ivh http://vault.centos.org/7.0.1406/os/Source/SPackages/qt-4.8.5-8.el7.src.rpm
#RUN rpm -ivh https://kojipkgs.fedoraproject.org//packages/qgis/2.4.0/7.fc22/src/qgis-2.4.0-7.fc22.src.rpm
#RUN rpm -ivh https://kojipkgs.fedoraproject.org//packages/qgis/2.2.0/4.fc21/src/qgis-2.2.0-4.fc21.src.rpm
RUN rpm -ivh https://kojipkgs.fedoraproject.org//packages/qgis/2.0.1/8.fc21/src/qgis-2.0.1-8.fc21.src.rpm
RUN rpmbuild -bb /rpmbuild/SPECS/qextserialport.spec
RUN rpm -ivh /rpmbuild/RPMS/x86_64/qextserialport*
RUN sed -i '/^desktop-file-install/,/icons.*desktop$/d' /rpmbuild/SPECS/grass.spec
RUN sed -i '/applications.*desktop$/d' /rpmbuild/SPECS/grass.spec
RUN rpmbuild -bb /rpmbuild/SPECS/grass.spec
RUN rpm -ivh /rpmbuild/RPMS/x86_64/grass-*
#RUN sed -i 's/icu-i18n/icu/' /rpmbuild/SPECS/qt.spec
#RUN rpmbuild -bb /rpmbuild/SPECS/qt.spec
RUN rpmbuild -bb /rpmbuild/SPECS/qgis.spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment