Skip to content

Commit

Permalink
Merge pull request #4821 from SiewYan/backport-sherpa71X
Browse files Browse the repository at this point in the history
backporting sherpa2.2.6 and openloops2.0.0 to 71X
  • Loading branch information
cmsbuild committed May 7, 2019
2 parents ff89dcf + 172fca7 commit 0bed3e7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
23 changes: 15 additions & 8 deletions openloops.spec
@@ -1,31 +1,38 @@
### RPM external openloops 2.0.b
%define tag 0f0826bd718dc28dcc8a457acb59de678b011b96
### RPM external openloops 2.0.0
%define tag df5dc23c322dd460c4f8f3cdfa331bb190c647f6
%define branch cms/v%{realversion}
%define github_user cms-externals

Source: git+https://github.com/%github_user/openloops.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz

BuildRequires: python scons

Patch0: openloops-1.2.3-cpp-use-undef

%define keep_archives true

%prep
%setup -n %{n}-%{realversion}
#%patch0 -p1
#change the repo from remote to local files
sed -i -e 's|http:/|%{_builddir}/localrepo|' pyol/config/default.cfg

%build
cat << \EOF >> openloops.cfg
[OpenLoops]
fortran_compiler = gfortran
gfortran_f90_flags = -ffixed-line-length-0 -ffree-line-length-0 -O0
gfortran_f90_flags = -ffixed-line-length-0 -ffree-line-length-0
generic_optimisation = -O2
born_optimisation = -O2
loop_optimisation = -O0
generic_optimisation = -O0
born_optimisation = -O0
link_optimisation = -O2
EOF

./openloops update --processes generator=0

#get remote repo data locally, for 7_1 urllib2.urlopen uses ssl version which fails the communication with the server
wget -r -np --reject "index.html*" https://www.physik.uzh.ch/data/openloops/repositories/public/processes/ -P %{_builddir}/localrepo
wget -r -np --reject "index.html*" https://www.physik.uzh.ch/data/openloops/repositories/public/collections/ -P %{_builddir}/localrepo
#build the libs
./openloops libinstall all.coll

%install
mkdir %i/{lib,proclib}
cp lib/*.so %i/lib
Expand Down
8 changes: 4 additions & 4 deletions sherpa.spec
@@ -1,5 +1,5 @@
### RPM external sherpa 2.2.5
%define tag 600078cc741021be898f15563235cf6c809ca5ff
### RPM external sherpa 2.2.6
%define tag ea0b6f6f50f77d2f7479ba81d0715e23b69eabee
%define branch cms/v%realversion
%define github_user cms-externals
Source: git+https://github.com/%github_user/%{n}.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz
Expand All @@ -17,7 +17,7 @@ Requires: openloops

%prep
%setup -q -n %{n}-%{realversion}

sed -i -e 's|^\s*Manual \s*\\$|\\|' Makefile.am
autoreconf -i --force

# Force architecture based on %%cmsplatf
Expand Down Expand Up @@ -50,7 +50,7 @@ esac
MPICXX="mpicxx" \
FC="mpifort" \
CXXFLAGS="-fuse-cxa-atexit $ARCH_CMSPLATF -O2 -std=c++0x -I$LHAPDF_ROOT/include -I$BLACKHAT_ROOT/include -I$OPENSSL_ROOT/include" \
LDFLAGS="-ldl -L$BLACKHAT_ROOT/lib/blackhat -L$QD_ROOT/lib -L$OPENSSL_ROOT/lib"
LDFLAGS="-ldl -L$BLACKHAT_ROOT/lib/blackhat -L$QD_ROOT/lib -L$OPENSSL_ROOT/lib" MAKEINFO=true

make %{makeprocesses}

Expand Down

0 comments on commit 0bed3e7

Please sign in to comment.