diff --git a/pyparted.spec b/pyparted.spec index 6a2d2c0..eeb7895 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -86,9 +86,9 @@ partition tables. This package provides Python 3 bindings for parted. %setup -q %if %{with python3} -rm -rf %{py3dir} -mkdir -p %{py3dir} -cp -a . %{py3dir} +everything=$(ls) +mkdir -p py3dir +cp -a $everything py3dir %endif %build @@ -97,7 +97,7 @@ PYTHON=python2 make %{?_smp_mflags} %endif %if %{with python3} -pushd %{py3dir} +pushd py3dir PYTHON=python3 make %{?_smp_mflags} popd %endif @@ -108,7 +108,7 @@ PYTHON=python2 make test %endif %if %{with python3} -pushd %{py3dir} +pushd py3dir PYTHON=python3 make test popd %endif @@ -119,7 +119,7 @@ PYTHON=python2 make install DESTDIR=%{buildroot} %endif %if %{with python3} -pushd %{py3dir} +pushd py3dir PYTHON=python3 make install DESTDIR=%{buildroot} popd %endif