summaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2006-06-09 21:18:37 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2006-06-09 21:18:37 +0000
commit8e4bda871fc8fcbd944fb0cee7d8481a06648ca3 (patch)
treef754a219a4995793dd4fce8c37220436f5b6d936 /Makefile.PL
parent50033df4bc6e98b51717726310c3b349e25211a5 (diff)
downloadperl-MDV-Distribconf-8e4bda871fc8fcbd944fb0cee7d8481a06648ca3.tar
perl-MDV-Distribconf-8e4bda871fc8fcbd944fb0cee7d8481a06648ca3.tar.gz
perl-MDV-Distribconf-8e4bda871fc8fcbd944fb0cee7d8481a06648ca3.tar.bz2
perl-MDV-Distribconf-8e4bda871fc8fcbd944fb0cee7d8481a06648ca3.tar.xz
perl-MDV-Distribconf-8e4bda871fc8fcbd944fb0cee7d8481a06648ca3.zip
- avoid copy of source and spec into %_topdir
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
}