From bc8f239cda4ab00876ef13b34bc9d938aa14a0a5 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 21 Oct 2020 15:03:53 +0200 Subject: [PATCH] initial import (blobby 0.1 compat package) --- .gitignore | 4 +++ README.md | 3 -- blobby-fix-metadata.diff | 10 ++++++ rust-blobby0.1.spec | 77 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 92 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 blobby-fix-metadata.diff create mode 100644 rust-blobby0.1.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9883021 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/blobby-0.1.2.crate diff --git a/README.md b/README.md deleted file mode 100644 index 0c0871f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-blobby0.1 - -The rust-blobby0.1 package diff --git a/blobby-fix-metadata.diff b/blobby-fix-metadata.diff new file mode 100644 index 0000000..c3b4d2b --- /dev/null +++ b/blobby-fix-metadata.diff @@ -0,0 +1,10 @@ +--- blobby-0.1.2/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ blobby-0.1.2/Cargo.toml 2020-10-21T12:53:49.645144+00:00 +@@ -27,6 +27,6 @@ + features = ["std"] + + [dev-dependencies.hex] +-version = "0.3" ++version = "0.4" + [badges.travis-ci] + repository = "RustCrypto/utils" diff --git a/rust-blobby0.1.spec b/rust-blobby0.1.spec new file mode 100644 index 0000000..b00c6b8 --- /dev/null +++ b/rust-blobby0.1.spec @@ -0,0 +1,77 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate blobby + +Name: rust-%{crate}0.1 +Version: 0.1.2 +Release: 1%{?dist} +Summary: Iterator over simple binary blob storage + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/blobby +Source: %{crates_source} +# Initial patched metadata +# * bump dev-dep on hex from 0.3 to 0.4 +Patch0: blobby-fix-metadata.diff + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Iterator over simple binary blob storage.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-MIT +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Wed Oct 21 2020 Fabio Valentini - 0.1.2-1 +- Initial compat package for blobby 0.1 diff --git a/sources b/sources new file mode 100644 index 0000000..858969f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (blobby-0.1.2.crate) = a77b86b4a1ef730cb8860d29001f695eefd0f003bb754b984974784e8ce117bd82d646d3e27b1e06c7b0f17ea4996e1c1242281923163bf5b80bbce953a59ff1