Originally Posted by COOGOR
Can one send me the spec file from teh Fedora/CentOS build, just to save some effort?
There's no spec file, it's built automatically by cmake.
Here's a patch to enable automatic detection of distro and arch in cmake. It also include appropriate dependency for openSUSE rpm
Please refer to this for building process:
Compiling - Linux | Official OpenCPN Homepage
Install required packages (as root):
# zypper install git cmake gcc-c++ libstdc++-devel gtk2-devel wxWidgets-wxcontainer-devel MesaGLw-devel gettext-runtime libbz2-devel gpsd-devel libgps19-devel
$ git clone git://opencpn.git.sourceforge.net/gitroot/opencpn/opencpn
$ cd opencpn
$ git apply $pathto/0001-cmake-auto-detect-distro-arch.patch
$ mkdir build
$ cd build
$ cmake -DPREFIX=/usr ../
$ make package