From b62398a1ad1d2175608acddd903fc39e595f7c64f1f4a5724e360a6b29bf7d2d Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Fri, 22 Oct 2010 14:31:26 +0000 Subject: [PATCH] build without libotr support on SLE10 (libotr is too old there) OBS-URL: https://build.opensuse.org/package/show/server:irc/bitlbee?expand=0&rev=8 --- bitlbee.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bitlbee.spec b/bitlbee.spec index 07627a8..7ad0709 100644 --- a/bitlbee.spec +++ b/bitlbee.spec @@ -1,6 +1,10 @@ # norootforbuild # vim: set ts=4 sw=4 et: +%if 0%{?suse_version} >= 1100 +%define with_otr 1 +%endif + Name: bitlbee Version: 3.0 Release: 0 @@ -14,7 +18,6 @@ License: GNU General Public License version 2 (GPL v2) BuildRoot: %{_tmppath}/build-%{name}-%{version} Requires: xinetd BuildRequires: make gcc glibc-devel pkgconfig gnutls-devel libgcrypt-devel -BuildRequires: libotr-devel BuildRequires: zlib-devel glib2-devel lzo-devel glib2-devel %if 0%{?suse_version} >= 1010 BuildRequires: xmlto @@ -22,6 +25,9 @@ BuildRequires: xmlto %if 0%{?suse_version} >= 1030 BuildRequires: fdupes %endif +%if 0%{?with_libotr:1} +BuildRequires: libotr-devel +%endif PreReq: /usr/sbin/groupadd /usr/sbin/useradd %description @@ -67,7 +73,11 @@ CXXFLAGS="%{optflags} -fno-strict-aliasing" \ --config="%{_localstatedir}/lib/%{name}" \ --ipcsocket="%{_localstatedir}/run/%{name}.sock" \ --purple=0 \ +%if 0%{?with_libotr:1} --otr=1 \ +%else + --otr=0 \ +%endif --msn=1 \ --jabber=1 \ --twitter=1 \