15
0
Todd R
2017-06-09 20:11:20 +00:00
committed by Git OBS Bridge
parent b2169971f7
commit e6181fdccf

View File

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