Initial Fedora package

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
epel9
Michel Alexandre Salim 3 years ago
parent dbd1730691
commit 43a8edf06d

2
.gitignore vendored

@ -0,0 +1,2 @@
/nu-json-0.42.0.crate
/nu-json-0.60.0.crate

@ -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

@ -0,0 +1 @@
SHA512 (nu-json-0.60.0.crate) = 1a201a02e6c9c4052c516bc02961b6ce8121d57e1977c347819ff2e5c9b981fd5bbdc316bf51aa83b315182c29cf8ba7f205b2b3d88ce52b0739a794edfb571f
Loading…
Cancel
Save