fix build on suse dists without libpurple-devel

OBS-URL: https://build.opensuse.org/package/show/server:irc/bitlbee?expand=0&rev=11
This commit is contained in:
Pascal Bleser 2011-03-08 14:02:30 +00:00 committed by Git OBS Bridge
parent 9ff70079f4
commit 9c6969269d

View File

@ -27,7 +27,9 @@ BuildRequires: fdupes
%if 0%{?with_libotr:1} %if 0%{?with_libotr:1}
BuildRequires: libotr-devel BuildRequires: libotr-devel
%endif %endif
%if 0%{?suse_version} >= 1030
BuildRequires: libpurple-devel BuildRequires: libpurple-devel
%endif
PreReq: /usr/sbin/groupadd /usr/sbin/useradd PreReq: /usr/sbin/groupadd /usr/sbin/useradd
%description %description
@ -95,7 +97,11 @@ CXXFLAGS="%{optflags} -fno-strict-aliasing" \
--pidfile="%{_localstatedir}/run/%{name}.pid" \ --pidfile="%{_localstatedir}/run/%{name}.pid" \
--config="%{_localstatedir}/lib/%{name}" \ --config="%{_localstatedir}/lib/%{name}" \
--ipcsocket="%{_localstatedir}/run/%{name}.sock" \ --ipcsocket="%{_localstatedir}/run/%{name}.sock" \
%if 0%{?suse_version} >= 1030
--purple=1 \ --purple=1 \
%else
--purple=0 \
%endif
%if 0%{?with_libotr:1} %if 0%{?with_libotr:1}
--otr=1 \ --otr=1 \
%else %else