diff --git a/zswap-cli.spec b/zswap-cli.spec index 7a737c0..874360a 100644 --- a/zswap-cli.spec +++ b/zswap-cli.spec @@ -1,6 +1,6 @@ Name: zswap-cli Version: 0.4.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Command-line tool to control zswap options License: MIT @@ -24,15 +24,11 @@ ZSwap-cli is a command-line tool to control zswap options. %prep %autosetup -mkdir -p %{_target_platform} %build -pushd %{_target_platform} - %cmake -G Ninja \ - -DCMAKE_BUILD_TYPE=Release \ - .. -popd -%ninja_build -C %{_target_platform} +%cmake -G Ninja \ + -DCMAKE_BUILD_TYPE=Release +%cmake_build %post %systemd_post %{name}.service @@ -44,7 +40,7 @@ popd %systemd_postun_with_restart %{name}.service %install -%ninja_install -C %{_target_platform} +%cmake_install %files %doc README.md docs/* @@ -55,6 +51,9 @@ popd %config(noreplace) %{_sysconfdir}/%{name}.conf %changelog +* Sat Jul 04 2020 Igor Raits - 0.4.1-2 +- Switch to the new CMake macros + * Mon Apr 27 2020 Vitaly Zaitsev - 0.4.1-1 - Updated to version 0.4.1.