Skip to content

Commit

Permalink
Merge IB/CMSSW_8_1_X/stable into IB/CMSSW_8_1_X/gcc530.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsbuild committed Jul 11, 2016
2 parents 13466fb + 6203033 commit 735a2e3
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmssw-tool-conf.spec
Expand Up @@ -163,6 +163,7 @@ Requires: libffi-toolfile
Requires: CSCTrackFinderEmulation-toolfile
Requires: tinyxml-toolfile
Requires: scons-toolfile
Requires: md5-toolfile

# Only for Linux platform.
%if %islinux
Expand Down
1 change: 1 addition & 0 deletions fwlite-tool-conf.spec
Expand Up @@ -44,6 +44,7 @@ Requires: libxml2-toolfile
Requires: llvm-gcc-toolfile
Requires: vdt-toolfile
Requires: tinyxml-toolfile
Requires: md5-toolfile

%if %isamd64
%if %isslc
Expand Down
20 changes: 20 additions & 0 deletions md5-toolfile.spec
@@ -0,0 +1,20 @@
### RPM external md5-toolfile 1.0
Requires: md5

%prep
%build
%install
mkdir -p %i/etc/scram.d
cat << \EOF_TOOLFILE >%i/etc/scram.d/md5.xml
<tool name="md5" version="@TOOL_VERSION@">
<info url="https://tls.mbed.org/md5-source-code"/>
<lib name="cms-md5"/>
<client>
<environment name="MD5_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$MD5_BASE/lib"/>
<environment name="INCLUDE" default="$MD5_BASE/include"/>
</client>
</tool>
EOF_TOOLFILE

## IMPORT scram-tools-post
23 changes: 23 additions & 0 deletions md5.spec
@@ -0,0 +1,23 @@
### RPM external md5 1.0.0
%define tag d97a571864a119cd5408d2670d095b4410e926cc
%define branch cms/1.0.0
%define github_user cms-externals
%define isdarwin %(case %{cmsos} in (osx*) echo 1 ;; (*) echo 0 ;; esac)
Source: git+https://github.com/%github_user/%{n}.git?obj=%{branch}/%{tag}&export=%{n}.%{realversion}&output=/%{n}.%{realversion}-%{tag}.tgz

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

%build

%if %isdarwin
gcc md5.c -shared -fPIC -o libcms-md5.dylib
%else
gcc md5.c -shared -fPIC -o libcms-md5.so
%endif

%install

mkdir %{i}/{lib,include}
cp libcms-md5.* %{i}/lib/
cp md5.h %{i}/include/

0 comments on commit 735a2e3

Please sign in to comment.