# Generated by rust2rpm 10 %bcond_without check %global __cargo_skip_build 0 %global crate zram-generator Name: rust-%{crate} Version: 0.1.2 Release: 2%{?dist} Summary: Systemd unit generator for zram devices # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/zram-generator Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %global _description %{expand: This is a systemd unit generator that creates a unit file to create a zram device. To activate, copy /usr/share/doc/rust-zram-generator/zram-generator.conf.example to /etc/systemd/zram-generator.conf and possibly edit to adjust the limits.} %description %{_description} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc zram-generator.conf.example %doc README.md TODO %{_systemdgeneratordir}/zram-generator %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires echo 'systemd-rpm-macros' %build %cargo_build %install %cargo_install mkdir -p %{buildroot}%{_systemdgeneratordir} mv -v %{buildroot}%{_bindir}/zram-generator %{buildroot}%{_systemdgeneratordir}/ %if %{with check} %check %cargo_test %endif %changelog * Thu Jan 30 2020 Fedora Release Engineering - 0.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Oct 7 2019 Zbigniew Jędrzejewski-Szmek - 0.1.2-1 - Update to latest version * Fri Jul 26 2019 Fedora Release Engineering - 0.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jul 22 21:30:22 CEST 2019 Igor Gnatenko - 0.1.1-4 - Regenerate * Sat Mar 09 2019 Igor Gnatenko - 0.1.1-3 - Adapt to new packaging * Fri Mar 1 2019 Zbigniew Jędrzejewski-Szmek - 0.1.1-2 - Add crude patch to fix build (#1676154) * Sat Feb 02 2019 Fedora Release Engineering - 0.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Aug 16 2018 Zbigniew Jędrzejewski-Szmek - 0.1.1-1 - Initial package