From 402715358322359b43b90a460ea43cce35a0122f Mon Sep 17 00:00:00 2001 From: Martin Sivak Date: Mon, 26 Nov 2012 14:00:47 +0100 Subject: Add PyPI based Source0 to the spec file --- python-di.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python-di.spec b/python-di.spec index 2f1a643..f8d74c9 100644 --- a/python-di.spec +++ b/python-di.spec @@ -13,8 +13,9 @@ URL: http://fedorapeople.org/cgit/msivak/public_git/python-di.git/ # get the current source file using the following two commands # git clone git://fedorapeople.org/home/fedora/msivak/public_git/python-di.git -# cd python-di; git archive --prefix=%{name}-%{version}/ HEAD | gzip -9 >%{name}-%{version}.tar.gz -Source0: %{name}-%{version}.tar.gz +# cd python-di; python setup.py sdist +# it will be in the dist directory +Source0: http://pypi.python.org/packages/source/d/di/di-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #BuildRequires: @@ -29,7 +30,7 @@ without requiring the user to change local variables in his methods. It is intended to be used in unit testing environments. %prep -%setup -q +%setup -q -n di-%{version} %build %{__python} setup.py build -- cgit