From 340d8782d2add8f4cc7e99879d21b71d6a08e54e Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 14:58:46 +0300 Subject: [PATCH] import rust-bstr-1.11.0-1.el10 --- .gitignore | 1 + .rust-bstr.metadata | 1 + SOURCES/bstr-fix-metadata.diff | 11 ++ SPECS/rust-bstr.spec | 256 +++++++++++++++++++++++++++++++++ 4 files changed, 269 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-bstr.metadata create mode 100644 SOURCES/bstr-fix-metadata.diff create mode 100644 SPECS/rust-bstr.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b5aa1c7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/bstr-1.11.0.crate diff --git a/.rust-bstr.metadata b/.rust-bstr.metadata new file mode 100644 index 0000000..3b6a71f --- /dev/null +++ b/.rust-bstr.metadata @@ -0,0 +1 @@ +5063406722a78c6db04b612367fe2b991e1abc44 SOURCES/bstr-1.11.0.crate diff --git a/SOURCES/bstr-fix-metadata.diff b/SOURCES/bstr-fix-metadata.diff new file mode 100644 index 0000000..879b0fc --- /dev/null +++ b/SOURCES/bstr-fix-metadata.diff @@ -0,0 +1,11 @@ +--- bstr-1.11.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ bstr-1.11.0/Cargo.toml 2024-12-04T22:38:17.432115+00:00 +@@ -40,7 +40,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..e22ce55 --- /dev/null +++ b/SPECS/rust-bstr.spec @@ -0,0 +1,256 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## 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 27 +%bcond check 1 +%global debug_package %{nil} + +%global crate bstr + +Name: rust-bstr +Version: 1.11.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 +* Fri Dec 20 2024 MSVSphere Packaging Team - 1.11.0-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Wed Dec 04 2024 Fabio Valentini - 1.11.0-1 +- Update to version 1.11.0; Fixes RHBZ#2326142 + +* Fri Jul 26 2024 Fabio Valentini - 1.10.0-1 +- Update to version 1.10.0; Fixes RHBZ#2299852 + +* Fri Jul 19 2024 Fedora Release Engineering - 1.9.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Apr 13 2024 Fabio Valentini - 1.9.1-1 +- Update to version 1.9.1; Fixes RHBZ#2265845 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.9.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jan 11 2024 Fabio Valentini - 1.9.0-1 +- Update to version 1.9.0; Fixes RHBZ#2256147 + +* Thu Nov 09 2023 Fabio Valentini - 1.8.0-1 +- Update to version 1.8.0; Fixes RHBZ#2248937 + +* Sat Oct 14 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 + +* Fri Jul 21 2023 Fedora Release Engineering - 1.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* 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 + +* Sat Mar 18 2023 Fabio Valentini - 1.4.0-1 +- Update to version 1.4.0; Fixes RHBZ#2179503 + +* Tue Feb 21 2023 Fabio Valentini - 1.3.0-1 +- Update to version 1.3.0; Fixes RHBZ#2125013 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.2.17-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.2.17-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.2.17-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* 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 + +## END: Generated by rpmautospec