Added patch with EPEL8 fixes.
This commit is contained in:
parent
83460f8298
commit
adfffd6dd0
2 changed files with 32 additions and 2 deletions
30
zswap-cli-epel-fixes.patch
Normal file
30
zswap-cli-epel-fixes.patch
Normal 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})
|
||||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue