From e6181fdccff93143e8007c6d399f583c331c2d769b889f27939203452b38182d Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 9 Jun 2017 20:11:20 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cracklib?expand=0&rev=5 --- python-cracklib.spec | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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,-)