Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7da4098329 | ||
|
|
b0278d4bfc |
1 changed files with 28 additions and 12 deletions
40
wlcs.spec
40
wlcs.spec
|
|
@ -83,18 +83,7 @@ SourceLicense: %{shrink:
|
|||
URL: https://github.com/MirServer/wlcs
|
||||
Source: %{url}/archive/v%{version}/wlcs-%{version}.tar.gz
|
||||
|
||||
BuildSystem: cmake
|
||||
# WLCS_FATAL_COMPILE_WARNINGS: makes sense for upstream CI, but too strict for
|
||||
# downstream packaging
|
||||
BuildOption(conf): %{shrink:
|
||||
-DWLCS_BUILD_ASAN=%{?with_asan:ON}%{?!with_asan:OFF}
|
||||
-DWLCS_BUILD_TSAN=%{?with_tsan:ON}%{?!with_tsan:OFF}
|
||||
-DWLCS_BUILD_UBSAN=%{?with_ubsan:ON}%{?!with_ubsan:OFF}
|
||||
-DWLCS_FATAL_COMPILE_WARNINGS:BOOL=OFF
|
||||
}
|
||||
# We have built a test suite for compositors, but we have no tests for the test
|
||||
# suite, i.e., %%ctest would find no tests and there is nothing useful we could
|
||||
# do in %%check.
|
||||
BuildRequires: cmake
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
|
|
@ -145,6 +134,33 @@ The wlcs-devel package contains libraries and header files for developing
|
|||
Wayland compositor tests that use wlcs.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
|
||||
%conf
|
||||
# WLCS_FATAL_COMPILE_WARNINGS: makes sense for upstream CI, but too strict for
|
||||
# downstream packaging
|
||||
%cmake \
|
||||
-DWLCS_BUILD_ASAN=%{?with_asan:ON}%{?!with_asan:OFF} \
|
||||
-DWLCS_BUILD_TSAN=%{?with_tsan:ON}%{?!with_tsan:OFF} \
|
||||
-DWLCS_BUILD_UBSAN=%{?with_ubsan:ON}%{?!with_ubsan:OFF} \
|
||||
-DWLCS_FATAL_COMPILE_WARNINGS:BOOL=OFF
|
||||
|
||||
|
||||
%build
|
||||
%cmake_build
|
||||
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
|
||||
# We have built a test suite for compositors, but we have no tests for the test
|
||||
# suite, i.e., %%ctest would find no tests and there is nothing useful we could
|
||||
# do in %%check.
|
||||
|
||||
|
||||
%files
|
||||
%license COPYING.*
|
||||
%doc README.rst
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue