From adfffd6dd08ec954fe35bc6fe7e65b13925fadfa Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Thu, 1 Apr 2021 20:44:45 +0200 Subject: [PATCH] Added patch with EPEL8 fixes. --- zswap-cli-epel-fixes.patch | 30 ++++++++++++++++++++++++++++++ zswap-cli.spec | 4 ++-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 zswap-cli-epel-fixes.patch diff --git a/zswap-cli-epel-fixes.patch b/zswap-cli-epel-fixes.patch new file mode 100644 index 0000000..006ef00 --- /dev/null +++ b/zswap-cli-epel-fixes.patch @@ -0,0 +1,30 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 807b899..cc25019 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -4,12 +4,11 @@ + # SPDX-License-Identifier: MIT + # + +-cmake_minimum_required(VERSION 3.12) ++cmake_minimum_required(VERSION 3.11) + + project(zswap-cli + VERSION 0.5.0 + DESCRIPTION "Command-line tool to control zswap options" +- HOMEPAGE_URL "https://github.com/xvitaly/zswap-cli" + LANGUAGES CXX + ) + +diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt +index 4967afc..2f421d5 100644 +--- a/src/app/CMakeLists.txt ++++ b/src/app/CMakeLists.txt +@@ -22,6 +22,7 @@ set(EXTERNAL_LIBS + ${LIB_NAME} + fmt::fmt + Boost::program_options ++ stdc++fs + ) + + add_executable(${APP_NAME} ${INTERNAL_LIBS}) diff --git a/zswap-cli.spec b/zswap-cli.spec index 2e42abf..e6752d1 100644 --- a/zswap-cli.spec +++ b/zswap-cli.spec @@ -8,6 +8,7 @@ Summary: Command-line tool to control zswap options License: MIT URL: https://github.com/xvitaly/%{name} Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +Patch0: %{name}-epel-fixes.patch BuildRequires: boost-devel BuildRequires: cmake @@ -25,8 +26,7 @@ BuildRequires: systemd ZSwap-cli is a command-line tool to control zswap options. %prep -%autosetup -sed -e 's/VERSION 3.12/VERSION 3.11/g' -e '/HOMEPAGE_URL/d' -i CMakeLists.txt +%autosetup -p1 %build %cmake -G Ninja \