diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..acf71bc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ouroboros-0.9.3.crate diff --git a/rust-ouroboros.spec b/rust-ouroboros.spec new file mode 100644 index 0000000..713ad48 --- /dev/null +++ b/rust-ouroboros.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate ouroboros + +Name: rust-%{crate} +Version: 0.9.3 +Release: 1%{?dist} +Summary: Easy, safe self-referential struct generation + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/ouroboros +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Easy, safe self-referential struct generation.} + +%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 +# crate does neither include README nor LICENSE file +# %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 +* Wed Jun 02 12:07:44 CEST 2021 Christian Heimes - 0.9.3-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b08c58f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ouroboros-0.9.3.crate) = 82a39c81c043bbfcc5ef8d72ed33ebf2dbc40847e143e06d09781d522e1810580bd6771387adcbc18269b632bc956583850e28a2298532aec5ea66ab6a5d977a