Update to 0.3.0-rc.1
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
0768aefaaa
commit
46a36694ce
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
|||||||
/zram-generator-0.2.0-beta.1.crate
|
/zram-generator-0.2.0-beta.1.crate
|
||||||
/zram-generator-0.2.0-rc.1.crate
|
/zram-generator-0.2.0-rc.1.crate
|
||||||
/zram-generator-0.2.0.crate
|
/zram-generator-0.2.0.crate
|
||||||
|
/zram-generator-0.3.0-rc.1.crate
|
||||||
|
@ -2,3 +2,5 @@
|
|||||||
buildrequires =
|
buildrequires =
|
||||||
systemd-rpm-macros
|
systemd-rpm-macros
|
||||||
/usr/bin/ronn
|
/usr/bin/ronn
|
||||||
|
/usr/bin/make
|
||||||
|
pkgconfig(systemd)
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
# Generated by rust2rpm 16
|
# Generated by rust2rpm 17
|
||||||
%bcond_without check
|
%bcond_without check
|
||||||
|
|
||||||
%global crate zram-generator
|
%global crate zram-generator
|
||||||
|
|
||||||
Name: rust-%{crate}
|
Name: rust-%{crate}
|
||||||
Version: 0.2.0
|
Version: 0.3.0~rc.1
|
||||||
Release: 6%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Systemd unit generator for zram swap devices
|
Summary: Systemd unit generator for zram swap devices
|
||||||
|
|
||||||
# Upstream license specification: MIT
|
# Upstream license specification: MIT
|
||||||
@ -13,9 +13,6 @@ License: MIT
|
|||||||
URL: https://crates.io/crates/zram-generator
|
URL: https://crates.io/crates/zram-generator
|
||||||
Source: %{crates_source}
|
Source: %{crates_source}
|
||||||
Source1: zram-generator.conf
|
Source1: zram-generator.conf
|
||||||
# Initial patched metadata
|
|
||||||
# * allow rust-ini 0.16
|
|
||||||
Patch0: zram-generator-fix-metadata.diff
|
|
||||||
|
|
||||||
ExclusiveArch: %{rust_arches}
|
ExclusiveArch: %{rust_arches}
|
||||||
%if %{__cargo_skip_build}
|
%if %{__cargo_skip_build}
|
||||||
@ -23,8 +20,6 @@ BuildArch: noarch
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRequires: rust-packaging
|
BuildRequires: rust-packaging
|
||||||
BuildRequires: systemd-rpm-macros
|
|
||||||
BuildRequires: /usr/bin/ronn
|
|
||||||
|
|
||||||
%global _description %{expand:
|
%global _description %{expand:
|
||||||
This is a systemd unit generator that enables swap on zram.
|
This is a systemd unit generator that enables swap on zram.
|
||||||
@ -50,7 +45,7 @@ Recommends: /usr/bin/zramctl
|
|||||||
%doc zram-generator.conf.example
|
%doc zram-generator.conf.example
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_systemdgeneratordir}/zram-generator
|
%{_systemdgeneratordir}/zram-generator
|
||||||
%{_unitdir}/swap-create@.service
|
%{_unitdir}/systemd-zram-setup@.service
|
||||||
%{_mandir}/man8/zram-generator.8*
|
%{_mandir}/man8/zram-generator.8*
|
||||||
%{_mandir}/man5/zram-generator.conf.5*
|
%{_mandir}/man5/zram-generator.conf.5*
|
||||||
|
|
||||||
@ -100,27 +95,38 @@ cp -a %{S:1} .
|
|||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%cargo_generate_buildrequires
|
%cargo_generate_buildrequires
|
||||||
|
echo '/usr/bin/make'
|
||||||
|
echo '/usr/bin/ronn'
|
||||||
|
echo 'systemd-rpm-macros'
|
||||||
|
echo 'pkgconfig(systemd)'
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export SYSTEMD_UTIL_DIR=$(pkg-config --variable=systemdutildir systemd)
|
||||||
%cargo_build
|
%cargo_build
|
||||||
|
make systemd_service
|
||||||
LC_ALL=C.UTF-8 ronn --roff --organization="zram-generator %{version_no_tilde}" man/*.md
|
LC_ALL=C.UTF-8 ronn --roff --organization="zram-generator %{version_no_tilde}" man/*.md
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
export SYSTEMD_UTIL_DIR=$(pkg-config --variable=systemdutildir systemd)
|
||||||
%cargo_install
|
%cargo_install
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_systemdgeneratordir}
|
mkdir -p %{buildroot}%{_systemdgeneratordir}
|
||||||
mv -v %{buildroot}%{_bindir}/zram-generator %{buildroot}%{_systemdgeneratordir}/
|
mv -v %{buildroot}%{_bindir}/zram-generator %{buildroot}%{_systemdgeneratordir}/
|
||||||
install -Dpm0644 -t %{buildroot}%{_unitdir} units/swap-create@.service
|
install -Dpm0644 -t %{buildroot}%{_unitdir} units/systemd-zram-setup@.service
|
||||||
install -Dpm0644 -t %{buildroot}%{_prefix}/lib/systemd zram-generator.conf
|
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}/man8 man/zram-generator.8
|
||||||
install -Dpm0644 -t %{buildroot}%{_mandir}/man5 man/zram-generator.conf.5
|
install -Dpm0644 -t %{buildroot}%{_mandir}/man5 man/zram-generator.conf.5
|
||||||
|
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
%check
|
%check
|
||||||
|
export SYSTEMD_UTIL_DIR=$(pkg-config --variable=systemdutildir systemd)
|
||||||
%cargo_test
|
%cargo_test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Mon Dec 28 13:34:14 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.0-6
|
||||||
- Rebuild
|
- Rebuild
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (zram-generator-0.2.0.crate) = 03c80bbd866e32d8e47ecb87ff0ee782d247b81f3cb6c429481f6954dfb106605e9fd895598b39e24e1ac115d1d65f0b99640186ed47be585b5a8225a710ff88
|
SHA512 (zram-generator-0.3.0-rc.1.crate) = e182acd912bb6c1e640e167e7dc89ff2d47ebaf1b7cc408fd5920ffd6ff489082663573f3a631854846bf98a330bf86243495ea0450621cd04eeb6001e9685d0
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
--- zram-generator-0.2.0/Cargo.toml 2020-07-04T15:30:00+00:00
|
|
||||||
+++ zram-generator-0.2.0/Cargo.toml 2020-11-23T13:24:06.584817+00:00
|
|
||||||
@@ -38,7 +38,7 @@
|
|
||||||
features = ["std"]
|
|
||||||
|
|
||||||
[dependencies.rust-ini]
|
|
||||||
-version = ">=0.13, <0.16"
|
|
||||||
+version = ">=0.13, <0.17"
|
|
||||||
[dev-dependencies.fs_extra]
|
|
||||||
version = "1.1"
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user