commit 8853db489bab2ccfbd6aedbb0d5fb306876cfe55 Author: MSVSphere Packaging Team Date: Fri Dec 20 18:13:00 2024 +0300 import rust-zerovec-derive-0.10.3-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..46e0c86 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/zerovec-derive-0.10.3.crate diff --git a/.rust-zerovec-derive.metadata b/.rust-zerovec-derive.metadata new file mode 100644 index 0000000..1903923 --- /dev/null +++ b/.rust-zerovec-derive.metadata @@ -0,0 +1 @@ +29289d9d88b1016e2aad966daf7c89e22da9baea SOURCES/zerovec-derive-0.10.3.crate diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..a9505c9 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# rust-zerovec-derive + +The rust-zerovec-derive package diff --git a/SOURCES/rust-zerovec-derive.rpmlintrc b/SOURCES/rust-zerovec-derive.rpmlintrc new file mode 100644 index 0000000..0244557 --- /dev/null +++ b/SOURCES/rust-zerovec-derive.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..f747f91 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,5 @@ +[scripts.prep] +pre = [ + "# Avoid a circular dependency on the zerovec crate", + "rm -rv examples/", +] diff --git a/SPECS/rust-zerovec-derive.spec b/SPECS/rust-zerovec-derive.spec new file mode 100644 index 0000000..d7c85fe --- /dev/null +++ b/SPECS/rust-zerovec-derive.spec @@ -0,0 +1,86 @@ +## 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 zerovec-derive + +Name: rust-zerovec-derive +Version: 0.10.3 +Release: %autorelease +Summary: Custom derive for the zerovec crate + +License: Unicode-3.0 +URL: https://crates.io/crates/zerovec-derive +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Custom derive for the zerovec crate.} + +%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 +# Avoid a circular dependency on the zerovec crate +rm -rv examples/ +%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.10.3-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Sep 13 2024 Benjamin A. Beasley - 0.10.3-1 +- Initial package (close RHBZ#2310870) +## END: Generated by rpmautospec