From 6030cbe0436207dfb844eb4477e6d26128f46010 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Tue, 23 Jun 2020 19:55:52 +0200 Subject: [PATCH] Update to 0.2.0-rc.1 Signed-off-by: Igor Raits --- .gitignore | 1 + rust-zram-generator.spec | 19 +++++++++++++------ sources | 2 +- zram-generator.conf | 2 +- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 9892a88..df724e2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /zram-generator-0.1.1.crate /zram-generator-0.1.2.crate /zram-generator-0.2.0-beta.1.crate +/zram-generator-0.2.0-rc.1.crate diff --git a/rust-zram-generator.spec b/rust-zram-generator.spec index d1ec832..99f90b8 100644 --- a/rust-zram-generator.spec +++ b/rust-zram-generator.spec @@ -1,12 +1,11 @@ # Generated by rust2rpm 15 -# * https://github.com/systemd/zram-generator/issues/36 -%bcond_with check +%bcond_without check %global crate zram-generator Name: rust-%{crate} -Version: 0.2.0~beta.1 -Release: 3%{?dist} +Version: 0.2.0~rc.1 +Release: 1%{?dist} Summary: Systemd unit generator for zram swap devices # Upstream license specification: MIT @@ -38,8 +37,7 @@ Summary: %{summary} # MIT # MIT or ASL 2.0 License: MIT -# for zramctl -Recommends: util-linux +Recommends: /usr/bin/zramctl %description -n %{crate} %{_description} @@ -49,6 +47,8 @@ Recommends: util-linux %doc README.md TODO %{_systemdgeneratordir}/zram-generator %{_unitdir}/swap-create@.service +%{_mandir}/man8/zram-generator.8* +%{_mandir}/man5/zram-generator.5* %package -n %{crate}-defaults Summary: Default configuration for %{crate} @@ -95,9 +95,11 @@ cp -a %{S:1} . %generate_buildrequires %cargo_generate_buildrequires +echo '/usr/bin/ronn' %build %cargo_build +LC_ALL=C.UTF-8 ronn --roff --organization="zram-generator %{version_no_tilde}" man/*.md %install %cargo_install @@ -106,6 +108,8 @@ mkdir -p %{buildroot}%{_systemdgeneratordir} mv -v %{buildroot}%{_bindir}/zram-generator %{buildroot}%{_systemdgeneratordir}/ install -Dpm0644 -t %{buildroot}%{_unitdir} units/swap-create@.service install -Dpm0644 -t %{buildroot}%{_prefix}/lib/systemd zram-generator.conf +install -Dpm0644 -t %{buildroot}%{_mandir}/man8 man/zram-generator.8 +install -Dpm0644 -t %{buildroot}%{_mandir}/man5 man/zram-generator.5 %if %{with check} %check @@ -113,6 +117,9 @@ install -Dpm0644 -t %{buildroot}%{_prefix}/lib/systemd zram-generator.conf %endif %changelog +* Tue Jun 23 19:56:14 CEST 2020 Igor Raits - 0.2.0~rc.1-1 +- Update to 0.2.0-rc.1 + * Thu Jun 18 11:30:43 CEST 2020 Igor Raits - 0.2.0~beta.1-3 - Create a subpackage with default configuration diff --git a/sources b/sources index 34c0128..a8fd3cd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (zram-generator-0.2.0-beta.1.crate) = 9a1206cb69f9a771864f9894274cad534c8fab7272a5abda6498188d7c2627850741903311a158b515a8056034f5589127421d938779567598a849c889fc38b1 +SHA512 (zram-generator-0.2.0-rc.1.crate) = 29f9db011a4a81cb7f14b6706925879b2b3e22ffb380d0e56c1869af8f593b71909dd6eb3ce980eb31fd2db65d0649ccfadf3141a2d349b0fc34e322f47a9017 diff --git a/zram-generator.conf b/zram-generator.conf index 1770e10..e151b57 100644 --- a/zram-generator.conf +++ b/zram-generator.conf @@ -2,6 +2,6 @@ # — size — half of available RAM or 4GB, whichever is less # — compression — most likely lzo-rle # -# To disable, uninstall rust-zram-defaults or create empty +# To disable, uninstall zram-generator-defaults or create empty # /etc/systemd/zram-generator.conf file. [zram0]