diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-08-21 00:24:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-08-21 00:24:35 +0100 |
| commit | bf5e1fe3137f05c46775c068915c5d7879a93603 (patch) | |
| tree | 45b4b71ef3aaa777873a7c6e619a95b8de7b2002 /cscript | |
| parent | f8832c431b45e81523ec2ef70999e7e613d5001e (diff) | |
Remove some Centos 5 stuff; add some debug for Centos 6 32 packaging.
Diffstat (limited to 'cscript')
| -rw-r--r-- | cscript | 17 |
1 files changed, 4 insertions, 13 deletions
@@ -265,13 +265,8 @@ def make_spec(filename, version, target): print('cd dcpomatic-%s' % version, file=f) print('export PKG_CONFIG_PATH=%s/lib/pkgconfig:%s/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig' % (target.directory, target.directory), file=f) - if target.distro == 'centos' and target.version == '5': - prefix = 'BUILDROOT/usr' - else: - prefix = '%{buildroot}/usr' - - print('CXXFLAGS="-I%s/include" LDFLAGS="-L%s/lib" ./waf configure --prefix=%s --install-prefix=/usr %s' % - (target.directory, target.directory, prefix, configure_options(target)), file=f) + print('CXXFLAGS="-I%s/include" LDFLAGS="-L%s/lib" ./waf configure --prefix=%{buildroot}/usr --install-prefix=/usr %s' % + (target.directory, target.directory, configure_options(target)), file=f) print('./waf', file=f) print('%install', file=f) print('cd dcpomatic-%s' % version, file=f) @@ -379,6 +374,7 @@ def package_debian(target, cpu, version): return debs def package_rpm(target, cpu, version): + print('package_rpm %s %s %s' % (target, cpu, version)) topdir = os.path.realpath('build/rpmbuild') os.makedirs('%s/BUILD' % topdir) os.makedirs('%s/RPMS' % topdir) @@ -394,18 +390,13 @@ def package_rpm(target, cpu, version): make_spec('build/platform/linux/dcpomatic2.spec', version, target) cmd = 'rpmbuild --define "_topdir %s" -bb build/platform/linux/dcpomatic2.spec' % topdir - if target.distro == 'centos' and target.version == '5': - cmd += ' --buildroot %s/BUILD/dcpomatic-%s/BUILDROOT' % (topdir, version) target.command(cmd) rpms = [] if cpu == "amd64": cpu = "x86_64" else: - if target.distro == 'centos' and target.version == '5': - cpu = "i386" - else: - cpu = "i686" + cpu = "i686" print('Looking in %s/RPMS/%s/*.rpm' % (topdir, cpu)) for p in glob.glob('%s/RPMS/%s/*.rpm' % (topdir, cpu)): |
