Skip to content

Commit

Permalink
Add changes for 7_1 openloops to evade ssl trouble
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodozov committed May 3, 2019
1 parent 1109319 commit 172fca7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions openloops.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ BuildRequires: python scons

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

%build
cat << \EOF >> openloops.cfg
Expand All @@ -24,6 +26,11 @@ 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
Expand Down

0 comments on commit 172fca7

Please sign in to comment.