diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..83a730c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/num-conv-0.1.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index cb29954..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-num-conv - -The rust-num-conv package diff --git a/rust-num-conv.spec b/rust-num-conv.spec new file mode 100644 index 0000000..0925591 --- /dev/null +++ b/rust-num-conv.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate num-conv + +Name: rust-num-conv +Version: 0.1.0 +Release: %autorelease +Summary: Num_conv is a crate to convert between integer types without using as casts + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/num-conv +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +`num_conv` is a crate to convert between integer types without using +`as` casts. This provides better certainty when refactoring, makes the +exact behavior of code more explicit, and allows using turbofish syntax.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-Apache +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..b792497 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (num-conv-0.1.0.crate) = 7884c0c6599c66e40b9a79435e1bbcec60aa7e68b59686922dfab19ccbcac6a6e54f208cfb3d5a8a12e86e4dd67e09977d60b69ef6940e308a28256733f36100