diff options
author | Martin Sivak <msivak@redhat.com> | 2012-11-26 14:00:47 +0100 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2012-11-26 14:00:47 +0100 |
commit | 402715358322359b43b90a460ea43cce35a0122f (patch) | |
tree | 82eafd5068cb9745cf9ab2f243e4ac5cf361ca95 | |
parent | be59cb8732208811c9b91cf799197f5dc2908ec5 (diff) | |
download | python-di-402715358322359b43b90a460ea43cce35a0122f.tar.gz python-di-402715358322359b43b90a460ea43cce35a0122f.tar.xz python-di-402715358322359b43b90a460ea43cce35a0122f.zip |
Add PyPI based Source0 to the spec file
-rw-r--r-- | python-di.spec | 7 |
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 |