From 90eee36d4d308804016bc293078b42715e069e72 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 16:16:01 +0300 Subject: [PATCH] import rust-loop9-0.1.5-1.el10 --- .gitignore | 1 + .rust-loop9.metadata | 1 + SOURCES/rust2rpm.toml | 3 ++ SPECS/rust-loop9.spec | 85 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-loop9.metadata create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-loop9.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..82b0632 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/loop9-0.1.5.crate diff --git a/.rust-loop9.metadata b/.rust-loop9.metadata new file mode 100644 index 0000000..927dc51 --- /dev/null +++ b/.rust-loop9.metadata @@ -0,0 +1 @@ +515d95438e6605c123ccbb8bc58d96d1aee9b937 SOURCES/loop9-0.1.5.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..f04fd93 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +summary = "Visitor for every pixel in an image with neighboring pixels" + diff --git a/SPECS/rust-loop9.spec b/SPECS/rust-loop9.spec new file mode 100644 index 0000000..9039c99 --- /dev/null +++ b/SPECS/rust-loop9.spec @@ -0,0 +1,85 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## 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 loop9 + +Name: rust-loop9 +Version: 0.1.5 +Release: %autorelease +Summary: Visitor for every pixel in an image with neighboring pixels + +License: MIT +URL: https://crates.io/crates/loop9 +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Tiny helper function to visit every pixel in the image together with its +neighboring pixels. Duplicates pixels on the edges.} + +%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}/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.5-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Tue Jul 23 2024 Fabio Valentini - 0.1.5-1 +- Initial import (#2290392) +## END: Generated by rpmautospec