Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/rust-zram-generator.git#c008a0a33a33ec443b3433b849b5bd5609d024f8
This commit is contained in:
DistroBaker 2021-01-27 17:30:21 +00:00
parent 7dfa0e02cc
commit 28cff918c9
2 changed files with 8 additions and 3 deletions

View File

@ -5,7 +5,7 @@
Name: rust-%{crate}
Version: 0.3.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Systemd unit generator for zram swap devices
# Upstream license specification: MIT
@ -113,7 +113,7 @@ export SYSTEMD_UTIL_DIR=$(pkg-config --variable=systemdutildir systemd)
mkdir -p %{buildroot}%{_systemdgeneratordir}
mv -v %{buildroot}%{_bindir}/zram-generator %{buildroot}%{_systemdgeneratordir}/
install -Dpm0644 -t %{buildroot}%{_unitdir} units/systemd-zram-setup@.service
install -Dpm0644 -t %{buildroot}%{_prefix}/lib/systemd zram-generator.conf
install -Dpm0644 -t %{buildroot}%{_prefix}/lib/systemd %{SOURCE1}
install -Dpm0644 -t %{buildroot}%{_mandir}/man8 man/zram-generator.8
install -Dpm0644 -t %{buildroot}%{_mandir}/man5 man/zram-generator.conf.5
@ -124,6 +124,9 @@ export SYSTEMD_UTIL_DIR=$(pkg-config --variable=systemdutildir systemd)
%endif
%changelog
* Wed Jan 27 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3.1-2
- Implement https://fedoraproject.org/wiki/Changes/Scale_ZRAM_to_full_memory_size (#1921084)
* Sat Jan 23 13:23:10 CET 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.3.1-1
- Update to 0.3.1

View File

@ -1,7 +1,9 @@
# This config file enables a /dev/zram0 device with the default settings:
# — size — half of available RAM or 4GB, whichever is less
# — size — same as available RAM or 8GB, whichever is less
# — compression — most likely lzo-rle
#
# To disable, uninstall zram-generator-defaults or create empty
# /etc/systemd/zram-generator.conf file.
[zram0]
zram-fraction = 1.0
max-zram-size = 8096