Skip to content

Commit

Permalink
Merge IB/CMSSW_10_3_X/gcc700 into IB/CMSSW_10_3_X/rootmaster.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsbuild committed Oct 2, 2018
2 parents c098531 + ff8f744 commit 74bdedb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 26 deletions.
3 changes: 2 additions & 1 deletion cuda-toolfile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ cat << \EOF_TOOLFILE >%{i}/etc/scram.d/cuda.xml
<environment name="INCLUDE" default="$CUDA_BASE/include"/>
</client>
<flags CUDA_FLAGS="-gencode arch=compute_35,code=sm_35"/>
<flags CUDA_FLAGS="-gencode arch=compute_50,code=sm_50"/>
<flags CUDA_FLAGS="-gencode arch=compute_61,code=sm_61"/>
<flags CUDA_FLAGS="-gencode arch=compute_70,code=sm_70"/>
<flags CUDA_FLAGS="-O3 -std=c++14 --expt-relaxed-constexpr --expt-extended-lambda"/>
<flags CUDA_FLAGS="--generate-line-info --source-in-ptx"/>
<flags CUDA_HOST_REM_CXXFLAGS="-std=%"/>
<flags CUDA_HOST_REM_CXXFLAGS="%potentially-evaluated-expression"/>
<flags CUDA_HOST_CXXFLAGS="-std=c++14"/>
Expand Down
17 changes: 12 additions & 5 deletions libjpeg-turbo.spec
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
### RPM external libjpeg-turbo 1.3.1
Source: http://heanet.dl.sourceforge.net/project/%{n}/%{realversion}/%{n}-%{realversion}.tar.gz
### RPM external libjpeg-turbo 1.5.3
## INITENV SETV LIBJPEG_TURBO_SOURCE %{source0}
## INITENV SETV LIBJPEG_TURBO_STRIP_PREFIX %{source_prefix}

BuildRequires: nasm
%define source0 https://github.com/libjpeg-turbo/libjpeg-turbo/archive/%{realversion}.tar.gz
%define source_prefix %{n}-%{realversion}
Source: %{source0}

BuildRequires: nasm autotools gmake

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

%build
# Update to get AArch64
# Update to get AArch64
rm -f ./config.{sub,guess}
curl -L -k -s -o ./config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
curl -L -k -s -o ./config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
chmod +x ./config.{sub,guess}

autoreconf -fiv

./configure \
--prefix=%{i} \
--enable-shared \
Expand Down
22 changes: 2 additions & 20 deletions pyqt.spec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ case %cmsos in
;;
esac

echo yes | python ./configure.py --verbose -b %i/bin -d %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages \
echo yes | python ./configure.py --sipdir=%{i}/share/PyQt4 --verbose -b %{i}/bin -d %{i}/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages \
-e %i/include \
`find $QT_ROOT/include/ -type d | xargs -n 1 basename| grep -v include | xargs echo | sed -e 's| | --enable=|g;s|^|--enable=|'`

Expand All @@ -36,23 +36,5 @@ make %makeprocesses
%install
make install

mkdir -p %i/etc/profile.d
cat << \EOF_INIT_ME > %i/etc/profile.d/init-standalone.sh
#!/bin/sh
source @GCC_ROOT@/etc/profile.d/init.sh
source @BZ2LIB_ROOT@/etc/profile.d/init.sh
source @EXPAT_ROOT@/etc/profile.d/init.sh
source @DB4_ROOT@/etc/profile.d/init.sh
source @GDBM_ROOT@/etc/profile.d/init.sh
source @ZLIB_ROOT@/etc/profile.d/init.sh
source @OPENSSL_ROOT@/etc/profile.d/init.sh
source @PYTHON_ROOT@/etc/profile.d/init.sh
source @QT_ROOT@/etc/profile.d/init.sh
source @SIP_ROOT@/etc/profile.d/init.sh
source %i/etc/profile.d/init.sh
EOF_INIT_ME

perl -p -i -e "s|\@([^@]*)\@|\$ENV{\$1}|" %i/etc/profile.d/init-standalone.sh

%post
%{relocateConfig}etc/profile.d/init-standalone.sh
ln -s dependencies-setup.sh $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init-standalone.sh

0 comments on commit 74bdedb

Please sign in to comment.