mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-04 07:27:26 +01:00
Problem: cannot build rpm with drafts on OBS
Solution: if rpmbuild is called with --with drafts, which can be triggered on OBS by adding: Macros: %_with_drafts 1 to the bottom of the prjconf, then enable draft APIs.
This commit is contained in:
parent
a8a774e71b
commit
abd37423d3
@ -1,3 +1,13 @@
|
||||
# To build with draft APIs, use "--with drafts" in rpmbuild for local builds or add
|
||||
# Macros:
|
||||
# %_with_drafts 1
|
||||
# at the BOTTOM of the OBS prjconf
|
||||
%bcond_with drafts
|
||||
%if %{with drafts}
|
||||
%define DRAFTS yes
|
||||
%else
|
||||
%define DRAFTS no
|
||||
%endif
|
||||
%define lib_name libzmq5
|
||||
Name: zeromq
|
||||
Version: 4.2.0
|
||||
@ -103,7 +113,7 @@ sed -i "s/openpgm-[0-9].[0-9]/%{openpgm_pc}/g" \
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
%configure \
|
||||
%configure --enable-drafts=%{DRAFTS} \
|
||||
%{?_with_libsodium} \
|
||||
%{?_without_libsodium} \
|
||||
%{?_with_pgm} \
|
||||
|
Loading…
x
Reference in New Issue
Block a user