Added patch with EPEL8 fixes.

This commit is contained in:
Vitaly Zaitsev 2021-04-01 20:44:45 +02:00
commit adfffd6dd0
No known key found for this signature in database
GPG key ID: BF99FC6DD45AB90A
2 changed files with 32 additions and 2 deletions

View file

@ -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})

View file

@ -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 \