%global modname dopy Name: python-dopy Version: 0.2.2 Release: 3%{?dist} Summary: Python client for the Digital Ocean API Group: Development/Libraries License: MIT URL: http://pypi.python.org/pypi/dopy Source0: https://pypi.python.org/packages/source/d/%{modname}/%{modname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-requests Requires: python-requests %description Digital Ocean API Python Wrapper %prep %setup -q -n %{modname}-%{version} # Remove any shebangs for lib in %{modname}/*.py; do sed '1{/^#!.*/d}' $lib > $lib.new && \ touch -r $lib $lib.new && \ mv $lib.new $lib done # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root=%{buildroot} %files %doc README.rst LICENSE CHANGES %{python_sitelib}/%{modname}/ %{python_sitelib}/%{modname}-%{version}* %changelog * Fri Oct 18 2013 Ralph Bean - 0.2.2-3 - Correctly remove shebangs this time. - Include docs. * Thu Oct 17 2013 Ralph Bean - 0.2.2-2 - Add buildreq on python-setuptools. - Remove shebangs from lib files. * Wed Oct 16 2013 Ralph Bean - 0.2.2-1 - initial package for Fedora