From 891450377c3872ea8a32af1240b2c9736a189f18 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Fri, 20 Jan 2023 11:14:05 -0600 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-portpicker.spec | 68 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 70 insertions(+) create mode 100644 .gitignore create mode 100644 rust-portpicker.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2e30ba9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/portpicker-0.1.1.crate diff --git a/rust-portpicker.spec b/rust-portpicker.spec new file mode 100644 index 0000000..fdff65e --- /dev/null +++ b/rust-portpicker.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate portpicker + +Name: rust-portpicker +Version: 0.1.1 +Release: %autorelease +Summary: Pick a free unused port + +License: Unlicense +URL: https://crates.io/crates/portpicker +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Pick a free unused port.} + +%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..1cacb44 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (portpicker-0.1.1.crate) = 578aec4c72ae8453255be452ef2821b3e51756b69159c366d27ec1ef4ffb1862a0153e85438447d2bde636ae079e1a308c7565eeecda0d19f8e7c961b86c70f6