From abb19d620fedfab25be36e851c10cfd77d4e4fe6 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Fri, 24 Feb 2023 16:21:46 -0600 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-nu-pretty-hex.spec | 68 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 70 insertions(+) create mode 100644 .gitignore create mode 100644 rust-nu-pretty-hex.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c04a937 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/nu-pretty-hex-0.76.0.crate diff --git a/rust-nu-pretty-hex.spec b/rust-nu-pretty-hex.spec new file mode 100644 index 0000000..3d16c8e --- /dev/null +++ b/rust-nu-pretty-hex.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate nu-pretty-hex + +Name: rust-nu-pretty-hex +Version: 0.76.0 +Release: %autorelease +Summary: Pretty hex dump of bytes slice in the common style + +License: MIT +URL: https://crates.io/crates/nu-pretty-hex +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Pretty hex dump of bytes slice in the common style.} + +%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..de71a02 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (nu-pretty-hex-0.76.0.crate) = 3c790b93c88c5bd5a57e174d2548ee317b76bce0e39970a0b73b596dd6c071d7533678746896ea07eb06dc55e92afd36a507a3f822ac9d54769f9969c80a42c0