From 3fba12b0d237cb29fa32b4586de7bd196f616e21 Mon Sep 17 00:00:00 2001 From: Jussi Laakkonen Date: Tue, 9 Oct 2018 11:27:25 +0300 Subject: [PATCH] build: Remove release from vers req and python define changes. Our OBS does not utilize release in version. Define python3_sitearch and python3_sitelib only if they ares not defined. --- rpm/policycoreutils.spec | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/rpm/policycoreutils.spec b/rpm/policycoreutils.spec index 6e64286..613afcb 100644 --- a/rpm/policycoreutils.spec +++ b/rpm/policycoreutils.spec @@ -20,15 +20,21 @@ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -%global libauditver 2.1.3-4 -%global libsepolver 2.8-1 -%global libsemanagever 2.8-1 -%global libselinuxver 2.8-1 +%global libauditver 2.1.3 +%global libsepolver 2.8 +%global libsemanagever 2.8 +%global libselinuxver 2.8 %global sepolgenver 2.8 %global generatorsdir /lib/systemd/system-generators + +%if ! %{defined python3_sitearch} %define python3_sitearch /%{_libdir}/python3.?/site-packages +%endif + +%if ! %{defined python3_sitelib} %define python3_sitelib /%{_libdir}/python3.?/site-packages +%endif # tools expect several binaries to reside in /sbin. putting them there is easier until we symlink the whole /usr/sbin to /sbin %define _sbindir /sbin