summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/fedora/rpm/NetworkManager.spec11
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec
index 752bb32a6b..44287da5d5 100644
--- a/contrib/fedora/rpm/NetworkManager.spec
+++ b/contrib/fedora/rpm/NetworkManager.spec
@@ -39,6 +39,8 @@
%global snap %{?snapshot_dot}%{?git_sha_dot}
+%global is_devel_build %(printf '%s' '%{real_version}' | sed -n 's/^1\\.\\([0-9]*[13579]\\)\\..*/1/p')
+
###############################################################################
%bcond_without adsl
@@ -49,7 +51,11 @@
%bcond_without ppp
%bcond_without nmtui
%bcond_without regen_docs
+%if 0%{is_devel_build}
+%bcond_without debug
+%else
%bcond_with debug
+%endif
%bcond_without test
%bcond_with sanitizer
@@ -374,8 +380,11 @@ intltoolize --automake --copy --force
--disable-undefined-sanitizer \
%endif
%if %{with debug}
- --with-more-logging \
+ --enable-more-logging \
--with-more-asserts=10000 \
+%else
+ --disable-more-logging \
+ --without-more-asserts \
%endif
--enable-ld-gc \
--with-libaudit=yes-disabled-by-default \