From 08de400d3803c618b6e71340a1b5264bd06731f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 28 Aug 2018 20:41:40 +0200 Subject: [PATCH] Import package after review --- .gitignore | 0 rust-zram-generator.spec | 63 +++++++++++++++++++++++++++++++++++++ sources | 0 zram-generator-0.1.1.crate | Bin 0 -> 4762 bytes 4 files changed, 63 insertions(+) create mode 100644 .gitignore create mode 100644 rust-zram-generator.spec create mode 100644 sources create mode 100644 zram-generator-0.1.1.crate diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/rust-zram-generator.spec b/rust-zram-generator.spec new file mode 100644 index 0000000..379d081 --- /dev/null +++ b/rust-zram-generator.spec @@ -0,0 +1,63 @@ +# Generated by rust2rpm +%bcond_without check + +%global crate zram-generator + +Name: rust-%{crate} +Version: 0.1.1 +Release: 1%{?dist} +Summary: Systemd unit generator for zram devices + +License: MIT +URL: https://github.com/systemd/zram-generator +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(failure) >= 0.1.0 with crate(failure) < 0.2.0) +BuildRequires: (crate(failure_derive) >= 0.1.0 with crate(failure_derive) < 0.2.0) +BuildRequires: (crate(rust-ini) >= 0.12.0 with crate(rust-ini) < 0.13.0) + +BuildRequires: systemd + +%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 +/etc/systemd/zram-generator.conf and possibly edit to adjust the limits. + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} +%{summary}. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%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 + +%files -n %{crate} +%license LICENSE +%doc zram-generator.conf.example +%doc README.md TODO +%{_systemdgeneratordir}/zram-generator + +%changelog +* Thu Aug 16 2018 Zbigniew Jędrzejewski-Szmek - 0.1.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..e69de29 diff --git a/zram-generator-0.1.1.crate b/zram-generator-0.1.1.crate new file mode 100644 index 0000000000000000000000000000000000000000..81ceec23915dc97b3d4ff2e79fc08824cf20a0cb GIT binary patch literal 4762 zcmV;L5@qcliwFn+00002|9Wy^Z7pYIZe?;|bZ>GkFfK7JF)m|rVRU5x?OW+~+eVho zZ#+ero{>Qv5?r*n2M*%d(<*k9nVYu=#EkmI6sx zPRH?ScMB)6gj()acQ5EuV7b*f_jq7Meo(C&4Wm&rCRQ-_YZKp_+4CQM_fv1w>-+n= zKh*2>#`C?p`cpi6_5B|jJ3BkO`@7Bh^Bs&g_L{qx|KS@vaTr+vQ2uTv<&*vVPM(W# zY&+9SEr1**ti?*TI1FlI+pCF@l9-tK>r)t$lQYMfhnT)7RS*4TRCV|V?zDDF6^4N+ zAIEdsoB6G#9B^#!stWCDRo^+4>ZeM;oxrDGJpURiE;a2U;(>dqec-{^4>AF%5U;>@zVb%7*elkm2 z7g4kf&00-P8@3NV`O>i_yn1a%3tCb{UDCdn(_Vi*ZM6Tn9ociw5BOKX@sR!3_nxoX z|L*?tNBjR4&-VXlHSSqshgV4zwAvwA3)$9{R)b{bJkqweYuiQ;8sn?)SkWJ!jn78= zmpTynu4DMY@6P}>+J9~;^i3Y&Q2AyCVMY?d?3;|2KFpme%CTnj@}ymP^sL zRMdzP1>(^5J(?2QQPQk9TKIvC`F|ZFP}uyM{pbJv?=<+tf8p2Rm0cZta`_ee@zeMw z{KT*RYet1%maYY~r)iSO1z38%Kok9INTOYTj%H?etmsm(0gi36VSS4!VU zQy$nK@?lDKsyP>6Z#-i}bGy$N24I!8i8(tD&b5 z3XH__U#_sZ8ZwMxgm`dy8aY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