Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hepmc: disable documentation
Add new option controlled via environment varibale $HEPMC_NODOC and
disable documentation.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
  • Loading branch information
David Abdurachmanov authored and David Abdurachmanov committed Dec 15, 2015
1 parent 3524312 commit cef729c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions HepMC-2.06.07-nodoc.patch
@@ -0,0 +1,13 @@
diff --git a/bootstrap b/bootstrap
index 837aa4e..d848bff 100755
--- a/bootstrap
+++ b/bootstrap
@@ -29,7 +29,7 @@ autoconf

# To avoid confusing people with failures in the documentation build,
# build documents during the bootstrap process.
-if [ $OSname != "Cygwin" ]; then
+if [ $OSname != "Cygwin" ] && [ -z "$HEPMC_NODOC" ]; then
cd doc; ./buildDoc.sh
fi

6 changes: 6 additions & 0 deletions hepmc.spec
Expand Up @@ -2,6 +2,8 @@
Source: http://lcgapp.cern.ch/project/simu/HepMC/download/HepMC-%realversion.tar.gz
Patch0: hepmc-2.03.06-reflex
Patch1: hepmc-2.06.07-WeightContainer-fix-size_type
Patch2: HepMC-2.06.07-nodoc

Requires: autotools

%define keep_archives true
Expand All @@ -19,12 +21,16 @@ Requires: autotools
%setup -q -n HepMC-%{realversion}
%patch0 -p0
%patch1 -p1
%patch2 -p1

F77="$(which gfortran) -fPIC"
CXX="$(which %{cms_cxx}) -fPIC"
PLATF_CONFIG_OPTS="--enable-static --disable-shared"

perl -p -i -e 's|glibtoolize|libtoolize|g' ./bootstrap

export HEPMC_NODOC=1

./bootstrap
./configure $PLATF_CONFIG_OPTS --prefix=%{i} --with-momentum=GEV --with-length=MM F77="$F77" CXX="$CXX" CXXFLAGS="%cms_cxxflags"

Expand Down

0 comments on commit cef729c

Please sign in to comment.