c10-beta
imports/c10-beta/rust-zram-generator-1.1.2-11.el10
commit
45149f3df0
@ -0,0 +1,2 @@
|
|||||||
|
SOURCES/zram-generator-1.1.2-vendor.tar.xz
|
||||||
|
SOURCES/zram-generator-1.1.2.crate
|
@ -0,0 +1,2 @@
|
|||||||
|
0398d3b327db2c89160acb426bd7e59b479ae057 SOURCES/zram-generator-1.1.2-vendor.tar.xz
|
||||||
|
86da9f84394b081521039e694bbd74bbf9db67d6 SOURCES/zram-generator-1.1.2.crate
|
@ -0,0 +1,8 @@
|
|||||||
|
# This config file enables a /dev/zram0 device with the default settings:
|
||||||
|
# — 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-size = min(ram, 8192)
|
@ -0,0 +1,308 @@
|
|||||||
|
## START: Set by rpmautospec
|
||||||
|
## (rpmautospec version 0.6.1)
|
||||||
|
## RPMAUTOSPEC: autorelease, autochangelog
|
||||||
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
||||||
|
release_number = 11;
|
||||||
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
||||||
|
print(release_number + base_release_number - 1);
|
||||||
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
||||||
|
## END: Set by rpmautospec
|
||||||
|
|
||||||
|
# Generated by rust2rpm 24
|
||||||
|
%bcond_without check
|
||||||
|
|
||||||
|
# RHEL does not have packages for Rust dependencies
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%global bundled_rust_deps 1
|
||||||
|
%else
|
||||||
|
%global bundled_rust_deps 0
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%global crate zram-generator
|
||||||
|
|
||||||
|
Name: rust-zram-generator
|
||||||
|
Version: 1.1.2
|
||||||
|
Release: %autorelease
|
||||||
|
Summary: Systemd unit generator for zram swap devices
|
||||||
|
|
||||||
|
License: MIT
|
||||||
|
URL: https://crates.io/crates/zram-generator
|
||||||
|
Source0: %{crates_source}
|
||||||
|
Source1: zram-generator.conf
|
||||||
|
# To create the vendor tarball:
|
||||||
|
# tar xf %%{crate}-%%{version}.crate ; pushd %%{crate}-%%{version} ; \
|
||||||
|
# cargo vendor && tar Jcvf ../%%{crate}-%%{version}-vendor.tar.xz vendor/ ; popd
|
||||||
|
Source2: %{crate}-%{version}-vendor.tar.xz
|
||||||
|
|
||||||
|
%if 0%{?bundled_rust_deps}
|
||||||
|
BuildRequires: rust-toolset
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: /usr/bin/ronn
|
||||||
|
BuildRequires: pkgconfig(systemd)
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
%else
|
||||||
|
BuildRequires: rust-packaging >= 21
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%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 available RAM
|
||||||
|
is used to store compressed pages, essentially trading CPU cycles for memory.)
|
||||||
|
|
||||||
|
To activate, install %{crate}-defaults subpackage.}
|
||||||
|
|
||||||
|
%description %{_description}
|
||||||
|
|
||||||
|
%package -n %{crate}
|
||||||
|
Summary: %{summary}
|
||||||
|
# Apache-2.0 OR MIT
|
||||||
|
# MIT
|
||||||
|
# MIT OR Apache-2.0
|
||||||
|
License: MIT AND (Apache-2.0 OR MIT)
|
||||||
|
Recommends: %{_sbindir}/zramctl
|
||||||
|
|
||||||
|
%description -n %{crate} %{_description}
|
||||||
|
|
||||||
|
%files -n %{crate}
|
||||||
|
%license LICENSE
|
||||||
|
%license LICENSE.dependencies
|
||||||
|
%if 0%{?bundled_rust_deps}
|
||||||
|
%license cargo-vendor.txt
|
||||||
|
%endif
|
||||||
|
%doc zram-generator.conf.example
|
||||||
|
%doc README.md
|
||||||
|
%{_systemdgeneratordir}/zram-generator
|
||||||
|
%{_unitdir}/systemd-zram-setup@.service
|
||||||
|
%{_mandir}/man8/zram-generator.8*
|
||||||
|
%{_mandir}/man5/zram-generator.conf.5*
|
||||||
|
|
||||||
|
%package -n %{crate}-defaults
|
||||||
|
Summary: Default configuration for %{crate}
|
||||||
|
Requires: %{crate} = %{version}-%{release}
|
||||||
|
Obsoletes: zram < 0.4-2
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description -n %{crate}-defaults
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%files -n %{crate}-defaults
|
||||||
|
%{_prefix}/lib/systemd/zram-generator.conf
|
||||||
|
|
||||||
|
%if ! 0%{?bundled_rust_deps}
|
||||||
|
%package devel
|
||||||
|
Summary: %{summary}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description devel %{_description}
|
||||||
|
|
||||||
|
This package contains library source intended for building other packages which
|
||||||
|
use the "%{crate}" crate.
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%license %{crate_instdir}/LICENSE
|
||||||
|
%doc %{crate_instdir}/README.md
|
||||||
|
%{crate_instdir}/
|
||||||
|
|
||||||
|
%package -n %{name}+default-devel
|
||||||
|
Summary: %{summary}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description -n %{name}+default-devel %{_description}
|
||||||
|
|
||||||
|
This package contains library source intended for building other packages which
|
||||||
|
use the "default" feature of the "%{crate}" crate.
|
||||||
|
|
||||||
|
%files -n %{name}+default-devel
|
||||||
|
%ghost %{crate_instdir}/Cargo.toml
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{crate}-%{version_no_tilde} -p1 %{?bundled_rust_deps:-a2}
|
||||||
|
cp -a %{S:1} .
|
||||||
|
%if 0%{?bundled_rust_deps}
|
||||||
|
%cargo_prep -v vendor
|
||||||
|
%else
|
||||||
|
%cargo_prep
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%cargo_generate_buildrequires
|
||||||
|
echo '/usr/bin/make'
|
||||||
|
echo '/usr/bin/ronn'
|
||||||
|
echo 'pkgconfig(systemd)'
|
||||||
|
echo 'systemd-rpm-macros'
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%build
|
||||||
|
export SYSTEMD_UTIL_DIR=%{_systemd_util_dir}
|
||||||
|
export LC_ALL=C.UTF-8
|
||||||
|
%cargo_build
|
||||||
|
%cargo_license_summary
|
||||||
|
%{cargo_license} > LICENSE.dependencies
|
||||||
|
%if 0%{?bundled_rust_deps}
|
||||||
|
%cargo_vendor_manifest
|
||||||
|
%endif
|
||||||
|
%make_build SYSTEMD_SYSTEM_UNIT_DIR=%{_unitdir} SYSTEMD_SYSTEM_GENERATOR_DIR=%{_systemdgeneratordir} \
|
||||||
|
systemd-service man
|
||||||
|
|
||||||
|
%install
|
||||||
|
export SYSTEMD_UTIL_DIR=%{_systemd_util_dir}
|
||||||
|
%cargo_install
|
||||||
|
|
||||||
|
rm %{buildroot}%{_bindir}/zram-generator
|
||||||
|
%make_install SYSTEMD_SYSTEM_UNIT_DIR=%{_unitdir} SYSTEMD_SYSTEM_GENERATOR_DIR=%{_systemdgeneratordir} \
|
||||||
|
NOBUILD=1
|
||||||
|
|
||||||
|
install -Dpm0644 -t %{buildroot}%{_prefix}/lib/systemd %{SOURCE1}
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
|
%check
|
||||||
|
export SYSTEMD_UTIL_DIR=%{_systemd_util_dir}
|
||||||
|
%cargo_test
|
||||||
|
|
||||||
|
: ==============================================================================
|
||||||
|
%{buildroot}%{_systemdgeneratordir}/zram-generator --help
|
||||||
|
: ==============================================================================
|
||||||
|
%{buildroot}%{_systemdgeneratordir}/zram-generator --help | grep -q %{_systemd_util_dir}/systemd-makefs
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
## START: Generated by rpmautospec
|
||||||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.1.2-11
|
||||||
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
* Thu Feb 01 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 1.1.2-10
|
||||||
|
- Update Rust macro usage
|
||||||
|
|
||||||
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 23 2023 Fabio Valentini <decathorpe@gmail.com> - 1.1.2-7
|
||||||
|
- Regenerate with rust2rpm v24
|
||||||
|
|
||||||
|
* Tue May 16 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 1.1.2-6
|
||||||
|
- Use vendored dependency in RHEL builds
|
||||||
|
|
||||||
|
* Sun Feb 05 2023 Fabio Valentini <decathorpe@gmail.com> - 1.1.2-4
|
||||||
|
- Rebuild for fixed frame pointer compiler flags in Rust RPM macros
|
||||||
|
|
||||||
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Mar 28 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.2-1
|
||||||
|
- Version 1.1.2
|
||||||
|
|
||||||
|
* Mon Mar 28 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.1-6
|
||||||
|
- Use correct path in Recommends (rhbz#2068983)
|
||||||
|
|
||||||
|
* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.1-5
|
||||||
|
- Rebuild with package notes
|
||||||
|
|
||||||
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jan 17 2022 Robin Ebert <ebertrobin2002@gmail.com> - 1.1.1-3
|
||||||
|
- Update zram-generator.conf
|
||||||
|
|
||||||
|
* Wed Dec 01 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.1-2
|
||||||
|
- Skip test that fails with EPERM
|
||||||
|
|
||||||
|
* Mon Nov 29 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.1-1
|
||||||
|
- Version 1.1.1
|
||||||
|
|
||||||
|
* Sat Nov 20 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.0-1
|
||||||
|
- Version 1.1.0
|
||||||
|
|
||||||
|
* Tue Oct 26 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.1-3
|
||||||
|
- Fix broken systemd-makefs path
|
||||||
|
|
||||||
|
* Tue Oct 26 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.1-2
|
||||||
|
- Print executec commands during build
|
||||||
|
|
||||||
|
* Mon Oct 25 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.1-1
|
||||||
|
- Version 1.0.1 (fixes #2017015)
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu May 27 2021 Fabio Valentini <decathorpe@gmail.com> - 0.3.2-4
|
||||||
|
- Allow building against rust-ini 0.17 (#1968720)
|
||||||
|
|
||||||
|
* Tue Mar 23 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3.2-3
|
||||||
|
- Fix missing path to generator dir
|
||||||
|
|
||||||
|
* Fri Mar 19 2021 Vasiliy Glazov <vascom2@gmail.com> - 0.3.2-2
|
||||||
|
- Fix max-zram-size value to 8GB
|
||||||
|
|
||||||
|
* Wed Feb 24 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3.2-1
|
||||||
|
- Downgrade logging levels (#1930869)
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
|
* Wed Jan 13 16:57:21 CET 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.3.0~rc.1-1
|
||||||
|
- Update to 0.3.0-rc.1
|
||||||
|
|
||||||
|
* Mon Dec 28 13:34:14 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0-6
|
||||||
|
- Rebuild
|
||||||
|
|
||||||
|
* Mon Nov 23 2020 Fabio Valentini <decathorpe@gmail.com> - 0.2.0-5
|
||||||
|
- Allow building against rust-ini 0.16.
|
||||||
|
|
||||||
|
* Sun Aug 16 15:02:03 GMT 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0-4
|
||||||
|
- Rebuild
|
||||||
|
|
||||||
|
* Sat Aug 1 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.0-3
|
||||||
|
- Obsolete zram package from zram-generator-defaults
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 04 17:30:46 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0-1
|
||||||
|
- Update to 0.2.0
|
||||||
|
|
||||||
|
* Tue Jun 23 19:56:14 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0~rc.1-1
|
||||||
|
- Update to 0.2.0-rc.1
|
||||||
|
|
||||||
|
* Thu Jun 18 11:30:43 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0~beta.1-3
|
||||||
|
- Create a subpackage with default configuration
|
||||||
|
|
||||||
|
* Thu Jun 18 10:14:43 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0~beta.1-2
|
||||||
|
- Install swap-create unit file
|
||||||
|
|
||||||
|
* Thu Jun 18 09:27:37 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0~beta.1-1
|
||||||
|
- Update to 0.2.0-beta.1
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Oct 7 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.2-1
|
||||||
|
- Update to latest version
|
||||||
|
|
||||||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 22 21:30:22 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.1-4
|
||||||
|
- Regenerate
|
||||||
|
|
||||||
|
* Sat Mar 09 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.1-3
|
||||||
|
- Adapt to new packaging
|
||||||
|
|
||||||
|
* Fri Mar 1 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.1-2
|
||||||
|
- Add crude patch to fix build (#1676154)
|
||||||
|
|
||||||
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Aug 16 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.1-1
|
||||||
|
- Initial package
|
||||||
|
|
||||||
|
## END: Generated by rpmautospec
|
Loading…
Reference in new issue