From c0ce2d3a2a9296ae1f5768179eddd962ee1d1839 Mon Sep 17 00:00:00 2001 From: Mattias Ellert Date: Jan 06 2021 05:04:28 +0000 Subject: Use python3 also for EPEL 7 (following upsteam) --- diff --git a/bdii.spec b/bdii.spec index 9d02f1d..53054a5 100644 --- a/bdii.spec +++ b/bdii.spec @@ -6,7 +6,7 @@ Name: bdii Version: 5.2.26 -Release: 1%{?dist} +Release: 2%{?dist} Summary: The Berkeley Database Information Index (BDII) License: ASL 2.0 @@ -20,6 +20,7 @@ Source3: %{name}-slapd-start Patch0: %{name}-py3.patch BuildArch: noarch BuildRequires: make +BuildRequires: python3-devel %if %{use_systemd} BuildRequires: systemd %endif @@ -64,11 +65,7 @@ differences. This is then used to update the database. make install prefix=%{buildroot} # Don't use /usr/bin/env shebang -%if %{?fedora}%{!?fedora:0} >= 31 || %{?rhel}%{!?rhel:0} >= 8 sed 's!%{_bindir}/env .*!%{__python3}!' -i %{buildroot}%{_sbindir}/bdii-update -%else -sed 's!%{_bindir}/env .*!%{__python2}!' -i %{buildroot}%{_sbindir}/bdii-update -%endif rm -rf %{buildroot}%{_docdir}/%{name} @@ -154,6 +151,9 @@ fi %license COPYRIGHT LICENSE.txt %changelog +* Wed Jan 06 2021 Mattias Ellert - 5.2.26-2 +- Use python3 also for EPEL 7 (following upsteam) + * Tue Dec 01 2020 Mattias Ellert - 5.2.26-1 - Version 5.2.26 - Update python3 patch