Blame SPECS/rust-zram-generator.spec

d8d2e6
%global crate zram-generator
d8d2e6
d8d2e6
Name:           rust-%{crate}
d8d2e6
Version:        0.3.2
d8d2e6
Release:        7%{?dist}
d8d2e6
Summary:        Systemd unit generator for zram swap devices
d8d2e6
d8d2e6
License:        MIT
d8d2e6
URL:            https://crates.io/crates/%{crate}
d8d2e6
Source:         %{crates_source}
d8d2e6
Source1:        %{crate}-v%{version}-vendor.tar.gz
d8d2e6
Source2:        zram-generator.conf
d8d2e6
Source3:        zram-generator.8
d8d2e6
Source4:        zram-generator.conf.5
d8d2e6
d8d2e6
ExclusiveArch:  %{rust_arches}
d8d2e6
d8d2e6
BuildRequires:  git
d8d2e6
BuildRequires:  rust-toolset
d8d2e6
BuildRequires:  systemd-devel systemd-rpm-macros
d8d2e6
BuildRequires:  /usr/bin/make
d8d2e6
d8d2e6
%global _description %{expand:
d8d2e6
This is a systemd unit generator that enables swap on zram.
d8d2e6
(With zram, there is no physical swap device. Part of the avaialable RAM
d8d2e6
is used to store compressed pages, essentially trading CPU cycles for memory.)}
d8d2e6
d8d2e6
%description %{_description}
d8d2e6
d8d2e6
%package        -n %{crate}
d8d2e6
Summary:        %{summary}
d8d2e6
License:        MIT
d8d2e6
%description    -n %{crate} %{_description}
d8d2e6
d8d2e6
%prep
d8d2e6
%autosetup -n %{crate}-%{version_no_tilde} -p1
d8d2e6
cp -a %{S:2} .
d8d2e6
%cargo_prep -V 1
d8d2e6
d8d2e6
%build
d8d2e6
export SYSTEMD_UTIL_DIR=%{_systemd_util_dir}
d8d2e6
%cargo_build
d8d2e6
make systemd_service SYSTEMD_SYSTEM_UNIT_DIR=%{_unitdir} SYSTEMD_SYSTEM_GENERATOR_DIR=%{_systemdgeneratordir}
d8d2e6
cp -a %{S:3} %{S:4} man/
d8d2e6
d8d2e6
%install
d8d2e6
export SYSTEMD_UTIL_DIR=%{_systemd_util_dir}
d8d2e6
%cargo_install
d8d2e6
d8d2e6
mkdir -p %{buildroot}%{_systemdgeneratordir}
d8d2e6
mv -v %{buildroot}%{_bindir}/zram-generator %{buildroot}%{_systemdgeneratordir}/
d8d2e6
install -Dpm0644 -t %{buildroot}%{_unitdir} units/systemd-zram-setup@.service
d8d2e6
install -Dpm0644 -t %{buildroot}%{_prefix}/lib/systemd %{SOURCE2}
d8d2e6
install -Dpm0644 -t %{buildroot}%{_mandir}/man8 man/zram-generator.8
d8d2e6
install -Dpm0644 -t %{buildroot}%{_mandir}/man5 man/zram-generator.conf.5
d8d2e6
d8d2e6
%files -n %{crate}
d8d2e6
%license LICENSE
d8d2e6
%doc zram-generator.conf.example
d8d2e6
%doc README.md
d8d2e6
%{_systemdgeneratordir}/zram-generator
d8d2e6
%{_unitdir}/systemd-zram-setup@.service
d8d2e6
%{_prefix}/lib/systemd/zram-generator.conf
d8d2e6
%{_mandir}/man8/zram-generator.8*
d8d2e6
%{_mandir}/man5/zram-generator.conf.5*
d8d2e6
d8d2e6
%changelog
d8d2e6
* Thu Aug 12 2021  <msekleta@redhat.com> - 0.3.2-7
d8d2e6
- Rebuild (#1990555)
d8d2e6
d8d2e6
* Thu Aug 05 2021  <msekleta@redhat.com> - 0.3.2-6
d8d2e6
- Rename binary rpm to zram-generator (#1990555)
d8d2e6
d8d2e6
* Thu Jun 24 2021  <msekleta@redhat.com> - 0.3.2-5
d8d2e6
- Adjust packaging to account for differences between Fedora and CentOS/RHEL rust packaging (#1930369)
d8d2e6
d8d2e6
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com>
d8d2e6
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
d8d2e6
d8d2e6
* Tue Mar 23 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3.2-3
d8d2e6
- Fix missing path to generator dir
d8d2e6
d8d2e6
* Fri Mar 19 2021 Vasiliy Glazov <vascom2@gmail.com> - 0.3.2-2
d8d2e6
- Fix max-zram-size value to 8GB
d8d2e6
d8d2e6
* Wed Feb 24 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3.2-1
d8d2e6
- Downgrade logging levels (#1930869)
d8d2e6
d8d2e6
* Wed Jan 27 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3.1-2
d8d2e6
- Implement https://fedoraproject.org/wiki/Changes/Scale_ZRAM_to_full_memory_size (#1921084)
d8d2e6
d8d2e6
* Sat Jan 23 13:23:10 CET 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.3.1-1
d8d2e6
- Update to 0.3.1
d8d2e6
d8d2e6
* Wed Jan 13 16:57:21 CET 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.3.0~rc.1-1
d8d2e6
- Update to 0.3.0-rc.1
d8d2e6
d8d2e6
* Mon Dec 28 13:34:14 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0-6
d8d2e6
- Rebuild
d8d2e6
d8d2e6
* Mon Nov 23 2020 Fabio Valentini <decathorpe@gmail.com> - 0.2.0-5
d8d2e6
- Allow building against rust-ini 0.16.
d8d2e6
d8d2e6
* Sun Aug 16 15:02:03 GMT 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0-4
d8d2e6
- Rebuild
d8d2e6
d8d2e6
* Sat Aug  1 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.0-3
d8d2e6
- Obsolete zram package from zram-generator-defaults
d8d2e6
d8d2e6
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2
d8d2e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d8d2e6
d8d2e6
* Sat Jul 04 17:30:46 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0-1
d8d2e6
- Update to 0.2.0
d8d2e6
d8d2e6
* Tue Jun 23 19:56:14 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0~rc.1-1
d8d2e6
- Update to 0.2.0-rc.1
d8d2e6
d8d2e6
* Thu Jun 18 11:30:43 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0~beta.1-3
d8d2e6
- Create a subpackage with default configuration
d8d2e6
d8d2e6
* Thu Jun 18 10:14:43 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0~beta.1-2
d8d2e6
- Install swap-create unit file
d8d2e6
d8d2e6
* Thu Jun 18 09:27:37 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0~beta.1-1
d8d2e6
- Update to 0.2.0-beta.1
d8d2e6
d8d2e6
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-2
d8d2e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d8d2e6
d8d2e6
* Mon Oct  7 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.2-1
d8d2e6
- Update to latest version
d8d2e6
d8d2e6
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-5
d8d2e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d8d2e6
d8d2e6
* Mon Jul 22 21:30:22 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.1-4
d8d2e6
- Regenerate
d8d2e6
d8d2e6
* Sat Mar 09 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.1-3
d8d2e6
- Adapt to new packaging
d8d2e6
d8d2e6
* Fri Mar  1 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.1-2
d8d2e6
- Add crude patch to fix build (#1676154)
d8d2e6
d8d2e6
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-2
d8d2e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d8d2e6
d8d2e6
* Thu Aug 16 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.1-1
d8d2e6
- Initial package