From 521a72e24e6bcd6a52cc4116fecbad45da889d98 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 16:41:50 +0300 Subject: [PATCH] import rust-proc-macro-hack-0.5.20-4.el10 --- .gitignore | 1 + .rust-proc-macro-hack.metadata | 1 + SOURCES/README.md | 3 + SOURCES/proc-macro-hack-fix-metadata.diff | 11 ++ SPECS/rust-proc-macro-hack.spec | 169 ++++++++++++++++++++++ 5 files changed, 185 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-proc-macro-hack.metadata create mode 100644 SOURCES/README.md create mode 100644 SOURCES/proc-macro-hack-fix-metadata.diff create mode 100644 SPECS/rust-proc-macro-hack.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..177d940 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/proc-macro-hack-0.5.20+deprecated.crate diff --git a/.rust-proc-macro-hack.metadata b/.rust-proc-macro-hack.metadata new file mode 100644 index 0000000..03e09b7 --- /dev/null +++ b/.rust-proc-macro-hack.metadata @@ -0,0 +1 @@ +91e5472c000935b61aa13e9bef2095bd464f7d64 SOURCES/proc-macro-hack-0.5.20+deprecated.crate diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..a476a99 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# rust-proc-macro-hack + +The rust-proc-macro-hack package \ No newline at end of file diff --git a/SOURCES/proc-macro-hack-fix-metadata.diff b/SOURCES/proc-macro-hack-fix-metadata.diff new file mode 100644 index 0000000..f4c0773 --- /dev/null +++ b/SOURCES/proc-macro-hack-fix-metadata.diff @@ -0,0 +1,11 @@ +--- proc-macro-hack-0.5.20+deprecated/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ proc-macro-hack-0.5.20+deprecated/Cargo.toml 2023-02-03T13:45:03.794589+00:00 +@@ -13,7 +13,7 @@ + edition = "2018" + rust-version = "1.31" + name = "proc-macro-hack" +-version = "0.5.20+deprecated" ++version = "0.5.20" + authors = ["David Tolnay "] + description = "Procedural macros in expression position" + readme = "README.md" diff --git a/SPECS/rust-proc-macro-hack.spec b/SPECS/rust-proc-macro-hack.spec new file mode 100644 index 0000000..d59737c --- /dev/null +++ b/SPECS/rust-proc-macro-hack.spec @@ -0,0 +1,169 @@ +## 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 23 +# * demo-hack is not packaged +%bcond_with check +%global debug_package %{nil} + +%global crate proc-macro-hack +%global upstream_version 0.5.20+deprecated + +Name: rust-proc-macro-hack +Version: 0.5.20 +Release: %autorelease +Summary: Procedural macros in expression position + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/proc-macro-hack +Source: %{crates_source %{crate} %{upstream_version}} +# Manually created patch for downstream crate metadata changes +# * remove "deprecated" specifier from version string +Patch: proc-macro-hack-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Procedural macros in expression position.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch +# deprecated by upstream: not needed since Rust 1.45 +Provides: deprecated() + +%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 + +%prep +%autosetup -n %{crate}-%{upstream_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.20-4 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.5.20-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.5.20-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.5.20-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Feb 03 2023 Fabio Valentini - 0.5.20-1 +- Update to version 0.5.20+deprecated; Fixes RHBZ#2155059 + +* Sat Jan 21 2023 Fedora Release Engineering - 0.5.19-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.5.19-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.5.19-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sun Nov 28 2021 Igor Raits - 0.5.19-5 +- Regenerate + +* Fri Jul 23 2021 Fedora Release Engineering - 0.5.19-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.5.19-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Nov 9 2020 Fabio Valentini - 0.5.19-1 +- Update to version 0.5.19. +- Fixes RHBZ#1892120 + +* Wed Jul 29 2020 Josh Stone - 0.5.18-1 +- Update to 0.5.18 + +* Wed Jul 29 2020 Fedora Release Engineering - 0.5.16-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon May 25 05:48:20 CEST 2020 Igor Raits - 0.5.16-1 +- Update to 0.5.16 + +* Wed Apr 01 2020 Josh Stone - 0.5.15-1 +- Update to 0.5.15 + +* Thu Mar 26 08:43:57 CET 2020 Igor Raits - 0.5.14-1 +- Update to 0.5.14 + +* Tue Mar 17 2020 Josh Stone - 0.5.12-1 +- Update to 0.5.12 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.5.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Nov 19 2019 Josh Stone - 0.5.11-1 +- Update to 0.5.11 + +* Sun Aug 25 14:29:10 CEST 2019 Igor Gnatenko - 0.5.9-1 +- Update to 0.5.9 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.5.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jul 06 11:21:59 CEST 2019 Igor Gnatenko - 0.5.8-1 +- Update to 0.5.8 + +* Thu May 09 09:03:38 CEST 2019 Igor Gnatenko - 0.5.7-1 +- Update to 0.5.7 + +* Thu May 09 08:24:11 CEST 2019 Igor Gnatenko - 0.5.6-1 +- Update to 0.5.6 + +* Tue Apr 16 2019 Josh Stone - 0.5.5-1 +- Update to 0.5.5 + +* Wed Mar 13 2019 Igor Gnatenko - 0.5.4-1 +- Initial package + +## END: Generated by rpmautospec