# $POEM: el6/rpmsrc/py2-ipaddress/trunk/SPECS/py2-ipaddress.spec 267 2018-06-06 02:12:24Z staff7 $ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %global oname py2-ipaddress Name: py2-ipaddress Version: 3.4.1 Release: poem%{?dist} Summary: a Python 2.6 backport of the Python 3.4 ipaddress module Group: Development/Languages License: PSFL URL: https://pypi.org/project/py2-ipaddress/ Source0: https://files.pythonhosted.org/packages/06/f2/ff20f2d2fd4757be329c8ecb81e9e7fa3bec0b65445821e3a575410cf194/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel, python-setuptools %description This is a Python 2.6 backport of the Python 3.4 ipaddress module. Please refer to the official Python 3.4 documentation for more information on the module. %prep %setup -q -n %{oname}-%{version} %build CFLAGS="%{optflags}" %{__python} setup.py build %install %{__rm} -rf %{buildroot} %{__python} setup.py install --skip-build --root="%{buildroot}" --prefix="%{_prefix}" %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc README.rst # For arch-independent packages: sitelib %{python_sitelib}/* %changelog * Wed Jun 06 2018 Yasuhito FUTATSUKI - 3.4.1 - Initial build.