From 476165983647593f567db3473a72624fb5d441ee Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 15 Mar 2021 18:37:10 +0100 Subject: [PATCH] initial import (#1933431) --- .gitignore | 4 ++ README.md | 3 - rust-crunchy.spec | 159 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 164 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-crunchy.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..51a9fa7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/crunchy-0.2.2.crate diff --git a/README.md b/README.md deleted file mode 100644 index daa1b7b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-crunchy - -The rust-crunchy package diff --git a/rust-crunchy.spec b/rust-crunchy.spec new file mode 100644 index 0000000..f5858bc --- /dev/null +++ b/rust-crunchy.spec @@ -0,0 +1,159 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate crunchy + +Name: rust-%{crate} +Version: 0.2.2 +Release: 1%{?dist} +Summary: Crunchy unroller: deterministically unroll constant loops + +# Upstream license specification: MIT +# https://github.com/Vurich/crunchy/issues/6 +License: MIT +URL: https://crates.io/crates/crunchy +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Crunchy unroller: deterministically unroll constant loops.} + +%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 + +%package -n %{name}+limit_1024-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+limit_1024-devel %{_description} + +This package contains library source intended for building other packages +which use "limit_1024" feature of "%{crate}" crate. + +%files -n %{name}+limit_1024-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+limit_128-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+limit_128-devel %{_description} + +This package contains library source intended for building other packages +which use "limit_128" feature of "%{crate}" crate. + +%files -n %{name}+limit_128-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+limit_2048-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+limit_2048-devel %{_description} + +This package contains library source intended for building other packages +which use "limit_2048" feature of "%{crate}" crate. + +%files -n %{name}+limit_2048-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+limit_256-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+limit_256-devel %{_description} + +This package contains library source intended for building other packages +which use "limit_256" feature of "%{crate}" crate. + +%files -n %{name}+limit_256-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+limit_512-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+limit_512-devel %{_description} + +This package contains library source intended for building other packages +which use "limit_512" feature of "%{crate}" crate. + +%files -n %{name}+limit_512-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+limit_64-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+limit_64-devel %{_description} + +This package contains library source intended for building other packages +which use "limit_64" feature of "%{crate}" crate. + +%files -n %{name}+limit_64-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 +* Sat Feb 27 19:56:14 CET 2021 Fabio Valentini - 0.2.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..7518ad0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (crunchy-0.2.2.crate) = 36dc0aebc41a3aac5f1b178a7e61b65bcd9bb5c8539b2024f79428200f7c62daa7098af55c6ab0765febd2f8969bd6c0ac8096f73cdc0958e5c4e4eb6a4f7025