2018-08-28 18:41:40 +00:00
|
|
|
# Generated by rust2rpm
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
%global crate zram-generator
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.1.1
|
2019-03-09 14:00:52 +00:00
|
|
|
Release: 3%{?dist}
|
2018-08-28 18:41:40 +00:00
|
|
|
Summary: Systemd unit generator for zram devices
|
|
|
|
|
|
|
|
License: MIT
|
2019-03-09 14:00:52 +00:00
|
|
|
URL: https://crates.io/crates/zram-generator
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Initial patched metadata
|
|
|
|
# * Update dependencies, https://github.com/systemd/zram-generator/commit/6f2b69c4a38b6da92fc4509b7d055423b8440238
|
2019-03-09 14:08:00 +00:00
|
|
|
# https://github.com/systemd/zram-generator/pull/2
|
2019-03-09 14:00:52 +00:00
|
|
|
Patch0: zram-generator-fix-metadata.diff
|
2018-08-28 18:41:40 +00:00
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
2019-03-09 14:00:52 +00:00
|
|
|
BuildRequires: (crate(failure/default) >= 0.1.2 with crate(failure/default) < 0.2.0)
|
|
|
|
BuildRequires: (crate(failure_derive/default) >= 0.1.0 with crate(failure_derive/default) < 0.2.0)
|
2019-03-09 14:08:00 +00:00
|
|
|
BuildRequires: (crate(rust-ini/default) >= 0.13.0 with crate(rust-ini/default) < 0.14.0)
|
2019-03-09 14:14:27 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2019-03-09 14:00:52 +00:00
|
|
|
|
|
|
|
%global _description \
|
|
|
|
This is a systemd unit generator that creates a unit file to create a\
|
|
|
|
zram device. To activate, copy\
|
|
|
|
/usr/share/doc/rust-zram-generator/zram-generator.conf.example to\
|
2018-08-28 18:41:40 +00:00
|
|
|
/etc/systemd/zram-generator.conf and possibly edit to adjust the limits.
|
|
|
|
|
2019-03-09 14:00:52 +00:00
|
|
|
%description %{_description}
|
|
|
|
|
2018-08-28 18:41:40 +00:00
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%description -n %{crate}
|
|
|
|
%{summary}.
|
|
|
|
|
2019-03-09 14:00:52 +00:00
|
|
|
%files -n %{crate}
|
|
|
|
%license LICENSE
|
|
|
|
%doc zram-generator.conf.example
|
|
|
|
%doc README.md TODO
|
|
|
|
%{_systemdgeneratordir}/zram-generator
|
|
|
|
|
2018-08-28 18:41:40 +00:00
|
|
|
%prep
|
2019-03-09 14:00:52 +00:00
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
2018-08-28 18:41:40 +00:00
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_systemdgeneratordir}
|
|
|
|
mv -v %{buildroot}%{_bindir}/zram-generator %{buildroot}%{_systemdgeneratordir}/
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2019-03-09 14:00:52 +00:00
|
|
|
* Sat Mar 09 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.1-3
|
|
|
|
- Adapt to new packaging
|
|
|
|
|
2019-03-01 15:34:51 +00:00
|
|
|
* Fri Mar 1 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.1-2
|
|
|
|
- Add crude patch to fix build (#1676154)
|
|
|
|
|
2019-02-02 14:39:36 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-08-28 18:41:40 +00:00
|
|
|
* Thu Aug 16 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.1-1
|
|
|
|
- Initial package
|