You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.0 KiB
72 lines
2.0 KiB
Name: zram |
|
Version: 0.4 |
|
Release: 3%{?dist} |
|
Summary: ZRAM for swap config and services for Fedora |
|
License: GPLv2+ |
|
|
|
# No upstream as it's Fedora specific. |
|
Source0: COPYING |
|
Source1: zram.conf |
|
Source2: zram-swap.service |
|
Source3: zramstart |
|
Source4: zramstop |
|
|
|
BuildArch: noarch |
|
|
|
%{?systemd_requires} |
|
BuildRequires: systemd |
|
Requires: util-linux gawk grep |
|
|
|
%description |
|
ZRAM is a Linux block device that can be used for compressed swap in memory. |
|
It's useful in memory constrained devices. This provides a service to setup |
|
ZRAM as a swap device based on criteria such as available memory. |
|
|
|
%prep |
|
# None required |
|
|
|
%build |
|
# None required |
|
|
|
%install |
|
install -d %{buildroot}%{_datadir}/licenses/%{name}/ |
|
install -pm 0644 %{SOURCE0} %{buildroot}%{_datadir}/licenses/%{name}/COPYING |
|
|
|
install -d %{buildroot}%{_sysconfdir}/ |
|
install -pm 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/ |
|
|
|
install -d %{buildroot}%{_unitdir}/ |
|
install -pm 0644 %{SOURCE2} %{buildroot}%{_unitdir}/ |
|
|
|
install -d %{buildroot}%{_sbindir} |
|
install -pm 0755 %{SOURCE3} %{buildroot}%{_sbindir} |
|
install -pm 0755 %{SOURCE4} %{buildroot}%{_sbindir} |
|
|
|
%postun |
|
%systemd_postun zram-swap.service |
|
|
|
%files |
|
%license COPYING |
|
%config(noreplace) %{_sysconfdir}/%{name}.conf |
|
%{_unitdir}/zram-swap.service |
|
%{_sbindir}/zramstart |
|
%{_sbindir}/zramstop |
|
|
|
%changelog |
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-3 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild |
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-2 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild |
|
|
|
* Wed Jun 26 2019 Peter Robinson <pbrobinson@fedoraproject.org> 0.4-1 |
|
- General improvements (Chris Murphy) |
|
|
|
* Sat Nov 24 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.3-1 |
|
- Add support for swap priority |
|
|
|
* Thu Jul 19 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.2-1 |
|
- Service ordering fixes, minor cleanup |
|
|
|
* Tue Jul 17 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.1-1 |
|
- Initial package
|
|
|