[giflib] Set LIBVER and LIBMAJOR when installing (#25173)

* Set LIBVER and LIBMAJOR

* Typo fix

* Fix 2

* Fix #3
This commit is contained in:
iarspider 2021-08-01 18:37:31 +02:00 committed by GitHub
parent ab5954520f
commit a9bc118031
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,8 @@ def install_targets(self):
targets = ['install']
if self.spec.satisfies('@5.2.0:'):
targets.append('PREFIX={0}'.format(self.spec.prefix))
targets.append('LIBMAJOR={0}'.format(self.spec.version.up_to(1)))
targets.append('LIBVER={0}'.format(self.spec.version))
return targets