mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
Problem: RPM build does not pass correct configure options
Solution: fix it
This commit is contained in:
parent
962630fd65
commit
8896b672c4
@ -24,9 +24,26 @@ BuildRequires: autoconf automake libtool libsodium-devel glib2-devel
|
||||
BuildRequires: e2fsprogs-devel
|
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||
%endif
|
||||
%bcond_with pgm
|
||||
%if %{with pgm}
|
||||
BuildRequires: openpgm-devel
|
||||
%define PGM yes
|
||||
%else
|
||||
%define PGM no
|
||||
%endif
|
||||
%bcond_with libgssapi_krb5
|
||||
%if %{with libgssapi_krb5}
|
||||
BuildRequires: krb5-devel
|
||||
%define GSSAPI yes
|
||||
%else
|
||||
%define GSSAPI no
|
||||
%endif
|
||||
%bcond_with libsodium
|
||||
%if %{with libsodium}
|
||||
BuildRequires: libsodium-devel
|
||||
%define SODIUM yes
|
||||
%else
|
||||
%define SODIUM no
|
||||
%endif
|
||||
BuildRequires: gcc, make, gcc-c++, libstdc++-devel, asciidoc, xmlto
|
||||
Requires: libstdc++
|
||||
@ -126,12 +143,9 @@ sed -i "s/openpgm-[0-9].[0-9]/%{openpgm_pc}/g" \
|
||||
%build
|
||||
autoreconf -fi
|
||||
%configure --enable-drafts=%{DRAFTS} \
|
||||
%{?_with_libsodium} \
|
||||
%{?_without_libsodium} \
|
||||
%{?_with_pgm} \
|
||||
%{?_without_pgm} \
|
||||
%{?_with_libgssapi_krb5} \
|
||||
%{?_without_libgssapi_krb5} \
|
||||
--with-pgm=%{PGM} \
|
||||
--with-libsodium=%{SODIUM} \
|
||||
--with-libgssapi_krb5=%{GSSAPI} \
|
||||
%{?_with_pic} \
|
||||
%{?_without_pic} \
|
||||
%{?_with_gnu_ld} \
|
||||
|
Loading…
Reference in New Issue
Block a user