commit e7311ff692e1a5d3f44f5e4254623050791747a6 Author: MSVSphere Packaging Team Date: Fri Dec 20 15:28:56 2024 +0300 import rust-eyre-0.6.12-2.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f36fc89 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/eyre-0.6.12.crate diff --git a/.rust-eyre.metadata b/.rust-eyre.metadata new file mode 100644 index 0000000..9fd1570 --- /dev/null +++ b/.rust-eyre.metadata @@ -0,0 +1 @@ +35ed92566ca9f6a83f7f3e14614d70b3d72675a5 SOURCES/eyre-0.6.12.crate diff --git a/SOURCES/eyre-fix-metadata.diff b/SOURCES/eyre-fix-metadata.diff new file mode 100644 index 0000000..9bad662 --- /dev/null +++ b/SOURCES/eyre-fix-metadata.diff @@ -0,0 +1,26 @@ +--- eyre-0.6.12/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ eyre-0.6.12/Cargo.toml 2024-02-14T15:54:41.554088+00:00 +@@ -41,11 +41,6 @@ + [dependencies.once_cell] + version = "1.18.0" + +-[dependencies.pyo3] +-version = "0.20" +-optional = true +-default-features = false +- + [dev-dependencies.anyhow] + version = "1.0.28" + +@@ -54,11 +49,6 @@ + + [dev-dependencies.futures] + version = "0.3" +-default-features = false +- +-[dev-dependencies.pyo3] +-version = "0.20" +-features = ["auto-initialize"] + default-features = false + + [dev-dependencies.rustversion] diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..d8d0eb0 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +summary = "Flexible concrete Error Reporting type with customizable Reports" + diff --git a/SPECS/rust-eyre.spec b/SPECS/rust-eyre.spec new file mode 100644 index 0000000..44775df --- /dev/null +++ b/SPECS/rust-eyre.spec @@ -0,0 +1,138 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate eyre + +Name: rust-eyre +Version: 0.6.12 +Release: %autorelease +Summary: Flexible concrete Error Reporting type with customizable Reports + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/eyre +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop optional support for PyO3 +Patch: eyre-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Flexible concrete Error Reporting type built on std::error::Error with +customizable Reports.} + +%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 +%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}+auto-install-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+auto-install-devel %{_description} + +This package contains library source intended for building other packages which +use the "auto-install" feature of the "%{crate}" crate. + +%files -n %{name}+auto-install-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+track-caller-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+track-caller-devel %{_description} + +This package contains library source intended for building other packages which +use the "track-caller" feature of the "%{crate}" crate. + +%files -n %{name}+track-caller-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.6.12-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 0.6.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed Feb 14 2024 Fabio Valentini - 0.6.12-1 +- Update to version 0.6.12; Fixes RHBZ#2263949 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.6.8-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.6.8-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Apr 20 2023 Fabio Valentini - 0.6.8-5 +- Skip some doctests that fail to compile with thiserror 1.0.40 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.6.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.6.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jul 15 2022 Fabio Valentini - 0.6.8-2 +- Drop optional pyo3 dependency (version does not match what is in Fedora) + +* Wed Apr 06 2022 Michel Alexandre Salim - 0.6.8-1 +- Initial Fedora package +## END: Generated by rpmautospec