Compare commits
39 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d3af92bb1 | ||
|
|
09988eb145 | ||
|
|
1b68f5d49f | ||
|
|
a3cc806bce | ||
|
|
69ed6fc33d | ||
|
|
1d8a76b375 | ||
|
|
598e1508f6 | ||
|
|
23dad95716 | ||
|
|
0a8d322dd2 | ||
|
|
f4db9d37b4 | ||
|
|
e4174d1dd4 | ||
|
|
77c37873ce | ||
|
|
7454946d25 | ||
|
|
c93d6ccbd4 | ||
|
|
24fc598db3 | ||
|
|
0811c7d5b0 | ||
|
|
9177e66353 | ||
|
|
04eccb325e | ||
|
|
bad98f764e | ||
|
|
4ae221bf8e | ||
|
|
fce43b7315 | ||
|
|
b99314c591 | ||
|
|
8885432e1d | ||
|
|
c9d6fa3946 | ||
|
|
c27c0e50bd | ||
|
|
a4df2622fa | ||
|
|
400569d310 | ||
|
|
f6d31a0488 | ||
|
|
25dafba992 | ||
|
|
e0c91575d5 | ||
|
|
b9379c4b9b | ||
|
|
a51e8d4600 | ||
|
|
79263c839b | ||
|
|
e70f2e16b2 | ||
|
|
9d7406bf2f | ||
| c0236a4313 | |||
|
|
5351a75a80 | ||
|
|
f499c43259 | ||
|
|
d7b00d8493 |
1 changed files with 19 additions and 34 deletions
53
wlcs.spec
53
wlcs.spec
|
|
@ -1,14 +1,14 @@
|
|||
# Lists copied from https://git.centos.org/rpms/gcc/blob/c9/f/SPECS/gcc.spec
|
||||
# Current as of 11.3.1 (lines 56, 71, and 61, respectively).
|
||||
# Lists copied from gcc.spec
|
||||
# Current as of 16.0.1 (lines 83, 103, and 93, respectively).
|
||||
# Note that asan and ubsan are available on all Fedora primary architectures;
|
||||
# tsan is missing on i686 and s390x.
|
||||
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64
|
||||
# tsan is missing on i686 only.
|
||||
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 riscv64
|
||||
%global arch_has_asan 1
|
||||
%endif
|
||||
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64
|
||||
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 riscv64
|
||||
%global arch_has_ubsan 1
|
||||
%endif
|
||||
%ifarch x86_64 ppc64 ppc64le aarch64
|
||||
%ifarch x86_64 ppc64 ppc64le aarch64 s390x riscv64
|
||||
%global arch_has_tsan 1
|
||||
%endif
|
||||
|
||||
|
|
@ -83,12 +83,22 @@ 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: gcc
|
||||
BuildRequires: gcc-c++
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: ninja-build
|
||||
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: cmake(GTest)
|
||||
BuildRequires: gmock-devel
|
||||
|
|
@ -135,31 +145,6 @@ The wlcs-devel package contains libraries and header files for developing
|
|||
Wayland compositor tests that use wlcs.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
|
||||
%build
|
||||
# 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 \
|
||||
-GNinja
|
||||
%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