From d0048725fc8c4351baf915015f94a88747909c64 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 15:58:49 +0300 Subject: [PATCH] import rust-idna-0.5.0-4.el10 --- .gitignore | 1 + .rust-idna.metadata | 1 + SOURCES/idna-fix-metadata.diff | 12 ++ SOURCES/rust2rpm.toml | 6 + SPECS/rust-idna.spec | 199 +++++++++++++++++++++++++++++++++ 5 files changed, 219 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-idna.metadata create mode 100644 SOURCES/idna-fix-metadata.diff create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-idna.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..54c0cf7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/idna-0.5.0.crate diff --git a/.rust-idna.metadata b/.rust-idna.metadata new file mode 100644 index 0000000..86d7d98 --- /dev/null +++ b/.rust-idna.metadata @@ -0,0 +1 @@ +796dd3895e4dc951631a3cad8242862e26a849b3 SOURCES/idna-0.5.0.crate diff --git a/SOURCES/idna-fix-metadata.diff b/SOURCES/idna-fix-metadata.diff new file mode 100644 index 0000000..5278727 --- /dev/null +++ b/SOURCES/idna-fix-metadata.diff @@ -0,0 +1,12 @@ +--- idna-0.5.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ idna-0.5.0/Cargo.toml 2024-09-14T19:58:41.428643+00:00 +@@ -50,9 +50,6 @@ + [dev-dependencies.assert_matches] + version = "1.3" + +-[dev-dependencies.bencher] +-version = "0.1" +- + [dev-dependencies.serde_json] + version = "1.0" + diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..2464c4b --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,6 @@ +[package] +summary = "IDNA (Internationalizing Domain Names in Applications) and Punycode" +cargo-toml-patch-comments = [ + "drop unused, benchmark-only bencher dev-dependency", +] + diff --git a/SPECS/rust-idna.spec b/SPECS/rust-idna.spec new file mode 100644 index 0000000..2615075 --- /dev/null +++ b/SPECS/rust-idna.spec @@ -0,0 +1,199 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 4; + 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 idna + +Name: rust-idna +Version: 0.5.0 +Release: %autorelease +Summary: IDNA (Internationalizing Domain Names in Applications) and Punycode + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/idna +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only bencher dev-dependency +Patch: idna-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +IDNA (Internationalizing Domain Names in Applications) and Punycode.} + +%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 +%{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}+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 + +%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 - 0.5.0-4 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Sep 14 2024 Fabio Valentini - 0.5.0-4 +- Drop unused, benchmark-only bencher dev-dependency + +* Fri Jul 19 2024 Fedora Release Engineering - 0.5.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jan 04 2024 Fabio Valentini - 0.5.0-1 +- Update to version 0.5.0; Fixes RHBZ#2251085 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jul 13 2023 Fabio Valentini - 0.4.0-1 +- Update to version 0.4.0; Fixes RHBZ#2212342 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Mon Dec 12 2022 Fabio Valentini - 0.3.0-1 +- Update to version 0.3.0; Fixes RHBZ#2125175 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.2.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.2.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Jul 27 2021 Fedora Release Engineering - 0.2.3-2 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Apr 16 2021 Fabio Valentini - 0.2.3-1 +- Update to version 0.2.3. +- Fixes RHBZ#1950281 + +* Sat Feb 27 2021 Fabio Valentini - 0.2.2-1 +- Update to version 0.2.2. + +* Sun Feb 07 2021 Fabio Valentini - 0.2.1-1 +- Update to version 0.2.1. +- Fixes RHBZ#1925499 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sun Aug 25 09:29:37 CEST 2019 Igor Gnatenko - 0.2.0-1 +- Update to 0.2.0 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.1.5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jun 20 09:23:52 CEST 2019 Igor Gnatenko - 0.1.5-5 +- Regenerate + +* Sat Feb 02 2019 Fedora Release Engineering - 0.1.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Nov 03 2018 Igor Gnatenko - 0.1.5-3 +- Adapt to new packaging + +* Sat Jul 14 2018 Fedora Release Engineering - 0.1.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jul 06 2018 Igor Gnatenko - 0.1.5-1 +- Update to 0.1.5 + +* Tue Mar 13 2018 Igor Gnatenko - 0.1.4-4 +- Bump rustc-test to 0.3 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.1.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 08 2018 Igor Gnatenko - 0.1.4-2 +- Rebuild for rust-packaging v5 + +* Fri Nov 10 2017 Igor Gnatenko - 0.1.4-1 +- Update to 0.1.4 + +* Wed Jul 05 2017 Igor Gnatenko - 0.1.2-1 +- Initial package + +## END: Generated by rpmautospec