summaryrefslogtreecommitdiffstats
path: root/python-di.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-di.spec')
-rw-r--r--python-di.spec7
1 files 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