From e39c25d14646281266d1a486122a7f923e9f798a Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Thu, 23 Feb 2017 18:25:10 +0100 Subject: [PATCH] make the package build on EPEL-6 and EPEL-7 --- file.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/file.spec b/file.spec index 964257f..cc3a0ed 100644 --- a/file.spec +++ b/file.spec @@ -1,4 +1,4 @@ -%global with_python3 0%{?fedora} || 0%{?rhel} >= 7 +%global with_python3 0%{?fedora} || 0%{?rhel} > 7 Summary: A utility for determining file types Name: file @@ -54,6 +54,9 @@ necessary for developing programs using libmagic. Summary: Python 2 bindings for the libmagic API Group: Development/Libraries BuildRequires: python2-devel +%if 0%{?rhel} && 0%{?rhel} <= 7 +BuildRequires: python-setuptools +%endif BuildArch: noarch Requires: %{name} = %{version}-%{release} @@ -186,6 +189,7 @@ cd %{py3dir} %changelog * Thu Feb 23 2017 Kamil Dudka - 5.30-5 +- make the package build on EPEL-6 and EPEL-7 - drup undocumented override of the __libtoolize RPM macro - drop undocumented non-upstream file-5.24-varied.patch - drop undocumented non-upstream file-5.22-awk-perl.patch