aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2004-01-05 22:09:27 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2004-01-05 22:09:27 +0000
commitb89adb3b3530751485984d08f1c2771593d3b79e (patch)
tree2bba8ec325f53dee3f8b1069f18322bf5619fd42
parent7574e2a44235fa15099a636797c93fb11fb1620d (diff)
downloadrpmtools-b89adb3b3530751485984d08f1c2771593d3b79e.tar
rpmtools-b89adb3b3530751485984d08f1c2771593d3b79e.tar.gz
rpmtools-b89adb3b3530751485984d08f1c2771593d3b79e.tar.bz2
rpmtools-b89adb3b3530751485984d08f1c2771593d3b79e.tar.xz
rpmtools-b89adb3b3530751485984d08f1c2771593d3b79e.zip
use %_topdir instead /home/users/olivier
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 171ee8e..188d6f4 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ ALL_STATIC = $(FROMC_STATIC) $(FROMCC_STATIC)
CFLAGS = -Wall -g
LIBRPM = -lrpm -lrpmio `perl -e 'local $$_ = qx(rpm -q --qf %{VERSION} rpm); /^4\.0\s*$$/ or print "-lrpmdb"'` -lz -lbz2 -I/usr/include/rpm -lpopt
LIBRPM_STATIC =
-RPM=$(HOME)/rpm
+RPM = `rpm --eval %_topdir`
all: $(ALL)
echo $(INSTALLVENDORLIB)
@@ -45,7 +45,7 @@ dis: clean
bzip2 -9f ../$(NAME)-$(VERSION).tar
rm -rf $(NAME)-$(VERSION)
-rpm: dis ../$(NAME)-$(VERSION).tar.bz2 $(RPM)
+rpm: dis ../$(NAME)-$(VERSION).tar.bz2
cp -f ../$(NAME)-$(VERSION).tar.bz2 $(RPM)/SOURCES
cp -f $(NAME).spec $(RPM)/SPECS/
-rpmbuild -ba --clean --rmsource $(NAME).spec