commit 94978dc7e49651b8575e347d82aa8058a1f9abbd Author: MSVSphere Packaging Team Date: Fri Dec 20 16:48:50 2024 +0300 import rust-rancor-0.1.0-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..18a3d0d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rancor-0.1.0.crate diff --git a/.rust-rancor.metadata b/.rust-rancor.metadata new file mode 100644 index 0000000..969d11c --- /dev/null +++ b/.rust-rancor.metadata @@ -0,0 +1 @@ +9993631fe99c81bab6fbf571d4e5ec5b6f815fee SOURCES/rancor-0.1.0.crate diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..8b3a942 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# rust-rancor + +The rust-rancor package diff --git a/SOURCES/rust-rancor.rpmlintrc b/SOURCES/rust-rancor.rpmlintrc new file mode 100644 index 0000000..0244557 --- /dev/null +++ b/SOURCES/rust-rancor.rpmlintrc @@ -0,0 +1,2 @@ +# Feature metapackages are not supposed to have documentation! +addFilter(r"\+[-_\w]+-devel.noarch: W: no-documentation") diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..5c1a9fa --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,11 @@ +[requires] +build = [ + "dos2unix", +] + +[scripts.prep] +pre = [ + "# The crate has a mixture of newline styles.", + "# https://github.com/rkyv/rancor/commit/b65012a3848487155c072682b151f50599404bae", + "find . -type f | xargs -r -t dos2unix --keepdate", +] diff --git a/SPECS/rust-rancor.spec b/SPECS/rust-rancor.spec new file mode 100644 index 0000000..7de0915 --- /dev/null +++ b/SPECS/rust-rancor.spec @@ -0,0 +1,100 @@ +## 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 rancor + +Name: rust-rancor +Version: 0.1.0 +Release: %autorelease +Summary: Scalable and efficient error handling without type composition + +License: MIT +URL: https://crates.io/crates/rancor +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: dos2unix + +%global _description %{expand: +Scalable and efficient error handling without type composition.} + +%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 + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +# The crate has a mixture of newline styles. +# https://github.com/rkyv/rancor/commit/b65012a3848487155c072682b151f50599404bae +find . -type f | xargs -r -t dos2unix --keepdate +%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-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Tue Oct 08 2024 Benjamin A. Beasley - 0.1.0-1 +- Initial package (close RHBZ#2314085) +## END: Generated by rpmautospec