commit b8be94e8c3619a515ef318c50ae4c7c1b942ac97 Author: tigro Date: Mon Jan 15 19:09:01 2024 +0300 import rust-tendril-0.4.3-3.el9 diff --git a/.rust-tendril.metadata b/.rust-tendril.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/tendril-0.4.3.crate b/SOURCES/tendril-0.4.3.crate new file mode 100644 index 0000000..53e0c41 Binary files /dev/null and b/SOURCES/tendril-0.4.3.crate differ diff --git a/SPECS/rust-tendril.spec b/SPECS/rust-tendril.spec new file mode 100644 index 0000000..21c95f1 --- /dev/null +++ b/SPECS/rust-tendril.spec @@ -0,0 +1,163 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + 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 21 +%bcond_without check +%global debug_package %{nil} + +%global crate tendril + +Name: rust-%{crate} +Version: 0.4.3 +Release: %autorelease +Summary: Compact buffer/string type for zero-copy parsing + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/tendril +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Compact buffer/string type for zero-copy parsing.} + +%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}/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}+bench-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bench-devel %{_description} + +This package contains library source intended for building other packages which +use the "bench" feature of the "%{crate}" crate. + +%files -n %{name}+bench-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+encoding-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+encoding-devel %{_description} + +This package contains library source intended for building other packages which +use the "encoding" feature of the "%{crate}" crate. + +%files -n %{name}+encoding-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+encoding_rs-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+encoding_rs-devel %{_description} + +This package contains library source intended for building other packages which +use the "encoding_rs" feature of the "%{crate}" crate. + +%files -n %{name}+encoding_rs-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 +# * skip test for exact size of a struct / enum that fails with Rust 1.64+: +# https://github.com/servo/tendril/issues/66 +%cargo_test -- -- --skip assert_sizes +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.4.3-3 +- Rebuilt for MSVSphere 9.3 + +* Wed Dec 14 2022 Fabio Valentini - 0.4.3-3 +- Ignore test failures caused by struct / enum size changes in Rust 1.64+ + +* Sat Jul 23 2022 Fedora Release Engineering - 0.4.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Mar 29 2022 Fabio Valentini - 0.4.3-1 +- Update to version 0.4.3; Fixes RHBZ#2068972 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.4.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.4.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.4.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Jan 09 2021 Fabio Valentini - 0.4.2-1 +- Update to version 0.4.2. +- Fixes RHBZ#1914443 + +* Sat Aug 01 2020 Fedora Release Engineering - 0.4.1-6 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.4.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.4.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Jun 23 10:27:28 CEST 2019 Igor Gnatenko - 0.4.1-2 +- Regenerate + +* Mon Mar 11 2019 Igor Gnatenko - 0.4.1-1 +- Initial package +