From b9cf4ac5da0ce56bd836589534d14d913be65b58 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Thu, 27 Aug 2020 17:09:17 +0200 Subject: [PATCH] Initial import Signed-off-by: Igor Raits --- .gitignore | 1 + rust-bytelines.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 rust-bytelines.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e943057 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bytelines-2.2.2.crate diff --git a/rust-bytelines.spec b/rust-bytelines.spec new file mode 100644 index 0000000..00522bc --- /dev/null +++ b/rust-bytelines.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 15 +%bcond_without check +%global debug_package %{nil} + +%global crate bytelines + +Name: rust-%{crate} +Version: 2.2.2 +Release: 1%{?dist} +Summary: Read input lines as byte slices for high efficiency + +# Upstream license specification: MIT +# https://github.com/whitfin/bytelines/issues/4 +License: MIT +URL: https://crates.io/crates/bytelines +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Read input lines as byte slices for high efficiency.} + +%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 +%doc README.md +%{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 +* Thu Aug 27 16:44:40 CEST 2020 Igor Raits - 2.2.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..5b0c87a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bytelines-2.2.2.crate) = 0d768b579993c0d72914affe36d61632e0c39310094b4d3dde29e69039249c9bb88af18e8f8033c377b05938c50e43ebd29114d2c664b2c904be27c61b1b8dad