| |
@@ -393,3 +393,10 @@
|
| |
%global __find_provides /bin/sh -c "%{?__filter_prov_cmd} %{__deploop P} %{?__filter_from_prov}" \
|
| |
%global __find_requires /bin/sh -c "%{?__filter_req_cmd} %{__deploop R} %{?__filter_from_req}" \
|
| |
}
|
| |
+
|
| |
+ # RPM 4.18+ %%bcond macro backport
|
| |
+ # From https://github.com/rpm-software-management/rpm/pull/1918
|
| |
+ %bcond() %[ (%2)\
|
| |
+ ? "%{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}"\
|
| |
+ : "%{expand:%%{?_with_%{1}:%%global with_%{1} 1}}"\
|
| |
+ ]
|
| |