From 5d9308cb5d7b81669b7256263b36557631b288ee Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 16:29:37 +0300 Subject: [PATCH] import rust-option-ext-0.2.0-4.el10 --- .gitignore | 1 + .rust-option-ext.metadata | 1 + SPECS/rust-option-ext.spec | 93 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-option-ext.metadata create mode 100644 SPECS/rust-option-ext.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d07c901 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/option-ext-0.2.0.crate diff --git a/.rust-option-ext.metadata b/.rust-option-ext.metadata new file mode 100644 index 0000000..18d9517 --- /dev/null +++ b/.rust-option-ext.metadata @@ -0,0 +1 @@ +0550dda1fd0ef19ad27f4444c960c836525ee50d SOURCES/option-ext-0.2.0.crate diff --git a/SPECS/rust-option-ext.spec b/SPECS/rust-option-ext.spec new file mode 100644 index 0000000..5058783 --- /dev/null +++ b/SPECS/rust-option-ext.spec @@ -0,0 +1,93 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 4; + 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 24 +%bcond_without check +%global debug_package %{nil} + +%global crate option-ext + +Name: rust-option-ext +Version: 0.2.0 +Release: %autorelease +Summary: Extends Option with additional operations + +License: MPL-2.0 +URL: https://crates.io/crates/option-ext +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Extends `Option` with additional operations.} + +%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.txt +%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_no_tilde} -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.2.0-4 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon May 29 2023 Fabio Valentini - 0.2.0-1 +- Initial import (#2210816) +## END: Generated by rpmautospec