commit 969580e6243872fd424b351f98bb9bed40f9969c Author: tigro Date: Mon Jan 15 18:51:50 2024 +0300 import rust-bstr-1.8.0-1.el9 diff --git a/.rust-bstr.metadata b/.rust-bstr.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/bstr-1.8.0.crate b/SOURCES/bstr-1.8.0.crate new file mode 100644 index 0000000..8f8abae Binary files /dev/null and b/SOURCES/bstr-1.8.0.crate differ diff --git a/SOURCES/bstr-fix-metadata.diff b/SOURCES/bstr-fix-metadata.diff new file mode 100644 index 0000000..a7065b4 --- /dev/null +++ b/SOURCES/bstr-fix-metadata.diff @@ -0,0 +1,11 @@ +--- bstr-1.8.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ bstr-1.8.0/Cargo.toml 2023-11-09T21:25:33.111346+00:00 +@@ -34,7 +34,7 @@ + "text-processing", + "encoding", + ] +-license = "MIT OR Apache-2.0" ++license = "(MIT OR Apache-2.0) AND Unicode-DFS-2016" + repository = "https://github.com/BurntSushi/bstr" + resolver = "2" + diff --git a/SPECS/rust-bstr.spec b/SPECS/rust-bstr.spec new file mode 100644 index 0000000..6e15ec4 --- /dev/null +++ b/SPECS/rust-bstr.spec @@ -0,0 +1,233 @@ +## 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 bstr + +Name: rust-bstr +Version: 1.8.0 +Release: %autorelease +Summary: String type that is not required to be valid UTF-8 + +License: (MIT OR Apache-2.0) AND Unicode-DFS-2016 +URL: https://crates.io/crates/bstr +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * add missing Unicode license terms to crate metadata: +# https://github.com/BurntSushi/bstr/issues/129 +Patch: bstr-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A string type that is not required to be valid UTF-8.} + +%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}/COPYING +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%license %{crate_instdir}/src/unicode/data/LICENSE-UNICODE +%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}+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}+unicode-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-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 - 1.8.0-1 +- Rebuilt for MSVSphere 9.3 + +* Thu Nov 09 2023 Fabio Valentini - 1.8.0-1 +- Update to version 1.8.0; Fixes RHBZ#2248937 + +* Sun Oct 15 2023 Fabio Valentini - 1.7.0-1 +- Update to version 1.7.0; Fixes RHBZ#2242963 + +* Wed Aug 30 2023 Fabio Valentini - 1.6.2-1 +- Update to version 1.6.2; Fixes RHBZ#2235790 + +* Wed Jul 12 2023 Fabio Valentini - 1.6.0-1 +- Update to version 1.6.0; Fixes RHBZ#2219875 + +* Mon May 22 2023 Fabio Valentini - 1.5.0-1 +- Update to version 1.5.0; Fixes RHBZ#2208840 + +* Sun Apr 02 2023 Fabio Valentini - 1.4.0-1 +- Update to version 1.4.0; Fixes RHBZ#2179503 + +* Sun Apr 02 2023 Fabio Valentini - 1.3.0-1 +- Update to version 1.3.0; Fixes RHBZ#2125013 + +* Sun Apr 02 2023 Fedora Release Engineering - 0.2.17-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Dec 29 2021 Igor Raits - 0.2.17-3 +- Rebuild + +* Sun Nov 28 2021 Igor Raits - 0.2.17-2 +- Bootstrap (disable tests) + +* Mon Sep 27 2021 Fabio Valentini - 0.2.17-1 +- Update to version 0.2.17; Fixes RHBZ#2006052 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.2.16-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 10 2021 Fabio Valentini - 0.2.16-1 +- Update to version 0.2.16. +- Fixes RHBZ#1925976 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.2.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Nov 11 2020 Fabio Valentini - 0.2.14-1 +- Update to version 0.2.14. +- Fixes RHBZ#1889162 + +* Wed Jul 29 2020 Fedora Release Engineering - 0.2.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon May 11 2020 Josh Stone - 0.2.13-1 +- Update to 0.2.13 + +* Fri Mar 13 2020 Josh Stone - 0.2.12-1 +- Update to 0.2.12 + +* Thu Feb 06 2020 Josh Stone - 0.2.11-1 +- Update to 0.2.11 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.2.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jan 23 2020 Josh Stone - 0.2.10-1 +- Update to 0.2.10 + +* Wed Jan 15 2020 Josh Stone - 0.2.9-1 +- Update to 0.2.9 + +* Fri Sep 13 17:28:47 CEST 2019 Robert-André Mauchin - 0.2.8-2 +- Bump quickcheck to 0.9 + +* Sun Sep 01 17:09:25 CEST 2019 Igor Gnatenko - 0.2.8-1 +- Update to 0.2.8 + +* Sun Jul 28 17:34:32 CEST 2019 Igor Gnatenko - 0.2.6-1 +- Update to 0.2.6 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jun 27 07:26:16 CEST 2019 Igor Gnatenko - 0.2.1-1 +- Update to 0.2.1 + +* Thu Jun 20 00:13:54 CEST 2019 Igor Gnatenko - 0.1.4-3 +- Regenerate + +* Sat Jun 08 23:48:42 CEST 2019 Igor Gnatenko - 0.1.4-2 +- Regenerate + +* Thu May 30 17:40:51 CEST 2019 Igor Gnatenko - 0.1.4-1 +- Update to 0.1.4 + +* Mon May 13 00:04:18 CEST 2019 Igor Gnatenko - 0.1.3-1 +- Update to 0.1.3 + +* Tue Apr 16 08:29:15 CEST 2019 Igor Gnatenko - 0.1.2-1 +- Initial package +