71 lines
1.5 KiB
RPMSpec
71 lines
1.5 KiB
RPMSpec
Name: zswap-cli
|
|
Version: 0.4.1
|
|
Release: 1%{?dist}
|
|
|
|
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
|
|
|
|
BuildRequires: kernel-headers
|
|
BuildRequires: glibc-headers
|
|
BuildRequires: cxxopts-devel
|
|
BuildRequires: ninja-build
|
|
BuildRequires: fmt-devel
|
|
BuildRequires: systemd
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: pandoc
|
|
BuildRequires: cmake
|
|
|
|
%{?systemd_requires}
|
|
|
|
%description
|
|
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}
|
|
|
|
%post
|
|
%systemd_post %{name}.service
|
|
|
|
%preun
|
|
%systemd_preun %{name}.service
|
|
|
|
%postun
|
|
%systemd_postun_with_restart %{name}.service
|
|
|
|
%install
|
|
%ninja_install -C %{_target_platform}
|
|
|
|
%files
|
|
%doc README.md docs/*
|
|
%license LICENSE
|
|
%{_sbindir}/%{name}
|
|
%{_unitdir}/%{name}.service
|
|
%{_mandir}/man1/%{name}.*
|
|
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
|
|
|
%changelog
|
|
* Mon Apr 27 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 0.4.1-1
|
|
- Updated to version 0.4.1.
|
|
|
|
* Sun Apr 26 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 0.4.0-1
|
|
- Updated to version 0.4.0.
|
|
|
|
* Wed Apr 22 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 0.3.0-1
|
|
- Updated to version 0.3.0.
|
|
|
|
* Mon Apr 13 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 0.2.0-1
|
|
- Updated to version 0.2.0.
|
|
|
|
* Sat Apr 04 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 0.1.0-1
|
|
- Initial SPEC release.
|