Initial import (#2262656)

epel10
Fabio Valentini 11 months ago
parent c138b3ee93
commit 78080766a2
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -0,0 +1 @@
/num-conv-0.1.0.crate

@ -1,3 +0,0 @@
# rust-num-conv
The rust-num-conv package

@ -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

@ -0,0 +1 @@
SHA512 (num-conv-0.1.0.crate) = 7884c0c6599c66e40b9a79435e1bbcec60aa7e68b59686922dfab19ccbcac6a6e54f208cfb3d5a8a12e86e4dd67e09977d60b69ef6940e308a28256733f36100
Loading…
Cancel
Save