!3 【930】升级nestos组件zram-generator至1.1.2版本

From: @duyiwei7w 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2022-07-25 03:23:12 +00:00 committed by Gitee
commit 6a02a64e8a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
5 changed files with 10 additions and 6 deletions

View File

@ -2,7 +2,7 @@
%global crate zram-generator
Name: rust-%{crate}
Version: 0.3.2
Version: 1.1.2
Release: 1
Summary: Systemd unit generator for zram swap devices
@ -24,7 +24,8 @@ is used to store compressed pages, essentially trading CPU cycles for memory.)
%package -n %{crate}
Summary: %{summary}
Recommends: /usr/bin/zramctl
Recommends: %{_sbindir}/zramctl
License: MIT
%description -n %{crate} %{_description}
@ -62,9 +63,10 @@ EOF
%build
export SYSTEMD_UTIL_DIR=%{_systemd_util_dir}
export LC_ALL=C.UTF-8
%cargo_build
make systemd_service SYSTEMD_SYSTEM_UNIT_DIR=%{?_unitdir} SYSTEMD_SYSTEM_GENERATOR_DIR=%{?_systemdgeneratordir}
LC_ALL=C.UTF-8 ronn --roff --organization="zram-generator %{version}" man/*.md
%make_build SYSTEMD_SYSTEM_UNIT_DIR=%{_unitdir} SYSTEMD_SYSTEM_GENERATOR_DIR=%{_systemdgeneratordir} \
systemd-service man
%install
export SYSTEMD_UTIL_DIR=%{_systemd_util_dir}
@ -96,5 +98,8 @@ install -Dpm0644 -t %{buildroot}%{_mandir}/man5 man/zram-generator.conf.5
%{cargo_registry}/%{crate}-%{version}
%changelog
* Tue Jul 19 2022 duyiwei <duyiwei@kylinos.cn> - 1.1.2-1
- upgrade to 1.1.2
* Tue May 10 2022 duyiwei <duyiwei@kylinos.cn> - 0.3.2-1
- Package init

Binary file not shown.

BIN
zram-generator-1.1.2.crate Normal file

Binary file not shown.

Binary file not shown.

View File

@ -5,5 +5,4 @@
# To disable, uninstall zram-generator-defaults or create empty
# /etc/systemd/zram-generator.conf file.
[zram0]
zram-fraction = 1.0
max-zram-size = 8192
zram-size = min(ram, 8192)