15
0

Accepting request 501737 from home:DocB:branches:devel:languages:python

singlespec version

OBS-URL: https://build.opensuse.org/request/show/501737
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cracklib?expand=0&rev=4
This commit is contained in:
Todd R
2017-06-09 20:10:41 +00:00
committed by Git OBS Bridge
parent 2b7213e202
commit b2169971f7
2 changed files with 14 additions and 8 deletions

View File

@@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cracklib
Version: 2.9.3
Release: 0
@@ -24,12 +25,12 @@ License: GPL-2.0+
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/c/cracklib/cracklib-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRequires: cracklib-devel
%if 0%{?suse_version}
%py_requires
%endif
%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)")}
@@ -42,12 +43,12 @@ convenience functions.
%setup -q -n cracklib-%{version}
%build
CFLAGS="%{optflags}" python setup.py build
CFLAGS="%{optflags}" %python_build
%install
%{__python} setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
%python_install --skip-build --prefix=%{_prefix} --root=%{buildroot}
%files
%files %{python_files}
%defattr(-,root,root,-)
%{python_sitearch}/*