diff --git a/python-cracklib.spec b/python-cracklib.spec index d4085f0..24dac6f 100644 --- a/python-cracklib.spec +++ b/python-cracklib.spec @@ -31,9 +31,6 @@ BuildRequires: python-rpm-macros BuildRequires: cracklib-devel %python_subpackages -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} - %description This CPython extension provides Python bindings for cracklib. It contains a pythonic interface to cracklib's functions and some Python @@ -43,10 +40,11 @@ convenience functions. %setup -q -n cracklib-%{version} %build -CFLAGS="%{optflags}" %python_build +export CFLAGS="%{optflags}" +%python_build %install -%python_install --skip-build --prefix=%{_prefix} --root=%{buildroot} +%python_install %files %{python_files} %defattr(-,root,root,-)