forked from pool/python-cracklib
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cracklib?expand=0&rev=5
This commit is contained in:
@@ -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,-)
|
||||
|
||||
Reference in New Issue
Block a user