forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathc-blosc2.spec
More file actions
31 lines (26 loc) · 777 Bytes
/
Copy pathc-blosc2.spec
File metadata and controls
31 lines (26 loc) · 777 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
26
27
28
29
30
31
### RPM external c-blosc2 2.20.0
Source: https://github.com/Blosc/c-blosc2/archive/refs/tags/v%{realversion}.tar.gz
Requires: zlib zstd lz4
BuildRequires: ninja cmake
%prep
%setup -n %{n}-%{realversion}
%build
rm -rf ../build ; mkdir ../build; cd ../build
cmake ../%{n}-%{realversion} \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX:STRING=%{i} \
-DDEACTIVATE_ZLIB:BOOL=OFF \
-DDEACTIVATE_ZSTD:BOOL=OFF \
-DDEACTIVATE_AVX2:BOOL=ON \
-DPREFER_EXTERNAL_ZSTD=ON \
-DPREFER_EXTERNAL_LZ4=ON \
-DPREFER_EXTERNAL_ZLIB=ON \
-DCMAKE_PREFIX_PATH="%{cmake_prefix_path}"
ninja -v %{makeprocesses}
%install
cd ../build
ninja -v %{makeprocesses} install
%post
%{relocateConfig}lib64/pkgconfig/blosc2.pc
%{relocateConfig}lib64/cmake/Blosc2/Blosc2Targets.cmake