Merge branch 'master' into epel8

This commit is contained in:
Vitaly Zaitsev 2020-04-30 14:33:17 +02:00
commit f5e8a98d94
No known key found for this signature in database
GPG key ID: BF99FC6DD45AB90A
3 changed files with 73 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/zswap-cli-0.4.1.tar.gz

1
sources Normal file
View file

@ -0,0 +1 @@
SHA512 (zswap-cli-0.4.1.tar.gz) = 247f4c1949ae1b320e73bf69fd000065f5595e58165a1100a4fb2546c27c1424775e30654ecb8863b67797f77d3f43cd79d63c9ff7b1adac913e0b6c646345ab

71
zswap-cli.spec Normal file
View file

@ -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 <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.