%bcond_without python3 # CPython 3.x module
%bcond_without doc # documentation
-%define module pygit2
+%define module pygit2
+%define egg_name pygit2
+%define pypi_name pygit2
Summary: Python 2.x bindings for libgit2 library
Summary(pl.UTF-8): Wiązania Pythona 2.x do biblioteki libgit2
Name: python-%{module}
License: GPL v2 with linking exception
Group: Libraries/Python
#Source0Download: https://pypi.python.org/simple/pygit2/
-Source0: https://pypi.python.org/packages/29/fb/fd98403ed4ec5554ed4f6de3719d2c672ca2518598061ff7231301ff864b/%{module}-%{version}.tar.gz
+Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
# Source0-md5: 6feb3a5539e8ce1c251cef4401478060
Patch0: %{name}-docbuild.patch
URL: https://pypi.python.org/pypi/pygit2