From bbfb0d8682fec91ea04c302056f0dcd69b7edf37 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 14:58:56 +0300 Subject: [PATCH] import rust-bugreport-0.5.0-7.el10 --- .gitignore | 1 + .rust-bugreport.metadata | 1 + SPECS/rust-bugreport.spec | 189 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 191 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-bugreport.metadata create mode 100644 SPECS/rust-bugreport.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e2deb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/bugreport-0.5.0.crate diff --git a/.rust-bugreport.metadata b/.rust-bugreport.metadata new file mode 100644 index 0000000..ee77407 --- /dev/null +++ b/.rust-bugreport.metadata @@ -0,0 +1 @@ +ca644a6aae159373cf8c987714b0b7e83a9dc623 SOURCES/bugreport-0.5.0.crate diff --git a/SPECS/rust-bugreport.spec b/SPECS/rust-bugreport.spec new file mode 100644 index 0000000..eabbf47 --- /dev/null +++ b/SPECS/rust-bugreport.spec @@ -0,0 +1,189 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 7; + 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 24 +%bcond_without check +%global debug_package %{nil} + +%global crate bugreport + +Name: rust-bugreport +Version: 0.5.0 +Release: %autorelease +Summary: Collect system and environment information for bug reports + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/bugreport +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Collect system and environment information for bug 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}/README.md +%doc %{crate_instdir}/example-report.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}+collector_operating_system-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+collector_operating_system-devel %{_description} + +This package contains library source intended for building other packages which +use the "collector_operating_system" feature of the "%{crate}" crate. + +%files -n %{name}+collector_operating_system-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+format_markdown-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+format_markdown-devel %{_description} + +This package contains library source intended for building other packages which +use the "format_markdown" feature of the "%{crate}" crate. + +%files -n %{name}+format_markdown-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+format_plaintext-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+format_plaintext-devel %{_description} + +This package contains library source intended for building other packages which +use the "format_plaintext" feature of the "%{crate}" crate. + +%files -n %{name}+format_plaintext-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+git-version-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+git-version-devel %{_description} + +This package contains library source intended for building other packages which +use the "git-version" feature of the "%{crate}" crate. + +%files -n %{name}+git-version-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+git_hash-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+git_hash-devel %{_description} + +This package contains library source intended for building other packages which +use the "git_hash" feature of the "%{crate}" crate. + +%files -n %{name}+git_hash-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+sys-info-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+sys-info-devel %{_description} + +This package contains library source intended for building other packages which +use the "sys-info" feature of the "%{crate}" crate. + +%files -n %{name}+sys-info-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -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.0-7 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 0.5.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.5.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Aug 06 2023 Fabio Valentini - 0.5.0-5 +- Regenerate with rust2rpm v24 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.5.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 0.5.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jul 21 2022 Fabio Valentini - 0.5.0-1 +- Update to version 0.5.0; Fixes RHBZ#2071037 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Mon Aug 16 2021 Fabio Valentini - 0.4.1-1 +- Update to version 0.4.1; Fixes RHBZ#1991155 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sun Jul 18 2021 Igor Raits - 0.4.0-1 +- Initial package (closes: RHBZ#1983470) +## END: Generated by rpmautospec