Skip to content
Browse files

When building an RPM package, use rpmbuild(1) instead of rpm(1), since

the latter does not work with RPM 4.1.x. rpmbuild(1) works with
both RPM 4.0.x and RPM 4.1.x
Submitted by:   Shantonu Sen <>

git-svn-id: d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Shantonu Sen
Shantonu Sen committed Jan 7, 2004
1 parent b7860b4 commit aa1008c1873b3384beda970877d6d76b68f026d6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/port1.0/portrpmpackage.tcl
@@ -103,7 +103,7 @@ proc rpmpackage_pkg {portname portversion portrevision} {
system "cd '${destpath}' && find . ! -type d | grep -v /etc/ | sed -e 's/\"/\\\"/g' -e 's/^./\"/' -e 's/$/\"/' >> '${workpath}/${portname}.filelist'"
system "cd '${destpath}' && find . ! -type d | grep /etc/ | sed -e 's/\"/\\\"/g' -e 's/^./%config \"/' -e 's/$/\"/' >> '${workpath}/${portname}.filelist'"
write_spec ${specpath} $portname $portversion $portrevision $pkg_description $pkg_long_description $category $maintainer $destpath $dependencies $epoch
system "DP_USERECEIPTS='${portdbpath}/receipts' rpm -bb -v ${rpmdestpath} ${specpath}"
system "DP_USERECEIPTS='${portdbpath}/receipts' rpmbuild -bb -v ${rpmdestpath} ${specpath}"

return 0

0 comments on commit aa1008c

Please sign in to comment.
You can’t perform that action at this time.