+# Conditional build:
+%bcond_without bzip2 # gb.compress.bzlib2 module
+%bcond_without zlib # gb.compress.zlib module
+%bcond_without mysql # gb.db.mysql module
+%bcond_without odbc # gb.db.odbc module
+%bcond_without pgsql # gb.db.postgresql module
+%bcond_without sqlite2 # gb.db.sqlite2 module
+%bcond_without sqlite3 # gb.db.sqlite3 module
+%bcond_without firebird # gb.db.firebird module
+%bcond_without gtk # gb.gtk module
+%bcond_without librsvg # gb.gtk.svg module (depends on gtk)
+%bcond_without pdf # gb.pdf module
+%bcond_without net # gb.net module
+%bcond_without curl # gb.net.curl module
+%bcond_without smtp # gb.net.smtp module
+%bcond_without pcre # gb.pcre module
+%bcond_without qt # gb.qt module
+%bcond_with qte # gb.qte module
+%bcond_without kde # gb.qt.kde module
+%bcond_without sdl # gb.sdl module
+%bcond_without sdlsound # gb.sdl.sound module
+%bcond_without xml # gb.xml module
+%bcond_without v4l # gb.v4l module
+%bcond_without crypt # gb.crypt module
+%bcond_without opengl # gb.opengl module
+%bcond_without corba # gb.corba module
+%bcond_without image # gb.image module
+#bcond_without desktop # gb.desktop module
+#
+%if %{without gtk}
+%undefine with_librsvg
+%endif
+%if %{without opengl}
+%undefine with_sdl
+%endif
+%if %{without sdl}
+%undefine with_SDL_mixer
+%endif