Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge IB/CMSSW_8_1_X/stable into IB/CMSSW_8_1_X/gcc530.
- Loading branch information
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ |