Hello again!
If i'm cmaking svn 3026 version with this variable "-D CUSTOM_DATA_INSTALL_PATH="%_datadir/games/megaglest/", i've
got an error
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp: In static member function 'static std::map<std::basic_string<char>, std::basic_string<char> > Shared::Util::Properties::getTagReplacementValues(std::map<std::basic_string<char>, std::basic_string<char> >*)':
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:218:52: error: expected primary-expression before '/' token
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:218:52: error: 'usr' was not declared in this scope
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:218:52: error: 'share' was not declared in this scope
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:218:52: error: 'games' was not declared in this scope
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:218:52: error: 'megaglest' was not declared in this scope
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:218:76: error: expected primary-expression before ';' token
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:219:55: error: expected primary-expression before '/' token
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:219:79: error: expected primary-expression before ';' token
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:220:53: error: expected primary-expression before '/' token
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:220:77: error: expected primary-expression before ';' token
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp: In static member function 'static bool Shared::Util::Properties::applyTagsToValue(std::string&, std::map<std::basic_string<char>, std::basic_string<char> >*)':
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:311:46: error: expected primary-expression before '/' token
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:311:46: error: 'usr' was not declared in this scope
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:311:46: error: 'share' was not declared in this scope
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:311:46: error: 'games' was not declared in this scope
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:311:46: error: 'megaglest' was not declared in this scope
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:311:70: error: expected primary-expression before ')' token
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:312:47: error: expected primary-expression before '/' token
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:312:71: error: expected primary-expression before ')' token
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:313:46: error: expected primary-expression before '/' token
/usr/src/RPM/BUILD/megaglest-source-3.6.0.2/source/shared_lib/sources/util/properties.cpp:313:70: error: expected primary-expression before ')' token
[ 52%] make[2]: *** [source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/properties.cpp.o] Error 1
when i'm remove this variable from the spec file, i can build the game, but it will search their data in /usr/loca/ directory.