diff --git a/weechat.spec b/weechat.spec index e8d7b29..d7f2eb8 100644 --- a/weechat.spec +++ b/weechat.spec @@ -15,7 +15,9 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%if 0%{?suse_version} > 1140 %define guile_ver 2.0 +%endif Name: weechat Version: 0.3.8 @@ -147,8 +149,10 @@ pushd build cmake \ -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ -DLIBDIR="%{_libdir}" \ +%if 0%{?suse_version} > 1140 -DGUILE_INCLUDE_DIR="%{_includedir}/guile/2.0" \ -DGUILE_LIBRARY="%{_libdir}/libguile-%{guile_ver}.so" \ +%endif -DPYTHON_LIBRARY="%{_libdir}/libpython%{py_ver}.so" \ .. %__make %{?_smp_flags} VERBOSE=1