forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcollier.spec
More file actions
27 lines (20 loc) · 688 Bytes
/
Copy pathcollier.spec
File metadata and controls
27 lines (20 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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/