From 43a8edf06de132aa74bb9b5ab057051b59cac63a Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Mon, 4 Apr 2022 15:45:20 -0700 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 2 + rust-nu-json.spec | 94 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 97 insertions(+) create mode 100644 .gitignore create mode 100644 rust-nu-json.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0a2899b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/nu-json-0.42.0.crate +/nu-json-0.60.0.crate diff --git a/rust-nu-json.spec b/rust-nu-json.spec new file mode 100644 index 0000000..dd2560e --- /dev/null +++ b/rust-nu-json.spec @@ -0,0 +1,94 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate nu-json + +Name: rust-%{crate} +Version: 0.60.0 +Release: %autorelease +Summary: Fork of serde-hjson + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/nu-json +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Fork of serde-hjson.} + +%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 +%{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}+linked-hash-map-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+linked-hash-map-devel %{_description} + +This package contains library source intended for building other packages which +use the "linked-hash-map" feature of the "%{crate}" crate. + +%files -n %{name}+linked-hash-map-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+preserve_order-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+preserve_order-devel %{_description} + +This package contains library source intended for building other packages which +use the "preserve_order" feature of the "%{crate}" crate. + +%files -n %{name}+preserve_order-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..4278155 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (nu-json-0.60.0.crate) = 1a201a02e6c9c4052c516bc02961b6ce8121d57e1977c347819ff2e5c9b981fd5bbdc316bf51aa83b315182c29cf8ba7f205b2b3d88ce52b0739a794edfb571f