diff --git a/setools.spec b/setools.spec index be92185..74fdceb 100644 --- a/setools.spec +++ b/setools.spec @@ -22,7 +22,7 @@ Source2: apol.desktop Obsoletes: setools < 4.0.0, setools-devel < 4.0.0 BuildRequires: flex, bison -BuildRequires: glibc-devel gcc +BuildRequires: glibc-devel, gcc, git BuildRequires: libsepol-devel, libsepol-static BuildRequires: qt5-qtbase-devel BuildRequires: swig @@ -85,7 +85,7 @@ Python modules designed to facilitate SELinux policy analysis. %prep -%setup +%autosetup -p 1 -S git sed -i "s%'-Werror', '-Wextra'%'-Wextra'%" setup.py cp -a ../setools-%{version}%{?setools_pre_ver:-%{setools_pre_ver}} ../setools-%{version}%{?setools_pre_ver:-%{setools_pre_ver}}-python2