commit 65463e46dab7911c26225ca002ea50a85f23fd2a Author: MSVSphere Packaging Team Date: Fri Dec 20 18:03:51 2024 +0300 import rust-url-2.5.2-3.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..12ce23e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/url-2.5.2.crate diff --git a/.rust-url.metadata b/.rust-url.metadata new file mode 100644 index 0000000..184952d --- /dev/null +++ b/.rust-url.metadata @@ -0,0 +1 @@ +5395620081cacfdf83ba64dcefa4a623820d5423 SOURCES/url-2.5.2.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..f9af4b2 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,9 @@ +[package] +summary = "URL library for Rust, based on the WHATWG URL Standard" +cargo-toml-patch-comments = [ + "drop unused, benchmark-only bencher dev-dependency", +] + +[features] +hide = ["debugger_visualizer"] + diff --git a/SOURCES/url-fix-metadata-auto.diff b/SOURCES/url-fix-metadata-auto.diff new file mode 100644 index 0000000..bc8c5c5 --- /dev/null +++ b/SOURCES/url-fix-metadata-auto.diff @@ -0,0 +1,8 @@ +--- url-2.5.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ url-2.5.2/Cargo.toml 2024-09-14T19:38:56.029755+00:00 +@@ -82,5 +82,3 @@ + default = [] + expose_internals = [] + +-[target."cfg(all(target_arch = \"wasm32\", target_os = \"unknown\"))".dev-dependencies.wasm-bindgen-test] +-version = "0.3" diff --git a/SOURCES/url-fix-metadata.diff b/SOURCES/url-fix-metadata.diff new file mode 100644 index 0000000..c96a6c7 --- /dev/null +++ b/SOURCES/url-fix-metadata.diff @@ -0,0 +1,24 @@ +--- url-2.5.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ url-2.5.2/Cargo.toml 2024-09-14T19:40:12.947182+00:00 +@@ -48,11 +48,6 @@ + path = "tests/wpt.rs" + harness = false + +-[[bench]] +-name = "parse_url" +-path = "benches/parse_url.rs" +-harness = false +- + [dependencies.form_urlencoded] + version = "1.2.1" + +@@ -67,9 +62,6 @@ + features = ["derive"] + optional = true + +-[dev-dependencies.bencher] +-version = "0.1" +- + [dev-dependencies.serde] + version = "1.0" + features = ["derive"] diff --git a/SPECS/rust-url.spec b/SPECS/rust-url.spec new file mode 100644 index 0000000..9f936bc --- /dev/null +++ b/SPECS/rust-url.spec @@ -0,0 +1,222 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## 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 26 +%bcond_without check +%global debug_package %{nil} + +%global crate url + +Name: rust-url +Version: 2.5.2 +Release: %autorelease +Summary: URL library for Rust, based on the WHATWG URL Standard + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/url +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: url-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only bencher dev-dependency +Patch: url-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +URL library for Rust, based on the WHATWG URL Standard.} + +%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}+expose_internals-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+expose_internals-devel %{_description} + +This package contains library source intended for building other packages which +use the "expose_internals" feature of the "%{crate}" crate. + +%files -n %{name}+expose_internals-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 + +%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 - 2.5.2-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Sep 14 2024 Fabio Valentini - 2.5.2-3 +- Drop unused, benchmark-only bencher dev-dependency + +* Sat Jul 20 2024 Fedora Release Engineering - 2.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu Jul 18 2024 blinxen - 2.5.2-1 +- Update to version 2.5.2; Fixes RHBZ#2291179 + +* Sat Jan 27 2024 Fedora Release Engineering - 2.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jan 04 2024 Fabio Valentini - 2.5.0-1 +- Update to version 2.5.0; Fixes RHBZ#2251081 + +* Mon Aug 28 2023 Fabio Valentini - 2.4.1-1 +- Update to version 2.4.1; Fixes RHBZ#2235305 + +* Sat Jul 22 2023 Fedora Release Engineering - 2.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jul 13 2023 Fabio Valentini - 2.4.0-1 +- Update to version 2.4.0; Fixes RHBZ#2212332 + +* Sat Jan 21 2023 Fedora Release Engineering - 2.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Dec 15 2022 Fabio Valentini - 2.3.1-1 +- Update to version 2.3.1; Fixes RHBZ#2124906 + +* Sat Jul 23 2022 Fedora Release Engineering - 2.2.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 2.2.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 2.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sun May 09 2021 Fabio Valentini - 2.2.2-1 +- Update to version 2.2.2. +- Fixes RHBZ#1958215 + +* Sat Feb 27 2021 Fabio Valentini - 2.2.1-1 +- Update to version 2.2.1. + +* Wed Jan 27 2021 Fedora Release Engineering - 2.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Nov 07 2020 Fabio Valentini - 2.2.0-1 +- Update to version 2.2.0. +- Fixes RHBZ#1895285 + +* Wed Jul 29 2020 Fedora Release Engineering - 2.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 2.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jan 15 2020 Josh Stone - 2.1.1-1 +- Update to 2.1.1 + +* Sun Aug 25 08:50:10 CEST 2019 Igor Gnatenko - 2.1.0-1 +- Update to 2.1.0 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.7.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jun 20 00:12:03 CEST 2019 Igor Gnatenko - 1.7.2-4 +- Regenerate + +* Sun Mar 10 2019 Igor Gnatenko - 1.7.2-3 +- Do not pull optional dependencies + +* Sat Feb 02 2019 Fedora Release Engineering - 1.7.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Nov 13 2018 Josh Stone - 1.7.2-1 +- Update to 1.7.2 + +* Sat Nov 03 2018 Igor Gnatenko - 1.7.1-5 +- Adapt to new packaging + +* Sat Jul 28 2018 Igor Gnatenko - 1.7.1-4 +- Rebuild to trigger tests + +* Sat Jul 14 2018 Fedora Release Engineering - 1.7.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jul 06 2018 Igor Gnatenko - 1.7.1-2 +- Do not ignore test results + +* Fri Jul 06 2018 Igor Gnatenko - 1.7.1-1 +- Update to 1.7.1 + +* Tue Mar 13 2018 Igor Gnatenko - 1.7.0-2 +- Bump rustc-test to 0.3 + +* Wed Feb 21 2018 Igor Gnatenko - 1.7.0-1 +- Update to 1.7.0 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.6.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 08 2018 Igor Gnatenko - 1.6.0-2 +- Rebuild for rust-packaging v5 + +* Fri Nov 10 2017 Igor Gnatenko - 1.6.0-1 +- Initial package + +## END: Generated by rpmautospec