Use %autosetup -S git

This commit is contained in:
Petr Lautrbach 2017-02-23 10:54:52 +01:00
parent 12efca860a
commit 442c972d4b

View File

@ -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