mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +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
|
BuildRequires: e2fsprogs-devel
|
||||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
%endif
|
%endif
|
||||||
|
%bcond_with pgm
|
||||||
%if %{with pgm}
|
%if %{with pgm}
|
||||||
BuildRequires: openpgm-devel
|
BuildRequires: openpgm-devel
|
||||||
|
%define PGM yes
|
||||||
|
%else
|
||||||
|
%define PGM no
|
||||||
|
%endif
|
||||||
|
%bcond_with libgssapi_krb5
|
||||||
|
%if %{with libgssapi_krb5}
|
||||||
BuildRequires: krb5-devel
|
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
|
%endif
|
||||||
BuildRequires: gcc, make, gcc-c++, libstdc++-devel, asciidoc, xmlto
|
BuildRequires: gcc, make, gcc-c++, libstdc++-devel, asciidoc, xmlto
|
||||||
Requires: libstdc++
|
Requires: libstdc++
|
||||||
@ -126,12 +143,9 @@ sed -i "s/openpgm-[0-9].[0-9]/%{openpgm_pc}/g" \
|
|||||||
%build
|
%build
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
%configure --enable-drafts=%{DRAFTS} \
|
%configure --enable-drafts=%{DRAFTS} \
|
||||||
%{?_with_libsodium} \
|
--with-pgm=%{PGM} \
|
||||||
%{?_without_libsodium} \
|
--with-libsodium=%{SODIUM} \
|
||||||
%{?_with_pgm} \
|
--with-libgssapi_krb5=%{GSSAPI} \
|
||||||
%{?_without_pgm} \
|
|
||||||
%{?_with_libgssapi_krb5} \
|
|
||||||
%{?_without_libgssapi_krb5} \
|
|
||||||
%{?_with_pic} \
|
%{?_with_pic} \
|
||||||
%{?_without_pic} \
|
%{?_without_pic} \
|
||||||
%{?_with_gnu_ld} \
|
%{?_with_gnu_ld} \
|
||||||
|
Loading…
Reference in New Issue
Block a user