commit e4d1842f85ba3f6d7d421adeeccb84ac9a9f895d Author: MSVSphere Packaging Team Date: Fri Dec 20 17:49:13 2024 +0300 import rust-tendril-0.4.3-10.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e9ac3f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/tendril-0.4.3.crate diff --git a/.rust-tendril.metadata b/.rust-tendril.metadata new file mode 100644 index 0000000..172e42f --- /dev/null +++ b/.rust-tendril.metadata @@ -0,0 +1 @@ +97410500a581b5dd76a7b72dca02527689f3d2a8 SOURCES/tendril-0.4.3.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..391be85 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,16 @@ +[package] +cargo-toml-patch-comments = [ + "drop outdated, example-only rand dev-dependency", + "drop unused support for the obsolete \"encoding\" crate", +] + +[tests] +skip = ["assert_sizes"] +comments = ["skip test for exact size of a struct / enum that fails with Rust 1.64+: https://github.com/servo/tendril/issues/66"] + +[scripts] +prep.post = [ + "# drop unused example program that pulls in outdated dependencies", + "rm -rv examples/", +] + diff --git a/SOURCES/tendril-fix-metadata.diff b/SOURCES/tendril-fix-metadata.diff new file mode 100644 index 0000000..d17369e --- /dev/null +++ b/SOURCES/tendril-fix-metadata.diff @@ -0,0 +1,21 @@ +--- tendril-0.4.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ tendril-0.4.3/Cargo.toml 2024-10-04T12:31:15.531369+00:00 +@@ -17,9 +17,6 @@ + readme = "README.md" + license = "MIT/Apache-2.0" + repository = "https://github.com/servo/tendril" +-[dependencies.encoding] +-version = "0.2" +-optional = true + + [dependencies.encoding_rs] + version = "0.8.12" +@@ -33,8 +30,6 @@ + + [dependencies.utf-8] + version = "0.7" +-[dev-dependencies.rand] +-version = "0.4" + + [features] + bench = [] diff --git a/SPECS/rust-tendril.spec b/SPECS/rust-tendril.spec new file mode 100644 index 0000000..f406920 --- /dev/null +++ b/SPECS/rust-tendril.spec @@ -0,0 +1,178 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 10; + 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 26 +%bcond_without check +%global debug_package %{nil} + +%global crate tendril + +Name: rust-tendril +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 Apache-2.0 +URL: https://crates.io/crates/tendril +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop outdated, example-only rand dev-dependency +# * drop unused support for the obsolete "encoding" crate +Patch: tendril-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%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_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} -p1 +%cargo_prep +# drop unused example program that pulls in outdated dependencies +rm -rv examples/ + +%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 +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.4.3-10 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Oct 04 2024 Fabio Valentini - 0.4.3-10 +- Drop outdated, example-only rand v0.4 dependency and example code + +* Sat Jul 20 2024 Fedora Release Engineering - 0.4.3-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 0.4.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fabio Valentini - 0.4.3-7 +- Drop unused support for the obsolete "encoding" crate + +* Mon Aug 07 2023 Fabio Valentini - 0.4.3-6 +- Regenerate with rust2rpm v24 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.4.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 0.4.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* 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 + +## END: Generated by rpmautospec