diff --git a/rust-zram-generator.spec b/rust-zram-generator.spec index e507370..6ed3e43 100644 --- a/rust-zram-generator.spec +++ b/rust-zram-generator.spec @@ -5,7 +5,7 @@ Name: rust-%{crate} Version: 0.3.2 -Release: 1%{?dist} +Release: 3%{?dist} Summary: Systemd unit generator for zram swap devices # Upstream license specification: MIT @@ -97,17 +97,16 @@ cp -a %{S:1} . %cargo_generate_buildrequires echo '/usr/bin/make' echo '/usr/bin/ronn' -echo 'pkgconfig(systemd)' echo 'systemd-rpm-macros' %build -export SYSTEMD_UTIL_DIR=$(pkg-config --variable=systemdutildir systemd) +export SYSTEMD_UTIL_DIR=%{_systemd_util_dir} %cargo_build -make systemd_service +make systemd_service SYSTEMD_SYSTEM_UNIT_DIR=%{_unitdir} SYSTEMD_SYSTEM_GENERATOR_DIR=%{_systemdgeneratordir} LC_ALL=C.UTF-8 ronn --roff --organization="zram-generator %{version_no_tilde}" man/*.md %install -export SYSTEMD_UTIL_DIR=$(pkg-config --variable=systemdutildir systemd) +export SYSTEMD_UTIL_DIR=%{_systemd_util_dir} %cargo_install mkdir -p %{buildroot}%{_systemdgeneratordir} @@ -119,11 +118,17 @@ install -Dpm0644 -t %{buildroot}%{_mandir}/man5 man/zram-generator.conf.5 %if %{with check} %check -export SYSTEMD_UTIL_DIR=$(pkg-config --variable=systemdutildir systemd) +export SYSTEMD_UTIL_DIR=%{_systemd_util_dir} %cargo_test %endif %changelog +* Tue Mar 23 2021 Zbigniew Jędrzejewski-Szmek - 0.3.2-3 +- Fix missing path to generator dir + +* Fri Mar 19 2021 Vasiliy Glazov - 0.3.2-2 +- Fix max-zram-size value to 8GB + * Wed Feb 24 2021 Zbigniew Jędrzejewski-Szmek - 0.3.2-1 - Downgrade logging levels (#1930869) diff --git a/zram-generator.conf b/zram-generator.conf index 5f5a1ae..a5432f9 100644 --- a/zram-generator.conf +++ b/zram-generator.conf @@ -6,4 +6,4 @@ # /etc/systemd/zram-generator.conf file. [zram0] zram-fraction = 1.0 -max-zram-size = 8096 +max-zram-size = 8192