%global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))") %define modname wget Name: python-%{modname} Version: 2.2 Release: 3.1 Summary: pure python download utility License: unlicense Group: Development/Languages/Python Url: http://bitbucket.org/techtonik/python-wget/ Source: http://pypi.python.org/packages/source/w/%{modname}/%{modname}-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description pure python download utility. %prep %setup -q -n %{modname}-%{version} %build %{__python} setup.py build %install %{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --optimize=2 --record=INSTALLED_FILES %files -f INSTALLED_FILES %defattr(-,root,root,-) %doc README.txt PKG-INFO %changelog * Fri Apr 10 2015 Muhammad Shaban 2.2-1 - Initial build