forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathigprof.spec
21 lines (19 loc) · 874 Bytes
/
igprof.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
### RPM external igprof 5.9.10
%define git_repo ktf
%define git_branch master
%define git_commit v%{realversion}
Source0: git://github.com/ktf/igprof.git?obj=%{git_branch}/%{git_commit}&export=igprof-%{git_commit}&output=/igprof-%{git_commit}.tgz
#Source0: git:/build/eulisse/ext/CMSSW_7_0_X/20131011_1816/igprof/.git?obj=master/%{git_commit}&export=igprof-%{git_commit}&output=/igprof-%{git_commit}.tgz
Requires: pcre
BuildRequires: cmake libunwind libatomic_ops
%prep
%setup -T -b 0 -n igprof-%{git_commit}
%build
mkdir -p %i
rsync -av $LIBUNWIND_ROOT/ %i/
rsync -av $LIBATOMIC_OPS_ROOT/ %i/
cmake -DCMAKE_INSTALL_PREFIX=%i -DPCRE_INCLUDE_DIR=$PCRE_ROOT/include -DPCRE_LIBRARY=$PCRE_ROOT/lib/libpcre.so -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-I%i/include -I$PCRE_ROOT/include -g -O3" .
make %makeprocesses
%install
make %makeprocesses install
%define drop_files %i/share/man