diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..18a2f08 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/num_enum-0.5.1.crate diff --git a/rust-num_enum.spec b/rust-num_enum.spec new file mode 100644 index 0000000..fa323ae --- /dev/null +++ b/rust-num_enum.spec @@ -0,0 +1,115 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate num_enum + +Name: rust-%{crate} +Version: 0.5.1 +Release: 1%{?dist} +Summary: Procedural macros to make inter-operation between primitives and enums easier + +# Upstream license specification: BSD-3-Clause +License: BSD +URL: https://crates.io/crates/num_enum +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Procedural macros to make inter-operation between primitives and enums easier.} + +%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 +%{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}+complex-expressions-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+complex-expressions-devel %{_description} + +This package contains library source intended for building other packages +which use "complex-expressions" feature of "%{crate}" crate. + +%files -n %{name}+complex-expressions-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+external_doc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+external_doc-devel %{_description} + +This package contains library source intended for building other packages +which use "external_doc" feature of "%{crate}" crate. + +%files -n %{name}+external_doc-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 +# Disable broken tests +rm tests/renamed_num_enum.rs \ + tests/try_build/compile_fail/conflicting_derive.rs \ + tests/try_build/compile_fail/unreachable_patterns.rs +%cargo_test +%endif + +%changelog +* Fri May 07 09:20:30 PDT 2021 Davide Cavalca - 0.5.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..3057004 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (num_enum-0.5.1.crate) = 96e31e53697e70a91afc49f5474dadb88e6fcf772dc9f14d39a153aaed7e12500500c6a9395b1fd4870be29ea13d13818b30cd5b1d59844773bf2edbc76d7677