From f2d637d754489524579aa8ad8fbbac6cce3ba911 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 15:03:13 +0300 Subject: [PATCH] import rust-cargo_metadata-0.18.1-4.el10 --- .gitignore | 1 + .rust-cargo_metadata.metadata | 1 + SOURCES/cargo_metadata-fix-metadata.diff | 11 ++ SOURCES/rust2rpm.toml | 12 ++ SPECS/rust-cargo_metadata.spec | 195 +++++++++++++++++++++++ 5 files changed, 220 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-cargo_metadata.metadata create mode 100644 SOURCES/cargo_metadata-fix-metadata.diff create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-cargo_metadata.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5bc4b3b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/cargo_metadata-0.18.1.crate diff --git a/.rust-cargo_metadata.metadata b/.rust-cargo_metadata.metadata new file mode 100644 index 0000000..75b6e04 --- /dev/null +++ b/.rust-cargo_metadata.metadata @@ -0,0 +1 @@ +55e8bc0075e99a988b0b6e2f9038ee7808d5063c SOURCES/cargo_metadata-0.18.1.crate diff --git a/SOURCES/cargo_metadata-fix-metadata.diff b/SOURCES/cargo_metadata-fix-metadata.diff new file mode 100644 index 0000000..f135811 --- /dev/null +++ b/SOURCES/cargo_metadata-fix-metadata.diff @@ -0,0 +1,11 @@ +--- cargo_metadata-0.18.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ cargo_metadata-0.18.1/Cargo.toml 2024-09-20T22:52:15.103429+00:00 +@@ -32,7 +32,7 @@ + version = "0.1.2" + + [dependencies.derive_builder] +-version = "0.12" ++version = "0.20" + optional = true + + [dependencies.semver] diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..29fc086 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,12 @@ +[features] +enable-all = true + +[tests] +skip = [ + "advanced_feature_configuration", + "all_the_fields", + "basic_workspace_root_package_exists", + "current_dir", +] +comments = ["skip tests that depend on data which is not included in published crates"] + diff --git a/SPECS/rust-cargo_metadata.spec b/SPECS/rust-cargo_metadata.spec new file mode 100644 index 0000000..b0937bb --- /dev/null +++ b/SPECS/rust-cargo_metadata.spec @@ -0,0 +1,195 @@ +## 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 cargo_metadata + +Name: rust-cargo_metadata +Version: 0.18.1 +Release: %autorelease +Summary: Structured access to the output of cargo metadata + +License: MIT +URL: https://crates.io/crates/cargo_metadata +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * bump derive_builder dependency from 0.12 to 0.20 +Patch: cargo_metadata-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Structured access to the output of `cargo metadata`.} + +%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-MIT +%doc %{crate_instdir}/CHANGELOG.md +%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}+builder-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+builder-devel %{_description} + +This package contains library source intended for building other packages which +use the "builder" feature of the "%{crate}" crate. + +%files -n %{name}+builder-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+derive_builder-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+derive_builder-devel %{_description} + +This package contains library source intended for building other packages which +use the "derive_builder" feature of the "%{crate}" crate. + +%files -n %{name}+derive_builder-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unstable-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable-devel %{_description} + +This package contains library source intended for building other packages which +use the "unstable" feature of the "%{crate}" crate. + +%files -n %{name}+unstable-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires -a + +%build +%cargo_build -a + +%install +%cargo_install -a + +%if %{with check} +%check +# * skip tests that depend on data which is not included in published crates +%cargo_test -a -- -- --skip advanced_feature_configuration --skip all_the_fields --skip basic_workspace_root_package_exists --skip current_dir +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.18.1-4 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Sep 20 2024 Fabio Valentini - 0.18.1-4 +- Bump derive_builder dependency from 0.12 to 0.20 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.18.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.18.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Oct 18 2023 Fabio Valentini - 0.18.1-1 +- Update to version 0.18.1; Fixes RHBZ#2238338 + +* Tue Sep 05 2023 Fabio Valentini - 0.17.0-1 +- Update to version 0.17.0; Fixes RHBZ#2225095 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.15.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu May 25 2023 Fabio Valentini - 0.15.4-2 +- Bump derive_builder dependency from 0.11.1 to 0.12 + +* Tue Apr 18 2023 Fabio Valentini - 0.15.4-1 +- Update to version 0.15.4; Fixes RHBZ#2184320 + +* Fri Feb 03 2023 Fabio Valentini - 0.15.3-1 +- Update to version 0.15.3; Fixes RHBZ#2166114 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.15.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Dec 14 2022 Fabio Valentini - 0.15.2-1 +- Update to version 0.15.2; Fixes RHBZ#1833660 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.12.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.12.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.12.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sun Mar 28 2021 Fabio Valentini - 0.12.3-1 +- Update to version 0.12.3. + +* Wed Jan 27 2021 Fedora Release Engineering - 0.10.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Dec 25 12:36:07 CET 2020 Igor Raits - 0.10.0-1 +- Update to 0.10.0 + +* Wed Jul 29 2020 Fedora Release Engineering - 0.9.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.9.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sun Dec 15 13:02:18 CET 2019 Igor Gnatenko - 0.9.1-1 +- Update to 0.9.1 + +* Wed Jul 31 20:53:08 CEST 2019 Robert-André Mauchin - 0.8.1-1 +- Release 0.8.1 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.7.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Mar 22 2019 Josh Stone - 0.7.4-1 +- Update to 0.7.4 + +* Wed Mar 13 2019 Igor Gnatenko - 0.7.3-1 +- Initial package + +## END: Generated by rpmautospec