diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-08-05 15:17:14 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-08-05 15:17:14 -0300 |
commit | e95863910b8485e4f0b5b8bace4abf9162f7a39a (patch) | |
tree | f6a52bfaa2ad97cdcc1f3a129eab5a99156057e6 | |
parent | 7f39957a5efaffdf67155d2eaba00596c3700640 (diff) | |
download | python-linux-procfs-e95863910b8485e4f0b5b8bace4abf9162f7a39a.tar.gz |
Makefile: Use --prefix in git-archive
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | rpm/SPECS/python-linux-procfs.spec | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -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 |