diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..72ad8bd --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/bytes-0.5.6.crate diff --git a/README.md b/README.md deleted file mode 100644 index afc5f3a..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-bytes0.5 - -The rust-bytes0.5 package diff --git a/rust-bytes0.5.spec b/rust-bytes0.5.spec new file mode 100644 index 0000000..f242861 --- /dev/null +++ b/rust-bytes0.5.spec @@ -0,0 +1,100 @@ +# Generated by rust2rpm 16 +# * loom is not packaged +%bcond_with check +%global debug_package %{nil} + +%global crate bytes + +Name: rust-%{crate}0.5 +Version: 0.5.6 +Release: 1%{?dist} +Summary: Types and traits for working with bytes + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/bytes +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Types and traits for working with bytes.} + +%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 +%doc README.md CHANGELOG.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 + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages +which use "serde" feature of "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages +which use "std" feature of "%{crate}" crate. + +%files -n %{name}+std-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 +* Fri Nov 27 2020 Fabio Valentini - 0.5.6-1 +- Initial compat package for bytes 0.5 diff --git a/sources b/sources new file mode 100644 index 0000000..ddc1978 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bytes-0.5.6.crate) = a1caa1f58754f4d2e54b8df8d0ca0083ee5282f5e4d3bb5b1735022933dd2e66fb3f39c7a82216bf7a7e29591695c2e10c8b7144c83ac598e34193f2425a32cc