From 46bdab198d73d8328941841a7edde7439edc4cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 1 Mar 2019 16:34:51 +0100 Subject: [PATCH] Relax version requirement to fix build --- bump-versions.diff | 15 +++++++++++++++ rust-zram-generator.spec | 7 ++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 bump-versions.diff diff --git a/bump-versions.diff b/bump-versions.diff new file mode 100644 index 0000000..ed2e781 --- /dev/null +++ b/bump-versions.diff @@ -0,0 +1,15 @@ +--- zram-generator-0.1.1/Cargo.toml~ 1970-01-01 01:00:00.000000000 +0100 ++++ zram-generator-0.1.1/Cargo.toml 2019-03-01 16:48:14.223492246 +0100 +@@ -18,10 +18,10 @@ + homepage = "https://github.com/systemd/zram-generator" + license = "MIT" + [dependencies.failure] +-version = "0.1" ++version = "0.1.2" + + [dependencies.failure_derive] + version = "0.1" + + [dependencies.rust-ini] +-version = "0.12" ++version = "~0.12" diff --git a/rust-zram-generator.spec b/rust-zram-generator.spec index f13aaa5..8a72e86 100644 --- a/rust-zram-generator.spec +++ b/rust-zram-generator.spec @@ -18,10 +18,12 @@ 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: (crate(rust-ini) >= 0.12.0 with crate(rust-ini) < 1.0.0) BuildRequires: systemd +Patch0: bump-versions.diff + %description This is a systemd unit generator that creates a unit file to create a zram device. To activate, copy @@ -59,6 +61,9 @@ mv -v %{buildroot}%{_bindir}/zram-generator %{buildroot}%{_systemdgeneratordir}/ %{_systemdgeneratordir}/zram-generator %changelog +* Fri Mar 1 2019 Zbigniew Jędrzejewski-Szmek - 0.1.1-2 +- Add crude patch to fix build (#1676154) + * Sat Feb 02 2019 Fedora Release Engineering - 0.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild