-
Notifications
You must be signed in to change notification settings - Fork 183
/
coral.spec
30 lines (24 loc) · 1.01 KB
/
coral.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
### RPM cms coral CORAL_2_3_21
%define tag a879b41c994fa956ff0ae78e3410bb409582ad20
%define branch cms/%{realversion}py3
%define github_user cms-externals
Patch0: coral-2_3_20-macosx
Patch1: coral-2_3_21-gcc8
Requires: coral-tool-conf
%define cvssrc %{n}
# Build with debug symbols, and package them in a separate rpm:
%define subpackageDebug yes
# Disable building tests, since they bring dependency on cppunit:
%ifarch darwin
%define patchsrc2 perl -p -i -e 's!(<classpath.*/tests\\+.*>)!!;' config/BuildFile.xml
%define patchsrc3 %patch0 -p1
%endif
# Drop Oracle interface on ARM machines and POWER machines.
# Oracle does not provide Instant Client for ARMv8 or POWER8.
%ifnarch x86_64
%define patchsrc2 rm -rf ./src/OracleAccess
%endif
%define patchsrc4 %patch1 -p1
%define source1 git://github.com/%{github_user}/%{n}.git?protocol=https&obj=%{branch}/%{tag}&module=%{cvssrc}&export=%{srctree}&output=/src.tar.gz
## SUBPACKAGE debug IF %subpackageDebug
## INCLUDE scram-project-build