commit ec5f359a6c330a5be2e452020521382bb8a6d460 Author: tigro Date: Mon Jan 15 20:39:33 2024 +0300 import rust-bytecount-0.6.7-1.el9 diff --git a/.rust-bytecount.metadata b/.rust-bytecount.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/bytecount-0.6.7.crate b/SOURCES/bytecount-0.6.7.crate new file mode 100644 index 0000000..a402a84 Binary files /dev/null and b/SOURCES/bytecount-0.6.7.crate differ diff --git a/SOURCES/bytecount-fix-metadata.diff b/SOURCES/bytecount-fix-metadata.diff new file mode 100644 index 0000000..eb3302b --- /dev/null +++ b/SOURCES/bytecount-fix-metadata.diff @@ -0,0 +1,20 @@ +--- bytecount-0.6.7/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ bytecount-0.6.7/Cargo.toml 2023-11-10T16:43:58.056599+00:00 +@@ -33,17 +33,9 @@ + [lib] + bench = false + +-[[bench]] +-name = "bench" +-harness = false +- + [dependencies.packed_simd] + version = "0.3.8" + optional = true +- +-[dev-dependencies.criterion] +-version = "0.4" +-default-features = false + + [dev-dependencies.quickcheck] + version = "1.0" diff --git a/SPECS/rust-bytecount.spec b/SPECS/rust-bytecount.spec new file mode 100644 index 0000000..3e8e8b2 --- /dev/null +++ b/SPECS/rust-bytecount.spec @@ -0,0 +1,221 @@ +## 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 bytecount + +Name: rust-bytecount +Version: 0.6.7 +Release: %autorelease +Summary: Count occurrences of a given byte, or the number of UTF-8 code points + +# Upstream license specification: Apache-2.0/MIT +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/bytecount +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency +Patch: bytecount-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Count occurrences of a given byte, or the number of UTF-8 code points, +in a byte slice, fast.} + +%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.Apache2 +%license %{crate_instdir}/LICENSE.MIT +%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}+html_report-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+html_report-devel %{_description} + +This package contains library source intended for building other packages which +use the "html_report" feature of the "%{crate}" crate. + +%files -n %{name}+html_report-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+runtime-dispatch-simd-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+runtime-dispatch-simd-devel %{_description} + +This package contains library source intended for building other packages which +use the "runtime-dispatch-simd" feature of the "%{crate}" crate. + +%files -n %{name}+runtime-dispatch-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.6.7-1 +- Rebuilt for MSVSphere 9.3 + +* Fri Nov 10 2023 Fabio Valentini - 0.6.7-1 +- Update to version 0.6.7; Fixes RHBZ#2245599 + +* Sun Oct 08 2023 Fabio Valentini - 0.6.4-1 +- Update to version 0.6.4; Fixes RHBZ#2241659 + +* Sun Aug 06 2023 Fabio Valentini - 0.6.3-5 +- Regenerate with rust2rpm v24 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.6.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 0.6.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.6.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jul 16 2022 Fabio Valentini - 0.6.3-1 +- Update to version 0.6.3; Fixes RHBZ#2092589 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.6.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.6.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.6.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Dec 02 2020 Fabio Valentini - 0.6.2-1 +- Update to version 0.6.2. +- Fixes RHBZ#1903388 + +* Thu Nov 19 2020 Fabio Valentini - 0.6.1-1 +- Update to version 0.6.1. +- Fixes RHBZ#1899742 + +* Wed Jul 29 2020 Fedora Release Engineering - 0.6.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Sep 13 17:35:02 CEST 2019 Robert-André Mauchin - 0.6.0-1 +- Update to 0.6.0 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.5.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jun 20 16:53:52 CEST 2019 Igor Gnatenko - 0.5.1-4 +- Regenerate + +* Sun Jun 09 12:26:22 CEST 2019 Igor Gnatenko - 0.5.1-3 +- Fix skip_build + +* Sat Jun 08 23:49:59 CEST 2019 Igor Gnatenko - 0.5.1-2 +- Regenerate + +* Sun Feb 10 2019 Igor Gnatenko - 0.5.1-1 +- Update to 0.5.1 + +* Sun Feb 10 2019 Igor Gnatenko - 0.5.0-1 +- Update to 0.5.0 + +* Sat Feb 02 2019 Fedora Release Engineering - 0.3.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Oct 28 2018 Igor Gnatenko - 0.3.2-2 +- Adapt to new packaging + +* Fri Aug 10 2018 Igor Gnatenko - 0.3.2-1 +- Update to 0.3.2 + +* Sat Jul 14 2018 Fedora Release Engineering - 0.3.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 0.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 31 2018 Igor Gnatenko - 0.3.1-1 +- Update to 0.3.1 + +* Tue Jan 09 2018 Igor Gnatenko - 0.3.0-1 +- Update to 0.3.0 + +* Mon Jan 08 2018 Igor Gnatenko - 0.2.0-4 +- Rebuild for rust-packaging v5 + +* Sun Dec 31 2017 Igor Gnatenko - 0.2.0-3 +- Bump rand to 0.4 +- Bump quickcheck to 0.6 + +* Sat Dec 02 2017 Igor Gnatenko - 0.2.0-2 +- Bump quickcheck to 0.5 + +* Fri Nov 10 2017 Igor Gnatenko - 0.2.0-1 +- Update to 0.2.0 + +* Fri Jul 21 2017 Igor Gnatenko - 0.1.7-1 +- Update to 0.1.7 + +* Thu Jun 15 2017 Igor Gnatenko - 0.1.6-3 +- Relax quickcheck version + +* Wed Jun 14 2017 Igor Gnatenko - 0.1.6-2 +- Port to use rust-packaging + +* Sat Feb 25 2017 Igor Gnatenko - 0.1.6-1 +- Initial package +