-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Collier package and use ninja from gosamcontrib for madgraph (to …
…reduce impact of HEPForge downtime)
- Loading branch information
1 parent
c473883
commit 1ff04f2
Showing
4 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
### RPM external collier 1.2.8 | ||
# Source: http://www.hepforge.org/archive/collier/%{n}-%{realversion}.tar.gz | ||
Source: https://cmsrep.cern.ch/cmssw/download/collier/%{realversion}/%{n}-%{realversion}.tar.gz | ||
BuildRequires: gmake cmake | ||
|
||
%define keep_archives true | ||
|
||
%prep | ||
%setup -q -n COLLIER-%{realversion} | ||
sed -i 's;add_definitions(-Dcollierdd -DSING);add_definitions(-Dcollierdd -DSING -fPIC);g' ./CMakeLists.txt | ||
|
||
%build | ||
rm -rf build && mkdir build && cd build | ||
cmake ../ \ | ||
-DCMAKE_INSTALL_PREFIX=%{i} \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-Dstatic=ON \ | ||
-DCMAKE_Fortran_FLAGS=-fPIC | ||
|
||
make -j1 | ||
|
||
%install | ||
mkdir -p %{i}/lib %{i}/include | ||
cp libcollier.a %{i}/lib | ||
cp modules/*.mod %{i}/include/ |
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
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