Switch to the new CMake macros

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Raits 2020-07-04 08:30:00 +02:00
commit 22ec5dc645
No known key found for this signature in database
GPG key ID: 115D5AB89C5C1E1E

View file

@ -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 <ignatenkobrain@fedoraproject.org> - 0.4.1-2
- Switch to the new CMake macros
* Mon Apr 27 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 0.4.1-1
- Updated to version 0.4.1.