diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ae8761e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/zswap-cli-0.4.1.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..c74611a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (zswap-cli-0.4.1.tar.gz) = 247f4c1949ae1b320e73bf69fd000065f5595e58165a1100a4fb2546c27c1424775e30654ecb8863b67797f77d3f43cd79d63c9ff7b1adac913e0b6c646345ab diff --git a/zswap-cli.spec b/zswap-cli.spec new file mode 100644 index 0000000..7a737c0 --- /dev/null +++ b/zswap-cli.spec @@ -0,0 +1,71 @@ +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 - 0.4.1-1 +- Updated to version 0.4.1. + +* Sun Apr 26 2020 Vitaly Zaitsev - 0.4.0-1 +- Updated to version 0.4.0. + +* Wed Apr 22 2020 Vitaly Zaitsev - 0.3.0-1 +- Updated to version 0.3.0. + +* Mon Apr 13 2020 Vitaly Zaitsev - 0.2.0-1 +- Updated to version 0.2.0. + +* Sat Apr 04 2020 Vitaly Zaitsev - 0.1.0-1 +- Initial SPEC release.