Compare commits

..

20 commits

Author SHA1 Message Date
Benjamin A. Beasley
602839bbbf Fix License field (add MIT term) 2026-05-21 10:57:11 +01:00
Benjamin A. Beasley
daa65fc39b Be more clear that we have no tests of our own 2026-05-21 10:57:03 +01:00
Benjamin A. Beasley
f024d1c09b Trivial spec-file typo fix
[skip changelog]
2026-05-21 10:56:27 +01:00
Benjamin A. Beasley
26e9bc8267 Update .rpmlintrc file
[skip changelog]
2026-05-21 10:56:23 +01:00
Benjamin A. Beasley
a8819514ae Fix sanitizer architectures for EL9 2025-08-16 06:18:17 -04:00
Benjamin A. Beasley
d81af9b577 Update to 1.8.1 (close RHBZ#2388540) 2025-08-15 15:56:19 -04:00
Benjamin A. Beasley
c7fb5aac0b Update .rpmlintrc file for current rpmlint 2025-08-15 15:55:55 -04:00
Benjamin A. Beasley
b50f12e7fe Do not number the sole Source 2025-08-15 15:55:39 -04:00
Benjamin A. Beasley
7df412499c Update architectures for asan/tsan/ubsan tests based on GCC 15
- Adds riscv64 to supported architectures for all three kinds of tsts
2025-08-15 15:55:03 -04:00
Benjamin A. Beasley
741f0d8343 Add a SourceLicense field 2024-12-17 07:36:57 -05:00
Benjamin A. Beasley
09e6a552ae Add an rpmlintrc file
[skip changelog]
2024-12-17 07:36:55 -05:00
Benjamin A. Beasley
b54da98908 Update to 1.7.0 (close RHBZ#2254812) 2023-12-21 08:55:39 -05:00
Benjamin A. Beasley
aa3ced9980 Update to 1.6.1 (close RHBZ#2243684) 2023-12-21 08:48:35 -05:00
Benjamin A. Beasley
7ef59351af Update to 1.6.0 (close RHBZ#2223843) 2023-07-19 12:08:20 -04:00
Benjamin A. Beasley
356171bd95 Update to 1.5.0 (close RHBZ#2162721) 2023-01-21 10:27:17 -05:00
Benjamin A. Beasley
971061fb5c Indicate dirs. in files list with trailing slashes 2023-01-21 10:27:17 -05:00
Benjamin A. Beasley
8850afeeb9 Update License to SPDX 2023-01-21 10:27:17 -05:00
Benjamin A. Beasley
2d8c8c42a8 Re-enable support for libasan and libubsan 2023-01-21 10:27:11 -05:00
Benjamin A. Beasley
961525eeb9 Update to 1.4.0 (close RHBZ#2065815) 2022-03-20 11:47:29 -04:00
Benjamin A. Beasley
6b646ed180 Build without libasan/libubsan, since these vanished from EPEL9 2022-01-14 13:35:12 -05:00

View file

@ -1,14 +1,14 @@
# Lists copied from gcc.spec
# Current as of 16.0.1 (lines 83, 103, and 93, respectively).
# 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).
# Note that asan and ubsan are available on all Fedora primary architectures;
# tsan is missing on i686 only.
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 riscv64
# tsan is missing on i686 and s390x.
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64
%global arch_has_asan 1
%endif
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 riscv64
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64
%global arch_has_ubsan 1
%endif
%ifarch x86_64 ppc64 ppc64le aarch64 s390x riscv64
%ifarch x86_64 ppc64 ppc64le aarch64
%global arch_has_tsan 1
%endif
@ -83,22 +83,12 @@ 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
@ -145,6 +135,31 @@ 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