commit 43919671da0d5c0fc608ebf0724d3562f11526b8 Author: tigro Date: Mon Nov 20 11:40:34 2023 +0300 import rust-proc-macro-hack-0.5.20-1.el9 diff --git a/.rust-proc-macro-hack.metadata b/.rust-proc-macro-hack.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/proc-macro-hack-0.5.20+deprecated.crate b/SOURCES/proc-macro-hack-0.5.20+deprecated.crate new file mode 100644 index 0000000..7bb45fb Binary files /dev/null and b/SOURCES/proc-macro-hack-0.5.20+deprecated.crate differ 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..2121329 --- /dev/null +++ b/SPECS/rust-proc-macro-hack.spec @@ -0,0 +1,152 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.1) +## 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 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 +* Mon Nov 20 2023 Arkady L. Shane - 0.5.20-1 +- Rebuilt for MSVSphere 9.2 + +* Fri Feb 03 2023 Fabio Valentini - 0.5.20-1 +- Update to version 0.5.20+deprecated; Fixes RHBZ#2155059 + +* Wed Dec 29 2021 Igor Raits - 0.5.19-6 +- 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 +