commit 1e8b8a5188d6fa1254656ffb9a7e17a52fdced0b Author: MSVSphere Packaging Team Date: Fri Dec 20 16:26:24 2024 +0300 import rust-num-conv-0.1.0-2.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e531712 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/num-conv-0.1.0.crate diff --git a/.rust-num-conv.metadata b/.rust-num-conv.metadata new file mode 100644 index 0000000..0c7591c --- /dev/null +++ b/.rust-num-conv.metadata @@ -0,0 +1 @@ +9d2a9dae2bc14b4173ed91f054ee5e5560089427 SOURCES/num-conv-0.1.0.crate diff --git a/SPECS/rust-num-conv.spec b/SPECS/rust-num-conv.spec new file mode 100644 index 0000000..d0415b9 --- /dev/null +++ b/SPECS/rust-num-conv.spec @@ -0,0 +1,90 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# 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 +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.1.0-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Feb 17 2024 Fabio Valentini - 0.1.0-1 +- Initial import (#2262656) +## END: Generated by rpmautospec