I have this spec file for building a CodeLite package and on Fedora 25 it builds fine. But on Fedora 24 instances of the Open Build Service (OBS) it fails giving the error
[ 93s] -- SQLITE3_LIBRARY: /usr/lib64/libsqlite3.so
[ 93s] -- BUILD_DIRECTORY is set to /home/abuild/rpmbuild/BUILD/codelite-10.0/build_release
[ 93s] -- OS name Linux
[ 93s] which: no wx-config in (/usr/libexec/wxGTK31/:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/abuild/rpmbuild)
[ 93s] CMake Error at CMakeLists.txt:128 (message):
[ 93s]
[ 93s]
[ 93s] No functional wx_config script was found in your PATH.
[ 93s]
[ 93s] Is the wxWidgets development package installed?
[ 93s]
[ 93s]
[ 93s] -- Configuring incomplete, errors occurred!
[ 93s] See also "/home/abuild/rpmbuild/BUILD/codelite-10.0/build_release/CMakeFiles/CMakeOutput.log".
[ 93s] error: Bad exit status from /var/tmp/rpm-tmp.85K6gn (%build)
[ 93s]
[ 93s]
I tried to fix this very error on L74-L75 of my spec file using a symlink. This fix works for the Fedora 25 build instance on the OBS, but not Fedora 24, oddly. Are there any better solutions that work for both distribution versions?