commit 161a9482756e7f43757016395048f099c1bdc084 Author: tigro Date: Mon Jan 15 22:46:53 2024 +0300 import rust-str_indices-0.4.3-1.el9 diff --git a/.rust-str_indices.metadata b/.rust-str_indices.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/str_indices-0.4.3.crate b/SOURCES/str_indices-0.4.3.crate new file mode 100644 index 0000000..d0fb416 Binary files /dev/null and b/SOURCES/str_indices-0.4.3.crate differ diff --git a/SOURCES/str_indices-fix-metadata.diff b/SOURCES/str_indices-fix-metadata.diff new file mode 100644 index 0000000..b637732 --- /dev/null +++ b/SOURCES/str_indices-fix-metadata.diff @@ -0,0 +1,13 @@ +--- str_indices-0.4.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ str_indices-0.4.3/Cargo.toml 2023-11-07T20:20:56.010316+00:00 +@@ -40,10 +40,6 @@ + + [dependencies] + +-[dev-dependencies.criterion] +-version = "0.3" +-features = ["html_reports"] +- + [dev-dependencies.proptest] + version = "1.0" + diff --git a/SPECS/rust-str_indices.spec b/SPECS/rust-str_indices.spec new file mode 100644 index 0000000..df735d4 --- /dev/null +++ b/SPECS/rust-str_indices.spec @@ -0,0 +1,105 @@ +## 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate str_indices + +Name: rust-str_indices +Version: 0.4.3 +Release: %autorelease +Summary: Count and convert between indexing schemes on string slices + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/str_indices +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * Drop benchmark dependency +Patch: str_indices-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Count and convert between indexing schemes on string slices.} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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 + +%package -n %{name}+simd-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+simd-devel %{_description} + +This package contains library source intended for building other packages which +use the "simd" feature of the "%{crate}" crate. + +%files -n %{name}+simd-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 +* Mon Jan 15 2024 Arkady L. Shane - 0.4.3-1 +- Rebuilt for MSVSphere 9.3 + +* Tue Nov 07 2023 blinxen - 0.4.3-1 +- Update to version 0.4.3 (rhbz#2248581) + +* Thu Oct 19 2023 blinxen - 0.4.2-1 +- Update to version 0.4.2 (rhbz#2244930) + +* Sun Oct 08 2023 blinxen - 0.4.1-1 +- Initial package (rhbz#2242618)