rpm: update spec file for new build locations

Summary: Update RPM spec file to refer to the new locations.

Test Plan: Build an RPM (once @phillco's changes are in).

Reviewers: phillco, quark, #mercurial

Reviewed By: quark

Subscribers: quark

Differential Revision: https://phabricator.intern.facebook.com/D6699351

Tasks: T24908724

Signature: 6699351:1515632202:96f72e961f3bc5d501cb6fb1a945949e220b970b
This commit is contained in:
Mark Thomas 2018-01-10 17:05:49 -08:00
parent 05a517b2d1
commit 88ed13464d

View File

@ -1275,11 +1275,11 @@ rustextmodules = [
),
]
# replace '@RELEASE@' with the RELEASE environment variable
# replace '@RELEASE@' with the FB_RELEASE environment variable
reporoot = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(reporoot, 'hgext', 'moreversion.pyt'), 'r') as src:
with open(os.path.join(reporoot, 'hgext', 'moreversion.py'), 'w') as dest:
release = os.environ.get('RELEASE', 'UNKNOWN-RELEASE')
release = os.environ.get('FB_RELEASE', 'UNKNOWN-RELEASE')
dest.write(src.read().replace('@RELEASE@', release))
# If the Subversion SWIG bindings aren't present, require Subvertpy