forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmssw.spec
executable file
·39 lines (29 loc) · 1.63 KB
/
cmssw.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
### RPM cms cmssw CMSSW_7_0_0_pre0
Requires: cmssw-tool-conf python cms-git-tools
%define runGlimpse yes
%define useCmsTC yes
%define saveDeps yes
%define branch CMSSW_7_0_X
%if "%(case %realversion in (*_COVERAGE_X*) echo true ;; (*) echo false ;; esac)" == "true"
%define branch %(echo %realversion | sed -e 's|_COVERAGE_X.*|_X|')
%define usercxxflags -fprofile-arcs -ftest-coverage
%endif
%if "%(case %realversion in (*_EXPERIMENTAL_X*) echo true ;; (*) echo false ;; esac)" == "true"
%define branch %(echo %realversion | sed -e 's|_EXPERIMENTAL_X.*|_X|')
%define usercxxflags -O3 -ffast-math -freciprocal-math -fipa-pta
%endif
%if "%(case %realversion in (*_FORTIFIED_X*) echo true ;; (*) echo false ;; esac)" == "true"
%define usercxxflags -fexceptions -fstack-protector-all --param=ssp-buffer-size=4
%endif
%if "%(case %realversion in (*_ICC_X*) echo true ;; (*) echo false ;; esac)" == "true"
%define preBuildCommand scram setup icc-cxxcompiler ; scram setup icc-f77compiler ; scram setup icc-ccompiler ; export COMPILER=icc
%endif
%if "%(case %realversion in (*_BOOSTIO_X*) echo true ;; (*) echo false ;; esac)" == "true"
%define branch %(echo %realversion | sed -e 's|_X.*|_X|')
%define preBuildCommand scram setup boost_serialization; scram setup boost_iostreams
%endif
%if "%(case %realversion in (*_THREADED_X*) echo true ;; (*) echo false ;; esac)" == "true"
%define branch %(echo %realversion | sed -e 's|_X.*|_X|')
%endif
%define source1 git://github.com/cms-sw/cmssw.git?protocol=https&obj=%{branch}/%{realversion}&module=%{cvssrc}&export=%{srctree}&output=/src.tar.gz
## IMPORT scram-project-build