From c98fd5f4073c614e64ec8c0f5db0e79c47dc2299 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 27 Jul 2022 15:34:39 +0200 Subject: [PATCH] Initial import (procfs 0.9 compat package) --- .gitignore | 4 ++ README.md | 3 -- rust-procfs0.9.spec | 98 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 103 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-procfs0.9.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fbff911 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/procfs-0.9.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 623fde7..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-procfs0.9 - -The rust-procfs0.9 package diff --git a/rust-procfs0.9.spec b/rust-procfs0.9.spec new file mode 100644 index 0000000..43325df --- /dev/null +++ b/rust-procfs0.9.spec @@ -0,0 +1,98 @@ +# Generated by rust2rpm 22 +# * missing dev-dependency: procinfo (depends on outdated nom 2) +%bcond_with check +%global debug_package %{nil} + +%global crate procfs + +Name: rust-procfs0.9 +Version: 0.9.1 +Release: %autorelease +Summary: Interface to the linux procfs pseudo-filesystem + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/procfs +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Interface to the linux procfs pseudo-filesystem.} + +%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}/COPYRIGHT.txt +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/support.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}+backtrace-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+backtrace-devel %{_description} + +This package contains library source intended for building other packages which +use the "backtrace" feature of the "%{crate}" crate. + +%files -n %{name}+backtrace-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+chrono-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+chrono-devel %{_description} + +This package contains library source intended for building other packages which +use the "chrono" feature of the "%{crate}" crate. + +%files -n %{name}+chrono-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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..6d08a82 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (procfs-0.9.1.crate) = 9946c82b85dcaa53b0f0d98e48fe764b1f196f850eef29ac8abd1f7732c3200fbcf40b616186da43eef7ad8acdb288f5350a0ff176ceb338135f3d2ce38cbbbb