Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added tinyxml2 tool for cmssw #4312

Merged
merged 1 commit into from
Sep 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmssw-tool-conf.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM cms cmssw-tool-conf 44.0
### RPM cms cmssw-tool-conf 45.0
## NOCOMPILER
# With cmsBuild, change the above version only when a new tool is added

Expand Down Expand Up @@ -144,6 +144,7 @@ Requires: utm-toolfile
Requires: libffi-toolfile
Requires: CSCTrackFinderEmulation-toolfile
Requires: tinyxml-toolfile
Requires: tinyxml2-toolfile
Requires: scons-toolfile
Requires: md5-toolfile
Requires: gosamcontrib-toolfile
Expand Down
3 changes: 2 additions & 1 deletion fwlite-tool-conf.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM cms fwlite-tool-conf 10.0
### RPM cms fwlite-tool-conf 11.0
## NOCOMPILER
# with cmsBuild, change the above version only when a new
# tool is added
Expand Down Expand Up @@ -43,6 +43,7 @@ Requires: libxml2-toolfile
Requires: llvm-gcc-toolfile
Requires: vdt-toolfile
Requires: tinyxml-toolfile
Requires: tinyxml2-toolfile
Requires: md5-toolfile
Requires: davix-toolfile
Requires: py2-numpy-toolfile
Expand Down
22 changes: 22 additions & 0 deletions tinyxml2-toolfile.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### RPM external tinyxml2-toolfile 1.0
Requires: tinyxml2

%prep
%build
%install
mkdir -p %i/etc/scram.d
cat << \EOF_TOOLFILE >%i/etc/scram.d/tinyxml2.xml
<tool name="tinyxml2" version="@TOOL_VERSION@">
<info url="https://github.com/leethomason/tinyxml2"/>
<lib name="tinyxml2"/>
<client>
<environment name="TINYXML2_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$TINYXML2_BASE/lib64"/>
<environment name="INCLUDE" default="$TINYXML2_BASE/include"/>
</client>
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
</tool>
EOF_TOOLFILE

## IMPORT scram-tools-post

23 changes: 23 additions & 0 deletions tinyxml2.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### RPM external tinyxml2 6.2.0
Source: https://github.com/leethomason/%{n}/archive/%{realversion}.tar.gz

BuildRequires: gmake cmake

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

%build
rm -rf ../build; mkdir ../build ; cd ../build
cmake ../%{n}-%{realversion} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="%{i}"

gmake %{makeprocesses}

%install
cd ../build
gmake %{makeprocesses} install

%post
%{relocateConfig}lib64/pkgconfig/tinyxml2.pc
%{relocateConfig}lib64/cmake/tinyxml2/tinyxml2Targets.cmake