|
@@ -32,9 +32,15 @@ Requires: corosynclib%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
# Build bits
|
|
# Build bits
|
|
|
|
|
|
|
|
|
|
+# OpenSUSE needs groff-full to build html documentation,
|
|
|
|
|
+# but there is no clean way to express it here.
|
|
|
BuildRequires: groff
|
|
BuildRequires: groff
|
|
|
BuildRequires: libqb-devel
|
|
BuildRequires: libqb-devel
|
|
|
-BuildRequires: nss-devel
|
|
|
|
|
|
|
+# Use file based depedency to allow upstream spec file to
|
|
|
|
|
+# build on OpenSUSE since package name differs with Fedora/RHEL/Centos
|
|
|
|
|
+# and only recent versions of rpm supports BuildRequires: foo || bar
|
|
|
|
|
+# BuildRequires: nss-devel || mozilla-nss-devel
|
|
|
|
|
+BuildRequires: /usr/include/nss3/nss.h /usr/include/nspr4/nspr.h
|
|
|
BuildRequires: libknet1-devel
|
|
BuildRequires: libknet1-devel
|
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: zlib-devel
|
|
|
%if %{with runautogen}
|
|
%if %{with runautogen}
|
|
@@ -47,7 +53,11 @@ BuildRequires: libstatgrab-devel
|
|
|
BuildRequires: net-snmp-devel
|
|
BuildRequires: net-snmp-devel
|
|
|
%endif
|
|
%endif
|
|
|
%if %{with dbus}
|
|
%if %{with dbus}
|
|
|
-BuildRequires: dbus-devel
|
|
|
|
|
|
|
+# Use file based depedency to allow upstream spec file to
|
|
|
|
|
+# build on OpenSUSE since package name differs with Fedora/RHEL/Centos
|
|
|
|
|
+# and only recent versions of rpm supports BuildRequires: foo || bar
|
|
|
|
|
+# BuildRequires: dbus-devel || dbus-1-devel
|
|
|
|
|
+BuildRequires: /usr/include/dbus-1.0/dbus/dbus.h
|
|
|
%endif
|
|
%endif
|
|
|
%if %{with systemd}
|
|
%if %{with systemd}
|
|
|
%{?systemd_requires}
|
|
%{?systemd_requires}
|
|
@@ -98,7 +108,8 @@ BuildRequires: libcgroup-devel
|
|
|
--enable-libcgroup \
|
|
--enable-libcgroup \
|
|
|
%endif
|
|
%endif
|
|
|
--with-initddir=%{_initrddir} \
|
|
--with-initddir=%{_initrddir} \
|
|
|
- --with-systemddir=%{_unitdir}
|
|
|
|
|
|
|
+ --with-systemddir=%{_unitdir} \
|
|
|
|
|
+ --docdir=%{_docdir}
|
|
|
|
|
|
|
|
make %{_smp_mflags}
|
|
make %{_smp_mflags}
|
|
|
|
|
|