Skip to content

Commit 9c41fbf

Browse files
committed
added tinyxml2 tool for cmssw
1 parent bc6bb60 commit 9c41fbf

File tree

4 files changed

+49
-2
lines changed

4 files changed

+49
-2
lines changed

cmssw-tool-conf.spec

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### RPM cms cmssw-tool-conf 44.0
1+
### RPM cms cmssw-tool-conf 45.0
22
## NOCOMPILER
33
# With cmsBuild, change the above version only when a new tool is added
44

@@ -144,6 +144,7 @@ Requires: utm-toolfile
144144
Requires: libffi-toolfile
145145
Requires: CSCTrackFinderEmulation-toolfile
146146
Requires: tinyxml-toolfile
147+
Requires: tinyxml2-toolfile
147148
Requires: scons-toolfile
148149
Requires: md5-toolfile
149150
Requires: gosamcontrib-toolfile

fwlite-tool-conf.spec

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### RPM cms fwlite-tool-conf 10.0
1+
### RPM cms fwlite-tool-conf 11.0
22
## NOCOMPILER
33
# with cmsBuild, change the above version only when a new
44
# tool is added
@@ -43,6 +43,7 @@ Requires: libxml2-toolfile
4343
Requires: llvm-gcc-toolfile
4444
Requires: vdt-toolfile
4545
Requires: tinyxml-toolfile
46+
Requires: tinyxml2-toolfile
4647
Requires: md5-toolfile
4748
Requires: davix-toolfile
4849
Requires: py2-numpy-toolfile

tinyxml2-toolfile.spec

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### RPM external tinyxml2-toolfile 1.0
2+
Requires: tinyxml2
3+
4+
%prep
5+
%build
6+
%install
7+
mkdir -p %i/etc/scram.d
8+
cat << \EOF_TOOLFILE >%i/etc/scram.d/tinyxml2.xml
9+
<tool name="tinyxml2" version="@TOOL_VERSION@">
10+
<info url="https://github.com/leethomason/tinyxml2"/>
11+
<lib name="tinyxml2"/>
12+
<client>
13+
<environment name="TINYXML2_BASE" default="@TOOL_ROOT@"/>
14+
<environment name="LIBDIR" default="$TINYXML2_BASE/lib64"/>
15+
<environment name="INCLUDE" default="$TINYXML2_BASE/include"/>
16+
</client>
17+
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
18+
</tool>
19+
EOF_TOOLFILE
20+
21+
## IMPORT scram-tools-post
22+

tinyxml2.spec

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
### RPM external tinyxml2 6.2.0
2+
Source: https://github.com/leethomason/%{n}/archive/%{realversion}.tar.gz
3+
4+
BuildRequires: gmake cmake
5+
6+
%prep
7+
%setup -n %setup -q -n %{n}-%{realversion}
8+
9+
%build
10+
rm -rf ../build; mkdir ../build ; cd ../build
11+
cmake ../%{n}-%{realversion} \
12+
-DCMAKE_BUILD_TYPE=Release \
13+
-DCMAKE_INSTALL_PREFIX="%{i}"
14+
15+
gmake %{makeprocesses}
16+
17+
%install
18+
cd ../build
19+
gmake %{makeprocesses} install
20+
21+
%post
22+
%{relocateConfig}lib64/pkgconfig/tinyxml2.pc
23+
%{relocateConfig}lib64/cmake/tinyxml2/tinyxml2Targets.cmake

0 commit comments

Comments
 (0)