mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
rpm: Build srpms without %dist in their name
On RHEL6, %dist is set for all RPMS and SRPMS built on the system. This
leads to makesrpm.pl building SRPMS with .el6 in their release. As we
endeavour to use the same SRPM on all of our Fedora platforms, this is
less than ideal, so change makesrpm.pl to squash the setting of %dist
before building the RPM.
Reviewed-on: http://gerrit.openafs.org/4285
Reviewed-by: Alexander Ivan Redinger <aredinger@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit b0921071dd
)
Change-Id: I9e5bb2ce13378a0927763535d885a4728bd48f06
Reviewed-on: http://gerrit.openafs.org/4307
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
f8c1bebf88
commit
eb27681021
@ -150,7 +150,8 @@ if ($changelog) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Build an RPM
|
# Build an RPM
|
||||||
system("rpmbuild -bs --define \"_topdir $tmpdir/rpmdir\" ".
|
system("rpmbuild -bs --eval \"%undefine dist\" ".
|
||||||
|
"--define \"_topdir $tmpdir/rpmdir\" ".
|
||||||
"$tmpdir/rpmdir/SPECS/openafs.spec > /dev/null") == 0
|
"$tmpdir/rpmdir/SPECS/openafs.spec > /dev/null") == 0
|
||||||
or die "rpmbuild failed : $!\n";
|
or die "rpmbuild failed : $!\n";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user