From 77d814335dd9601cfc6de6683a08ecd172859c39 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Tue, 30 May 2023 12:18:59 -0500 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-is-wsl.spec | 68 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 70 insertions(+) create mode 100644 .gitignore create mode 100644 rust-is-wsl.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3f194ac --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/is-wsl-0.4.0.crate diff --git a/rust-is-wsl.spec b/rust-is-wsl.spec new file mode 100644 index 0000000..ae7c05a --- /dev/null +++ b/rust-is-wsl.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate is-wsl + +Name: rust-is-wsl +Version: 0.4.0 +Release: %autorelease +Summary: Checks if the process is running inside Windows Subsystem for Linux + +License: MIT +URL: https://crates.io/crates/is-wsl +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Checks if the process is running inside Windows Subsystem for Linux.} + +%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}/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..6b05560 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (is-wsl-0.4.0.crate) = 69ffd419eb4de2e50ef4e61efca76ec4547216957d5422ac7b2bde85264080c2f522714aa40b5a6566c25eaf791d12ec0df09afe3060cc43087d18510f33d049