Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6725 from davidlange6/dl210312
draft hepmc with cmake; cleanup old patches
- Loading branch information
Showing
7 changed files
with
16 additions
and
68 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,31 +1,34 @@ | ||
### RPM external hepmc 2.06.10 | ||
|
||
%define tag d262dcafa9855927846f7b140a4bc3b31667ef03 | ||
%define tag 91c4c217572ac25669e9ad8fdc0111d1d5c82289 | ||
%define branch cms/%{realversion} | ||
Source: git+https://github.com/cms-externals/hepmc.git?obj=%{branch}/%{tag}&export=HepMC-%{realversion}&output=/HepMC-%{realversion}.tgz | ||
|
||
Requires: autotools | ||
BuildRequires: cmake | ||
|
||
%define keep_archives true | ||
%define drop_files %i/share | ||
|
||
%prep | ||
%setup -q -n HepMC-%{realversion} | ||
|
||
F77="$(which gfortran) -fPIC" | ||
CXX="$(which g++) -fPIC" | ||
PLATF_CONFIG_OPTS="--enable-static --disable-shared" | ||
|
||
perl -p -i -e 's|glibtoolize|libtoolize|g' ./bootstrap | ||
%build | ||
|
||
export HEPMC_NODOC=1 | ||
rm -rf ../build | ||
mkdir ../build | ||
cd ../build | ||
|
||
./bootstrap | ||
./configure $PLATF_CONFIG_OPTS --prefix=%{i} --with-momentum=GEV --with-length=MM F77="$F77" CXX="$CXX" | ||
cmake ../HepMC-%{realversion} \ | ||
-DCMAKE_INSTALL_PREFIX=%{i} \ | ||
-DCMAKE_CXX_FLAGS="-fPIC" \ | ||
-DCMAKE_BUILD_TYPE="Release" \ | ||
-Dmomentum:STRING=GEV \ | ||
-Dlength:STRING=MM | ||
|
||
%build | ||
make %makeprocesses | ||
|
||
%install | ||
cd ../build | ||
make install | ||
rm -rf %i/lib/*.so | ||
rm -rf %i/lib/*.la |
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