Rename binary rpm to zram-generator

Resolves: #1990555
This commit is contained in:
Michal Sekletar 2021-08-05 16:32:01 +00:00
parent 2844ea0189
commit 96df7c7148
1 changed files with 14 additions and 4 deletions

View File

@ -2,7 +2,7 @@
Name: rust-%{crate}
Version: 0.3.2
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Systemd unit generator for zram swap devices
License: MIT
@ -20,10 +20,17 @@ BuildRequires: rust-toolset
BuildRequires: systemd-devel systemd-rpm-macros
BuildRequires: /usr/bin/make
%description
%global _description %{expand:
This is a systemd unit generator that enables swap on zram.
(With zram, there is no physical swap device. Part of the avaialable RAM
is used to store compressed pages, essentially trading CPU cycles for memory.)
is used to store compressed pages, essentially trading CPU cycles for memory.)}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
License: MIT
%description -n %{crate} %{_description}
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
@ -47,7 +54,7 @@ install -Dpm0644 -t %{buildroot}%{_prefix}/lib/systemd %{SOURCE2}
install -Dpm0644 -t %{buildroot}%{_mandir}/man8 man/zram-generator.8
install -Dpm0644 -t %{buildroot}%{_mandir}/man5 man/zram-generator.conf.5
%files
%files -n %{crate}
%license LICENSE
%doc zram-generator.conf.example
%doc README.md
@ -58,6 +65,9 @@ install -Dpm0644 -t %{buildroot}%{_mandir}/man5 man/zram-generator.conf.5
%{_mandir}/man5/zram-generator.conf.5*
%changelog
* Thu Aug 05 2021 <msekleta@redhat.com> - 0.3.2-6
- Rename binary rpm to zram-generator (#1990555)
* Thu Jun 24 2021 <msekleta@redhat.com> - 0.3.2-5
- Adjust packaging to account for differences between Fedora and CentOS/RHEL rust packaging (#1930369)