upgrade version to 1.1.2
This commit is contained in:
parent
80076c7029
commit
2e1a695d13
@ -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
BIN
zram-generator-1.1.2.crate
Normal file
Binary file not shown.
Binary file not shown.
@ -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)
|
||||
Loading…
x
Reference in New Issue
Block a user