allow building against rust-ini 0.16
This commit is contained in:
parent
7ffbec58ca
commit
b25a65a208
@ -1,3 +1,4 @@
|
||||
[DEFAULT]
|
||||
buildrequires =
|
||||
systemd-rpm-macros
|
||||
/usr/bin/ronn
|
||||
|
@ -1,11 +1,11 @@
|
||||
# Generated by rust2rpm 15
|
||||
# Generated by rust2rpm 16
|
||||
%bcond_without check
|
||||
|
||||
%global crate zram-generator
|
||||
|
||||
Name: rust-%{crate}
|
||||
Version: 0.2.0
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Systemd unit generator for zram swap devices
|
||||
|
||||
# Upstream license specification: MIT
|
||||
@ -13,6 +13,9 @@ License: MIT
|
||||
URL: https://crates.io/crates/zram-generator
|
||||
Source: %{crates_source}
|
||||
Source1: zram-generator.conf
|
||||
# Initial patched metadata
|
||||
# * allow rust-ini 0.16
|
||||
Patch0: zram-generator-fix-metadata.diff
|
||||
|
||||
ExclusiveArch: %{rust_arches}
|
||||
%if %{__cargo_skip_build}
|
||||
@ -49,7 +52,7 @@ Recommends: /usr/bin/zramctl
|
||||
%{_systemdgeneratordir}/zram-generator
|
||||
%{_unitdir}/swap-create@.service
|
||||
%{_mandir}/man8/zram-generator.8*
|
||||
%{_mandir}/man5/zram-generator.5*
|
||||
%{_mandir}/man5/zram-generator.conf.5*
|
||||
|
||||
%package -n %{crate}-defaults
|
||||
Summary: Default configuration for %{crate}
|
||||
@ -65,7 +68,7 @@ BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%package devel
|
||||
Summary: %{SUMMARY}
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description devel %{_description}
|
||||
@ -79,7 +82,7 @@ which use "%{crate}" crate.
|
||||
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
||||
|
||||
%package -n %{name}+default-devel
|
||||
Summary: %{SUMMARY}
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+default-devel %{_description}
|
||||
@ -110,7 +113,7 @@ mv -v %{buildroot}%{_bindir}/zram-generator %{buildroot}%{_systemdgeneratordir}/
|
||||
install -Dpm0644 -t %{buildroot}%{_unitdir} units/swap-create@.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.5
|
||||
install -Dpm0644 -t %{buildroot}%{_mandir}/man5 man/zram-generator.conf.5
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
@ -118,6 +121,9 @@ install -Dpm0644 -t %{buildroot}%{_mandir}/man5 man/zram-generator.5
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
|
11
zram-generator-fix-metadata.diff
Normal file
11
zram-generator-fix-metadata.diff
Normal file
@ -0,0 +1,11 @@
|
||||
--- 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