commit 50f5e6222aa87b0aa5cdb8212199068f64c51362 Author: tigro Date: Mon Nov 20 11:37:59 2023 +0300 import rust-bitvec-1.0.1-1.el9 diff --git a/.rust-bitvec.metadata b/.rust-bitvec.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/bitvec-1.0.1.crate b/SOURCES/bitvec-1.0.1.crate new file mode 100644 index 0000000..0884550 Binary files /dev/null and b/SOURCES/bitvec-1.0.1.crate differ diff --git a/SOURCES/bitvec-fix-metadata.diff b/SOURCES/bitvec-fix-metadata.diff new file mode 100644 index 0000000..d23e970 --- /dev/null +++ b/SOURCES/bitvec-fix-metadata.diff @@ -0,0 +1,12 @@ +--- bitvec-1.0.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ bitvec-1.0.1/Cargo.toml 2023-02-28T13:39:12.969102+00:00 +@@ -72,9 +72,6 @@ + [dev-dependencies.bincode] + version = "1.3" + +-[dev-dependencies.criterion] +-version = "0.3" +- + [dev-dependencies.rand] + version = "0.8" + diff --git a/SPECS/rust-bitvec.spec b/SPECS/rust-bitvec.spec new file mode 100644 index 0000000..28b221e --- /dev/null +++ b/SPECS/rust-bitvec.spec @@ -0,0 +1,167 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## 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 24 +%bcond_without check +%global debug_package %{nil} + +%global crate bitvec + +Name: rust-bitvec +Version: 1.0.1 +Release: %autorelease +Summary: Addresses memory by bits, for packed collections and bitfields + +License: MIT +URL: https://crates.io/crates/bitvec +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch: bitvec-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Addresses memory by bits, for packed collections and bitfields.} + +%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 + +%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 + +%package -n %{name}+atomic-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+atomic-devel %{_description} + +This package contains library source intended for building other packages which +use the "atomic" feature of the "%{crate}" crate. + +%files -n %{name}+atomic-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+testing-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+testing-devel %{_description} + +This package contains library source intended for building other packages which +use the "testing" feature of the "%{crate}" crate. + +%files -n %{name}+testing-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 +* Mon Nov 20 2023 Arkady L. Shane - 1.0.1-1 +- Rebuilt for MSVSphere 9.2 + +* Tue Feb 28 2023 Fabio Valentini - 1.0.1-1 +- Update to version 1.0.1; Fixes RHBZ#1928441 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.19.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Nov 04 2022 Fabio Valentini - 0.19.6-1 +- Update to version 0.19.6 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.19.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.19.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.19.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.19.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sun Jan 24 2021 Fabio Valentini - 0.19.4-1 +- Initial package +