From bc92b2863fb2e72a23bbb906d67af8dabce47c6f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 20 Sep 2023 11:38:42 +0200 Subject: [PATCH] Initial import (partition-identity 0.2 compat package) --- .gitignore | 1 + README.md | 3 -- rust-partition-identity0.2.spec | 69 +++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-partition-identity0.2.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7d0fcc2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/partition-identity-0.2.8.crate diff --git a/README.md b/README.md deleted file mode 100644 index c452dee..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-partition-identity0.2 - -The rust-partition-identity0.2 package diff --git a/rust-partition-identity0.2.spec b/rust-partition-identity0.2.spec new file mode 100644 index 0000000..14b7e23 --- /dev/null +++ b/rust-partition-identity0.2.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate partition-identity + +Name: rust-partition-identity0.2 +Version: 0.2.8 +Release: %autorelease +Summary: Find the ID of a device by its path, or find a device path by its ID + +License: MIT +URL: https://crates.io/crates/partition-identity +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Find the ID of a device by its path, or find a device path by its ID.} + +%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 +%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 + +%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..87329d8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (partition-identity-0.2.8.crate) = f7879759c33649b7a33cf66c5bdc69006c06c7dc41e4b0de208b55ab3defb597178ed6770f00d7ed91ac072c9622268be6da3ad5581adb43de3f6a89d03ed9fb