Commit abd37423 authored by Luca Boccassi's avatar Luca Boccassi

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.
parent a8a774e7
# 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 %define lib_name libzmq5
Name: zeromq Name: zeromq
Version: 4.2.0 Version: 4.2.0
...@@ -103,7 +113,7 @@ sed -i "s/openpgm-[0-9].[0-9]/%{openpgm_pc}/g" \ ...@@ -103,7 +113,7 @@ sed -i "s/openpgm-[0-9].[0-9]/%{openpgm_pc}/g" \
%build %build
autoreconf -fi autoreconf -fi
%configure \ %configure --enable-drafts=%{DRAFTS} \
%{?_with_libsodium} \ %{?_with_libsodium} \
%{?_without_libsodium} \ %{?_without_libsodium} \
%{?_with_pgm} \ %{?_with_pgm} \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment