-
Notifications
You must be signed in to change notification settings - Fork 183
/
bootstrap-driver.spec
82 lines (72 loc) · 2.87 KB
/
bootstrap-driver.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
### RPM external bootstrap-driver 40.0
## NOCOMPILER
Requires: rpm
BuildRequires: cms-common fakesystem
#danger! cms-common version is now hardwired below (and in bootstrap.file)
%prep
%build
%install
packageList=""
echo requiredtools `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'`
for tool in `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'`
do
case X$tool in
Xdistcc|Xccache )
;;
* )
toolcap=`echo $tool | tr a-z- A-Z_`
toolversion=$(eval echo $`echo ${toolcap}_VERSION`)
toolrevision=$(eval echo $`echo ${toolcap}_REVISION`)
echo $toolversion $toolrevision
packageList="$packageList external+${tool}+${toolversion}-1-${toolrevision}.%cmsplatf.rpm"
;;
esac
done
additionalProvides=""
##############################
# Packages to seed for runtime
##############################
platformSeeds="bash tcsh perl bzip2-libs glibc nspr nss nss-util popt zlib glibc-devel openssl openssl-devel openssl-libs krb5-libs
libcom_err libX11 libXext libXft libXpm libglvnd-glx libglvnd-opengl mesa-libGLU"
# Needed by python runtime
platformSeeds+=" readline ncurses-libs tcl tk"
# Seed packages which provides these
packagesWithProvides="/usr/bin/python3 /usr/bin/perl /usr/bin/env /usr/bin/uname"
##############################
#Packages to seed for build
##############################
platformBuildSeeds="git patch make zip unzip bzip2 java-1.8.0-openjdk-devel libcom_err-devel which libXpm-devel libXft-devel mesa-libGLU-devel rsync"
#Needed by autotools,go and lcov
#platformBuildSeeds+=" perl-Carp perl-Data-Dumper perl-Digest-MD5 perl-Exporter perl-File-Path perl-File-Temp perl-Getopt-Long perl-PathTools perl-Text-ParseWords perl-constant"
#needed by python build
platformBuildSeeds+=" readline-devel ncurses-devel tcl-devel tk-devel"
packagesWithBuildProvides=""
%ifnarch aarch64
# Needed by oracle
platformSeeds+=" libaio"
%endif
%if "%{rhel}" != "7"
platformSeeds+=" libxcrypt perl-libs"
%endif
platformSeeds+=" %{?rhel:libgcc}"
%if 0%{?fedora:1}
platformSeeds+=" libgcc libstdc++ elfutils-libelf libgfortran"
#Needed by millepede
platformSeeds+=" libgomp"
#Needed by gdb
platformSeeds+=" elfutils-debuginfod-client gmp mpfr"
%endif
defaultPkgs="cms+cms-common+1.0 cms+fakesystem+1.0"
mkdir -p %{i}/etc/profile.d
(echo "rpm_version=$RPM_VERSION"; \
echo "platformSeeds=\"\""; \
echo "unsupportedSeeds=\"\""; \
echo "%{cmsos}_platformSeeds=\"$platformSeeds\""; \
echo "%{cmsos}_platformBuildSeeds=\"$platformBuildSeeds\""; \
echo "%{cmsos}_packagesWithProvides=\"$packagesWithProvides\""; \
echo "%{cmsos}_packagesWithBuildProvides=\"$packagesWithBuildProvides\""; \
echo "packageList=\"$packageList\""; \
echo "additionalProvides=\"$additionalProvides\""; \
echo "defaultPkgs=\"$defaultPkgs\""; \
) > %{i}/%{cmsplatf}-driver.txt
cp %{i}/%{cmsplatf}-driver.txt %{i}/%{cmsplatf}-driver-comp.txt