Merged update from upstream sources
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/rust-zram-generator.git#41a4240f300c0a8e8db06102f6a7716f5f53c04c
This commit is contained in:
parent
f7a4bcf2b2
commit
7dfa0e02cc
7
.gitignore
vendored
7
.gitignore
vendored
@ -0,0 +1,7 @@
|
|||||||
|
/zram-generator-0.1.1.crate
|
||||||
|
/zram-generator-0.1.2.crate
|
||||||
|
/zram-generator-0.2.0-beta.1.crate
|
||||||
|
/zram-generator-0.2.0-rc.1.crate
|
||||||
|
/zram-generator-0.2.0.crate
|
||||||
|
/zram-generator-0.3.0-rc.1.crate
|
||||||
|
/zram-generator-0.3.1.crate
|
6
.rust2rpm.conf
Normal file
6
.rust2rpm.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
buildrequires =
|
||||||
|
systemd-rpm-macros
|
||||||
|
/usr/bin/ronn
|
||||||
|
/usr/bin/make
|
||||||
|
pkgconfig(systemd)
|
3
README.md
Normal file
3
README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# rust-zram-generator
|
||||||
|
|
||||||
|
The rust-zram-generator package
|
185
rust-zram-generator.spec
Normal file
185
rust-zram-generator.spec
Normal file
@ -0,0 +1,185 @@
|
|||||||
|
# Generated by rust2rpm 17
|
||||||
|
%bcond_without check
|
||||||
|
|
||||||
|
%global crate zram-generator
|
||||||
|
|
||||||
|
Name: rust-%{crate}
|
||||||
|
Version: 0.3.1
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Systemd unit generator for zram swap devices
|
||||||
|
|
||||||
|
# Upstream license specification: MIT
|
||||||
|
License: MIT
|
||||||
|
URL: https://crates.io/crates/zram-generator
|
||||||
|
Source: %{crates_source}
|
||||||
|
Source1: zram-generator.conf
|
||||||
|
|
||||||
|
ExclusiveArch: %{rust_arches}
|
||||||
|
%if %{__cargo_skip_build}
|
||||||
|
BuildArch: noarch
|
||||||
|
%endif
|
||||||
|
|
||||||
|
BuildRequires: rust-packaging
|
||||||
|
|
||||||
|
%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.)
|
||||||
|
|
||||||
|
To activate, install %{crate}-defaults subpackage.}
|
||||||
|
|
||||||
|
%description %{_description}
|
||||||
|
|
||||||
|
%if ! %{__cargo_skip_build}
|
||||||
|
%package -n %{crate}
|
||||||
|
Summary: %{summary}
|
||||||
|
# MIT
|
||||||
|
# MIT or ASL 2.0
|
||||||
|
License: MIT
|
||||||
|
Recommends: /usr/bin/zramctl
|
||||||
|
|
||||||
|
%description -n %{crate} %{_description}
|
||||||
|
|
||||||
|
%files -n %{crate}
|
||||||
|
%license LICENSE
|
||||||
|
%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
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: %{summary}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description devel %{_description}
|
||||||
|
|
||||||
|
This package contains library source intended for building other packages
|
||||||
|
which use "%{crate}" crate.
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
||||||
|
|
||||||
|
%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 "default" feature of "%{crate}" crate.
|
||||||
|
|
||||||
|
%files -n %{name}+default-devel
|
||||||
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||||
|
cp -a %{S:1} .
|
||||||
|
%cargo_prep
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%cargo_generate_buildrequires
|
||||||
|
echo '/usr/bin/make'
|
||||||
|
echo '/usr/bin/ronn'
|
||||||
|
echo 'pkgconfig(systemd)'
|
||||||
|
echo 'systemd-rpm-macros'
|
||||||
|
|
||||||
|
%build
|
||||||
|
export SYSTEMD_UTIL_DIR=$(pkg-config --variable=systemdutildir systemd)
|
||||||
|
%cargo_build
|
||||||
|
make systemd_service
|
||||||
|
LC_ALL=C.UTF-8 ronn --roff --organization="zram-generator %{version_no_tilde}" man/*.md
|
||||||
|
|
||||||
|
%install
|
||||||
|
export SYSTEMD_UTIL_DIR=$(pkg-config --variable=systemdutildir systemd)
|
||||||
|
%cargo_install
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_systemdgeneratordir}
|
||||||
|
mv -v %{buildroot}%{_bindir}/zram-generator %{buildroot}%{_systemdgeneratordir}/
|
||||||
|
install -Dpm0644 -t %{buildroot}%{_unitdir} units/systemd-zram-setup@.service
|
||||||
|
install -Dpm0644 -t %{buildroot}%{_prefix}/lib/systemd zram-generator.conf
|
||||||
|
install -Dpm0644 -t %{buildroot}%{_mandir}/man8 man/zram-generator.8
|
||||||
|
install -Dpm0644 -t %{buildroot}%{_mandir}/man5 man/zram-generator.conf.5
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
|
%check
|
||||||
|
export SYSTEMD_UTIL_DIR=$(pkg-config --variable=systemdutildir systemd)
|
||||||
|
%cargo_test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* 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
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (zram-generator-0.3.1.crate) = f095ef92a30dd41e6915b89ea3e1a6a3a60c250358bc25c1cd12100c7675104f63880cd7057156eda86aa6431a4f4ddf0378fc7aa4a04a72b28cb4e1e235d4f3
|
7
zram-generator.conf
Normal file
7
zram-generator.conf
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# This config file enables a /dev/zram0 device with the default settings:
|
||||||
|
# — size — half of available RAM or 4GB, whichever is less
|
||||||
|
# — compression — most likely lzo-rle
|
||||||
|
#
|
||||||
|
# To disable, uninstall zram-generator-defaults or create empty
|
||||||
|
# /etc/systemd/zram-generator.conf file.
|
||||||
|
[zram0]
|
Loading…
Reference in New Issue
Block a user