From ef2629e2b3066096ee3463d5368a51b58706bc3d Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 15:25:29 +0300 Subject: [PATCH] import rust-enum-primitive-derive-0.3.0-1.el10 --- .gitignore | 1 + .rust-enum-primitive-derive.metadata | 1 + SOURCES/README.md | 3 + SPECS/rust-enum-primitive-derive.spec | 86 +++++++++++++++++++++++++++ 4 files changed, 91 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-enum-primitive-derive.metadata create mode 100644 SOURCES/README.md create mode 100644 SPECS/rust-enum-primitive-derive.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a3786e0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/enum-primitive-derive-0.3.0.crate diff --git a/.rust-enum-primitive-derive.metadata b/.rust-enum-primitive-derive.metadata new file mode 100644 index 0000000..a3476d3 --- /dev/null +++ b/.rust-enum-primitive-derive.metadata @@ -0,0 +1 @@ +69c7ae966ad4d0446e46edf906a41f93f4845bb0 SOURCES/enum-primitive-derive-0.3.0.crate diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..3818523 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# rust-enum-primitive-derive + +The rust-enum-primitive-derive package diff --git a/SPECS/rust-enum-primitive-derive.spec b/SPECS/rust-enum-primitive-derive.spec new file mode 100644 index 0000000..dd3ff4a --- /dev/null +++ b/SPECS/rust-enum-primitive-derive.spec @@ -0,0 +1,86 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + 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 26 +%bcond_without check +%global debug_package %{nil} + +%global crate enum-primitive-derive + +Name: rust-enum-primitive-derive +Version: 0.3.0 +Release: %autorelease +Summary: Enum_primitive implementation using procedural macros to have a custom derive + +License: MIT +URL: https://crates.io/crates/enum-primitive-derive +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Enum_primitive implementation using procedural macros to have a custom +derive.} + +%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 +%doc %{crate_instdir}/CHANGELOG.md +%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.3.0-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Wed May 08 2024 Orion Poplawski - 0.3.0-1 +- Initial import +## END: Generated by rpmautospec