diff --git a/.rust2rpm.conf b/.rust2rpm.conf index 4b8b165..067a624 100644 --- a/.rust2rpm.conf +++ b/.rust2rpm.conf @@ -1,3 +1,4 @@ [DEFAULT] buildrequires = systemd-rpm-macros + /usr/bin/ronn diff --git a/rust-zram-generator.spec b/rust-zram-generator.spec index c55fe7c..c2782fc 100644 --- a/rust-zram-generator.spec +++ b/rust-zram-generator.spec @@ -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 - 0.2.0-5 +- Allow building against rust-ini 0.16. + * Sun Aug 16 15:02:03 GMT 2020 Igor Raits - 0.2.0-4 - Rebuild diff --git a/zram-generator-fix-metadata.diff b/zram-generator-fix-metadata.diff new file mode 100644 index 0000000..a9536f7 --- /dev/null +++ b/zram-generator-fix-metadata.diff @@ -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" +