Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Fedora Release Engineering
1d4198c695 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 09:31:08 +00:00
Benjamin A. Beasley
e7ca31d471 Use the cmake declarative buildsystem 2026-05-25 07:39:53 +01:00
Benjamin A. Beasley
69415903a1 Use various long options 2026-05-25 07:38:56 +01:00
Benjamin A. Beasley
c9ab9ea045 Patch for CMake 4 2026-04-14 20:31:06 +01:00
Fedora Release Engineering
0e98dc6d8f Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 20:58:37 +00:00
2 changed files with 36 additions and 14 deletions

27
5.patch Normal file
View file

@ -0,0 +1,27 @@
From 860fe53a085477365b46f31d46108d630f6c8aa1 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Tue, 14 Apr 2026 20:29:17 +0100
Subject: [PATCH] Update minimum CMake version to 3.12
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
CMake 4.0 drops support for CMake <3.5, so minimum versions need to be
adjusted for forward compatibility. We might as well ask for CMake 3.12,
which can be considered the oldest “modern” CMake release, which is
available in all known supported Linux distributions today, and which is
likely to remain supported for some time.
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea6f90c..b03f9f4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.2)
+cmake_minimum_required(VERSION 3.12)
project (xxhashct)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

View file

@ -11,8 +11,14 @@ License: MIT
URL: https://github.com/ekpyron/xxhashct
Source: %{url}/archive/%{commit}/xxhashct-%{commit}.tar.gz
# Update minimum CMake version to 3.12
# https://github.com/ekpyron/xxhashct/pull/5
# Fixes compatibility with CMake 4.
Patch: %{url}/pull/5.patch
BuildSystem: cmake
BuildRequires: gcc-c++
BuildRequires: cmake
# For tests:
BuildRequires: xxhash-devel
@ -41,21 +47,10 @@ The xxhashct-devel package contains libraries and header files for developing
applications that use xxhashct.
%prep
%autosetup -n xxhashct-%{commit} -p1
%conf
%cmake
%build
%cmake_build
%install
# The upstream CMake build system only builds tests.
install -D -p -m 0644 -t '%{buildroot}%{_includedir}' xxh32.hpp xxh64.hpp
install -D --preserve-timestamps --mode=0644 \
--target='%{buildroot}%{_includedir}' xxh32.hpp xxh64.hpp
%check