commit a1cd8a52f44b52d31e729c3f76d7658aae48725f Author: MSVSphere Packaging Team Date: Fri Dec 20 15:16:35 2024 +0300 import rust-darling-0.20.10-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e3059f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/darling-0.20.10.crate diff --git a/.rust-darling.metadata b/.rust-darling.metadata new file mode 100644 index 0000000..ab7c659 --- /dev/null +++ b/.rust-darling.metadata @@ -0,0 +1 @@ +bd40a9ca654923a4a3682d85fe499d803a38e2b1 SOURCES/darling-0.20.10.crate diff --git a/SOURCES/darling-fix-metadata-auto.diff b/SOURCES/darling-fix-metadata-auto.diff new file mode 100644 index 0000000..f1c27b6 --- /dev/null +++ b/SOURCES/darling-fix-metadata-auto.diff @@ -0,0 +1,15 @@ +--- darling-0.20.10/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ darling-0.20.10/Cargo.toml 2024-08-09T18:04:15.370031+00:00 +@@ -49,11 +49,6 @@ + diagnostics = ["darling_core/diagnostics"] + suggestions = ["darling_core/suggestions"] + +-[target."cfg(compiletests)".dev-dependencies.rustversion] +-version = "1.0.9" +- +-[target."cfg(compiletests)".dev-dependencies.trybuild] +-version = "1.0.38" +- + [badges.maintenance] + status = "actively-developed" ++ diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..4f0ef64 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +summary = "Parse attributes into structs for custom derive implementations" + diff --git a/SPECS/rust-darling.spec b/SPECS/rust-darling.spec new file mode 100644 index 0000000..2c40757 --- /dev/null +++ b/SPECS/rust-darling.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 = 1; + 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 darling + +Name: rust-darling +Version: 0.20.10 +Release: %autorelease +Summary: Parse attributes into structs for custom derive implementations + +License: MIT +URL: https://crates.io/crates/darling +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: darling-fix-metadata-auto.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A proc-macro library for reading attributes into structs when +implementing custom derives.} + +%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 +%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}+diagnostics-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+diagnostics-devel %{_description} + +This package contains library source intended for building other packages which +use the "diagnostics" feature of the "%{crate}" crate. + +%files -n %{name}+diagnostics-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+suggestions-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+suggestions-devel %{_description} + +This package contains library source intended for building other packages which +use the "suggestions" feature of the "%{crate}" crate. + +%files -n %{name}+suggestions-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.20.10-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Aug 09 2024 Fabio Valentini - 0.20.10-1 +- Update to version 0.20.10; Fixes RHBZ#2296628 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.20.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Mar 18 2024 Fabio Valentini - 0.20.8-1 +- Update to version 0.20.8; Fixes RHBZ#2262037 + +* Tue Jan 30 2024 Fabio Valentini - 0.20.4-1 +- Update to version 0.20.4; Fixes RHBZ#2261838 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.20.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Tue Aug 01 2023 Fabio Valentini - 0.20.3-1 +- Update to version 0.20.3; Fixes RHBZ#2190303 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.14.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Mar 16 2023 Fabio Valentini - 0.14.4-1 +- Update to version 0.14.4; Fixes RHBZ#2177072 + +* Tue Feb 07 2023 Fabio Valentini - 0.14.3-1 +- Update to version 0.14.3; Fixes RHBZ#2167533 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.14.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Dec 06 2022 Fabio Valentini - 0.14.2-1 +- Update to version 0.14.2; Fixes RHBZ#2071024 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.13.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jul 07 2022 Fabio Valentini - 0.13.4-1 +- Update to version 0.13.4 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.13.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Mon Dec 20 2021 Fabio Valentini - 0.13.1-1 +- Update to version 0.13.1; Fixes RHBZ#1947465 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.12.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sat Feb 27 2021 Fabio Valentini - 0.12.2-1 +- Update to version 0.12.2. + +* Wed Jan 27 2021 Fedora Release Engineering - 0.10.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Dec 12 2020 Fabio Valentini - 0.10.3-1 +- Update to version 0.10.3. + +* Sat Aug 01 2020 Fedora Release Engineering - 0.10.2-4 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.10.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.10.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Dec 05 14:49:34 CET 2019 Igor Gnatenko - 0.10.2-1 +- Update to 0.10.2 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.9.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jun 22 12:45:15 CEST 2019 Igor Gnatenko - 0.9.0-2 +- Regenerate + +* Mon Mar 25 19:33:25 CET 2019 Igor Gnatenko - 0.9.0-1 +- Update to 0.9.0 + +* Mon Mar 18 21:50:13 CET 2019 Igor Gnatenko - 0.8.6-1 +- Update to 0.8.6 + +* Wed Mar 13 2019 Igor Gnatenko - 0.8.5-1 +- Initial package + +## END: Generated by rpmautospec