Skip to content

Commit 38c18f0

Browse files
committed
catch2: build shared libs, relocate .pc files; run verbose make
1 parent 1b42c1e commit 38c18f0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

catch2.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ rm -rf build && mkdir build && cd build
1212

1313
cmake ../Catch2-%{realversion} \
1414
-DCMAKE_BUILD_TYPE=Release \
15+
-DBUILD_SHARED_LIBS=ON \
1516
-DCMAKE_INSTALL_PREFIX="%{i}" \
1617
-DCATCH_INSTALL_HELPERS=ON \
1718
-DCATCH_INSTALL_EXTRAS=ON \
1819
-DCMAKE_INSTALL_COMPONENT="devel"
1920

20-
make %{makeprocesses}
21+
make %{makeprocesses} VERBOSE=1
2122

2223
%install
2324
cd %{_builddir}/build
2425
make install
26+
27+
%post
28+
%{relocateConfig}share/pkgconfig/catch2*.pc

0 commit comments

Comments
 (0)