summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2008-08-05 15:17:14 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2008-08-05 15:17:14 -0300
commite95863910b8485e4f0b5b8bace4abf9162f7a39a (patch)
treef6a52bfaa2ad97cdcc1f3a129eab5a99156057e6
parent7f39957a5efaffdf67155d2eaba00596c3700640 (diff)
downloadpython-linux-procfs-e95863910b8485e4f0b5b8bace4abf9162f7a39a.tar.gz
Makefile: Use --prefix in git-archive
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--Makefile3
-rw-r--r--rpm/SPECS/python-linux-procfs.spec2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 36cd31e..4fddd7b 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,8 @@ rpmdirs:
@[ -d rpm/SOURCES ] || mkdir rpm/SOURCES
bz2: rpmdirs
- git archive --format=tar HEAD | bzip2 -9 > rpm/SOURCES/$(PACKAGE)-$(VERSION).tar.bz2
+ git archive --format=tar --prefix=$(PACKAGE)-$(VERSION)/ HEAD | \
+ bzip2 -9 > rpm/SOURCES/$(PACKAGE)-$(VERSION).tar.bz2
rpm: bz2 rpmdirs
rpmbuild -ba --define "_topdir $(PWD)/rpm" rpm/SPECS/$(PACKAGE).spec
diff --git a/rpm/SPECS/python-linux-procfs.spec b/rpm/SPECS/python-linux-procfs.spec
index 2d688d8..6412c4e 100644
--- a/rpm/SPECS/python-linux-procfs.spec
+++ b/rpm/SPECS/python-linux-procfs.spec
@@ -15,7 +15,7 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Abstractions to extract information from the Linux kernel /proc files.
%prep
-%setup -q -c -n %{name}-%{version}
+%setup -q
%build
%{__python} setup.py build