mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-06 00:31:13 +01:00
Add support for --with/--without libsodium and --with/--without pgm
command line options.
This commit is contained in:
parent
64a92cce49
commit
9078a7a4a5
@ -11,9 +11,30 @@ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|||||||
BuildRequires: gcc, make, gcc-c++, libstdc++-devel, asciidoc, xmlto
|
BuildRequires: gcc, make, gcc-c++, libstdc++-devel, asciidoc, xmlto
|
||||||
Requires: libstdc++
|
Requires: libstdc++
|
||||||
|
|
||||||
# Build pgm only on supported archs
|
#
|
||||||
|
# Conditional build options
|
||||||
|
# Default values aree
|
||||||
|
# --without-libsodium
|
||||||
|
# --without-pgm
|
||||||
|
#
|
||||||
|
|
||||||
|
# If neither macro exists, use the default value.
|
||||||
|
%{!?_with_libsodium: %{!?_without_libsodium: %define _without_libsodium --without-libsodium}}
|
||||||
|
%{!?_with_pgm: %{!?_without_pgm: %define _without_pgm --without-pgm}}
|
||||||
|
|
||||||
|
# It's an error if both --with and --without options are specified
|
||||||
|
%{?_with_libsodium: %{?_without_libsodium: %{error: both _with_libsodium and _without_libsodium}}}
|
||||||
|
%{?_with_pgm: %{?_without_pgm: %{error: both _with_pgm and _without_pgm}}}
|
||||||
|
|
||||||
|
%{?_with_libsodium:BuildRequires: libsodium-devel}
|
||||||
|
%{?_with_libsodium:Requires: libsodium}
|
||||||
|
|
||||||
|
%{?_with_pgm:BuildRequires: openpgm-devel}
|
||||||
|
%{?_with_pgm:Requires: openpgm}
|
||||||
|
|
||||||
%ifarch pentium3 pentium4 athlon i386 i486 i586 i686 x86_64
|
%ifarch pentium3 pentium4 athlon i386 i486 i586 i686 x86_64
|
||||||
BuildRequires: python, perl
|
%{!?_with_pic: %{!?_without_pic: %define _with_pic --with-pic}}
|
||||||
|
%{!?_with_gnu_ld: %{!?_without_gnu_ld: %define _with_gnu_ld --with-gnu_ld}}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -45,11 +66,15 @@ This package contains ZeroMQ related development libraries and header files.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch pentium3 pentium4 athlon i386 i486 i586 i686 x86_64
|
%configure \
|
||||||
%configure --with-pgm --with-pic --with-gnu-ld
|
%{?_with_libsodium} \
|
||||||
%else
|
%{?_without_libsodium} \
|
||||||
%configure
|
%{?_with_pgm} \
|
||||||
%endif
|
%{?_without_pgm} \
|
||||||
|
%{?_with_pic} \
|
||||||
|
%{?_without_pic} \
|
||||||
|
%{?_with_gnu_ld} \
|
||||||
|
%{?_without_gnu_ld}
|
||||||
|
|
||||||
%{__make} %{?_smp_mflags}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
@ -148,6 +173,10 @@ This package contains ZeroMQ related development libraries and header files.
|
|||||||
%{_mandir}/man7/zmq_tipc.7.gz
|
%{_mandir}/man7/zmq_tipc.7.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Oct 18 2014 J.T. Conklin <jtc@acorntoolworks.com>
|
||||||
|
- Add --with/--without pgm support
|
||||||
|
- Add --with/--without libsodium support
|
||||||
|
|
||||||
* Tue Jun 10 2014 Tristian Celestin <tristian.celestin@outlook.com> 4.0.4
|
* Tue Jun 10 2014 Tristian Celestin <tristian.celestin@outlook.com> 4.0.4
|
||||||
- Updated packaged files
|
- Updated packaged files
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user