Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use coral sources from github/cms-externals #3031

Merged
merged 1 commit into from May 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 8 additions & 22 deletions coral.spec
@@ -1,14 +1,10 @@
### RPM cms coral CORAL_2_3_21
Requires: coral-tool-conf
%define tag dde218d1e2e68404c7b8f6d63d87ac8e508c5d62
%define branch cms/%{realversion}
%define github_user cms-externals

Patch0: coral-2_3_20-macosx
Patch2: coral-CORAL_2_3_20-boost150-fix
Patch3: coral-CORAL_2_3_20-hide-strict-aliasing
Patch4: coral-CORAL_2_3_20-remove-lost-dependencies
Patch5: coral-CORAL_2_3_21-move-to-libuuid
Patch6: coral-CORAL_2_3_21-forever-ttl
Patch7: coral-CORAL_2_3_21-fix-timestamp-sqlite
Patch8: coral-CORAL_2_3_21-fix-timestamp-frontier
Patch9: coral-CORAL_2_3_21-global-mutex-frontier
Requires: coral-tool-conf

%if %(case %{cmsplatf} in (*_aarch64_*) echo 1 ;; (*) echo 0 ;; esac) == 1
%define cmsplatf_aarch64 1
Expand All @@ -27,26 +23,16 @@ Patch9: coral-CORAL_2_3_21-global-mutex-frontier

# Disable building tests, since they bring dependency on cppunit:
%if %isdarwin
%define patchsrc perl -p -i -e 's!(<classpath.*/tests\\+.*>)!!;' config/BuildFile.xml
%define patchsrc2 %patch0 -p1
%define patchsrc2 perl -p -i -e 's!(<classpath.*/tests\\+.*>)!!;' config/BuildFile.xml
%define patchsrc3 %patch0 -p1
%endif

%define patchsrc3 %patch5 -p0
%define patchsrc4 %patch2 -p0
%define patchsrc5 %patch3 -p0
%define patchsrc6 %patch4 -p0
%define patchsrc7 %patch6 -p0
%define patchsrc8 %patch7 -p1
%define patchsrc9 %patch8 -p1
%define patchsrc10 %patch9 -p1

# Drop Oracle interface on ARM machines and POWER machines.
# Oracle does not provide Instant Client for ARMv8 or POWER8.
%if 0%{?cmsplatf_aarch64}%{?cmsplatf_ppc64le}
%define patchsrc2 rm -rf ./src/OracleAccess
%endif

%define source1 cvs://:pserver:anonymous@%{n}.cvs.cern.ch/cvs/%{n}?passwd=Ah<Z&force=1&tag=-r%{cvstag}&module=%{cvssrc}&export=%{srctree}&output=/src.tar.gz

%define source1 git://github.com/%{github_user}/%{n}.git?protocol=https&obj=%{branch}/%{tag}&module=%{cvssrc}&export=%{srctree}&output=/src.tar.gz
## IMPORT scram-project-build
## SUBPACKAGE debug IF %subpackageDebug