Switch to the new CMake macros
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
939981fe7a
commit
22ec5dc645
1 changed files with 8 additions and 9 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue