summaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.PL')
-rw-r--r--Makefile.PL8
1 files changed, 2 insertions, 6 deletions
diff --git a/Makefile.PL b/Makefile.PL
index f4f95cd..f307990 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -14,8 +14,6 @@ unless (defined $rpm_path) {
}
}
}
-my $rpmtopdir = $rpm_path ? `$rpm_path --eval '%{_topdir}'` : '';
-chomp $rpmtopdir;
sub MY::postamble {
<<MAKE;
@@ -26,15 +24,13 @@ ChangeLog: ../common/username
rm -f *.bak
rpmdist: dist
- cp -f perl-MDV-Distribconf.spec $rpmtopdir/SPECS
bzme MDV-Distribconf-*.tar.gz
- mv -f MDV-Distribconf-*.tar.bz2 $rpmtopdir/SOURCES
srpm: rpmdist
- rpmbuild -bs --clean --rmsource $rpmtopdir/SPECS/perl-MDV-Distribconf.spec
+ rpmbuild -bs --clean --rmsource perl-MDV-Distribconf.spec --define "_sourcedir `pwd`"
rpm: rpmdist
- rpmbuild -ba --clean --rmsource $rpmtopdir/SPECS/perl-MDV-Distribconf.spec
+ rpmbuild -ba --clean --rmsource perl-MDV-Distribconf.spec --define "_sourcedir `pwd`"
MAKE
}