diff --git a/.gitignore b/.gitignore index 1ea127d..7be3846 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/zswap-cli-*.tar.gz +/zswap-cli-0.4.1.tar.gz +/zswap-cli-0.5.0.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..3b7495b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# zswap-cli + +The zswap-cli package \ No newline at end of file diff --git a/changelog b/changelog deleted file mode 100644 index a0ca62a..0000000 --- a/changelog +++ /dev/null @@ -1,2 +0,0 @@ -* Sat Jul 20 2024 Fedora Release Engineering - 0.9.1-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git a/sources b/sources index adf8097..d054eb7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (zswap-cli-1.1.2.tar.gz) = 54d038f6e83ace215675d55c964ffac1b65a3cea31779a72676803631d0234e0e07abcb350bca76c79ce538795d7dd526b7a596ed6aa611470415a7988c11ebb +SHA512 (zswap-cli-0.5.0.tar.gz) = 0bc41a6a5389e1f92cde8b3b9c45acfe6840b12839a16ff8127a352fa7035b00606aae2b57e7c91e0a923e9e02f7043374107e331a0a405501287ed8e84141a9 diff --git a/zswap-cli.spec b/zswap-cli.spec index 85e05a9..6ca7ded 100644 --- a/zswap-cli.spec +++ b/zswap-cli.spec @@ -1,23 +1,20 @@ -Name: zswap-cli -Version: 1.1.2 -Release: %autorelease +%undefine __cmake_in_source_build +Name: zswap-cli +Version: 0.5.0 +Release: 1%{?dist} + +Summary: Command-line tool to control zswap options License: MIT -Summary: Command-line tool to control the zswap options URL: https://github.com/xvitaly/%{name} Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz -# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval -%if 0%{?fedora} && 0%{?fedora} >= 42 -ExcludeArch: %{ix86} -%endif - BuildRequires: boost-devel +BuildRequires: cmake +BuildRequires: fmt-devel +BuildRequires: gcc-c++ BuildRequires: glibc-headers BuildRequires: kernel-headers - -BuildRequires: cmake -BuildRequires: gcc-c++ BuildRequires: ninja-build BuildRequires: pandoc BuildRequires: systemd @@ -25,26 +22,16 @@ BuildRequires: systemd %{?systemd_requires} %description -Zswap-cli is a command-line tool to control the zswap kernel module -options. - -Zswap is a compressed cache for swap pages. It takes pages that are in the -process of being swapped out to disk and tries to compress them into a -RAM-based memory pool with dynamic allocation. - -It trades CPU cycles for a significant performance boost since reading from -a compressed cache is much faster than reading from a swap device. +ZSwap-cli is a command-line tool to control zswap options. %prep -%autosetup -p1 +%autosetup %build %cmake -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_DOCS:BOOL=OFF \ - -DBUILD_MANPAGE:BOOL=ON \ - -DBUILD_SHELL_COMPLETION:BOOL=ON \ - -DSYSTEMD_INTEGRATION:BOOL=ON + -DBUILD_MANPAGE:BOOL=ON %cmake_build %post @@ -60,14 +47,42 @@ a compressed cache is much faster than reading from a swap device. %cmake_install %files -%doc docs/* +%doc README.md docs/* %license LICENSE -%{_bindir}/%{name} +%{_sbindir}/%{name} %{_unitdir}/%{name}.service %{_mandir}/man1/%{name}.* %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf -%{bash_completions_dir}/%{name} %changelog -%autochangelog +* Thu Apr 01 2021 Vitaly Zaitsev - 0.5.0-1 +- Updated to version 0.5.0. + +* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 0.4.1-5 +- Rebuilt for updated systemd-rpm-macros + See https://pagure.io/fesco/issue/2583. + +* Thu Jan 28 2021 Fedora Release Engineering - 0.4.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat Jul 04 2020 Igor Raits - 0.4.1-2 +- Switch to the new CMake macros. + +* 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.