From 64246a351c9f30d92e0e1ed0c7507700ce683bb7 Mon Sep 17 00:00:00 2001 From: ijaz Date: Mon, 4 Jul 2016 10:34:11 +0200 Subject: [PATCH 1/3] adds spec files for md5 external --- cmssw-tool-conf.spec | 1 + md5-toolfile.spec | 20 ++++++++++++++++++++ md5.spec | 23 +++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 md5-toolfile.spec create mode 100644 md5.spec diff --git a/cmssw-tool-conf.spec b/cmssw-tool-conf.spec index d0671e39385..3d1a77c4e34 100644 --- a/cmssw-tool-conf.spec +++ b/cmssw-tool-conf.spec @@ -159,6 +159,7 @@ Requires: libffi-toolfile Requires: CSCTrackFinderEmulation-toolfile Requires: tinyxml-toolfile Requires: scons-toolfile +Requires: md5-toolfile # Only for Linux platform. %if %islinux diff --git a/md5-toolfile.spec b/md5-toolfile.spec new file mode 100644 index 00000000000..85d76b208ca --- /dev/null +++ b/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 + + + + + + + + + +EOF_TOOLFILE + +## IMPORT scram-tools-post diff --git a/md5.spec b/md5.spec new file mode 100644 index 00000000000..819609f7484 --- /dev/null +++ b/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/ From 602a1e401f7bc345d80b8a389db337c60ba28a9c Mon Sep 17 00:00:00 2001 From: ijaz Date: Thu, 7 Jul 2016 10:47:25 +0200 Subject: [PATCH 2/3] adds md5 for fwlite to use --- fwlite-tool-conf.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/fwlite-tool-conf.spec b/fwlite-tool-conf.spec index 7af159663a7..7470d881ad3 100644 --- a/fwlite-tool-conf.spec +++ b/fwlite-tool-conf.spec @@ -43,6 +43,7 @@ Requires: zlib-toolfile Requires: libxml2-toolfile Requires: llvm-gcc-toolfile Requires: vdt-toolfile +Requires: md5-toolfile %if %isamd64 %if %islinux From f3158a3934669135797f9c1eebabedc74c973d0f Mon Sep 17 00:00:00 2001 From: ijaz Date: Thu, 7 Jul 2016 11:00:20 +0200 Subject: [PATCH 3/3] updates fwlite to use md5 external --- fwlite-tool-conf.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/fwlite-tool-conf.spec b/fwlite-tool-conf.spec index 7470d881ad3..3d460ceb205 100644 --- a/fwlite-tool-conf.spec +++ b/fwlite-tool-conf.spec @@ -43,6 +43,7 @@ Requires: zlib-toolfile Requires: libxml2-toolfile Requires: llvm-gcc-toolfile Requires: vdt-toolfile +Requires: tinyxml-toolfile Requires: md5-toolfile %if %isamd64