parent
9dd4624c14
commit
030a7e5126
@ -0,0 +1,2 @@
|
||||
/nu-path-0.60.0.crate
|
||||
/nu-path-LICENSE
|
@ -0,0 +1,76 @@
|
||||
# Generated by rust2rpm 21
|
||||
%bcond_without check
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global crate nu-path
|
||||
|
||||
Name: rust-%{crate}
|
||||
Version: 0.60.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Path handling library for Nushell
|
||||
|
||||
# Upstream license specification: MIT
|
||||
License: MIT
|
||||
URL: https://crates.io/crates/nu-path
|
||||
Source: %{crates_source}
|
||||
# license text not included yet in most crates
|
||||
# see https://github.com/nushell/nushell/pull/5094
|
||||
Source1: https://raw.githubusercontent.com/nushell/nushell/main/LICENSE#/%{crate}-LICENSE
|
||||
|
||||
ExclusiveArch: %{rust_arches}
|
||||
|
||||
BuildRequires: rust-packaging >= 21
|
||||
|
||||
%global _description %{expand:
|
||||
Path handling library for Nushell.}
|
||||
|
||||
%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 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
|
||||
cp -p %{SOURCE1} LICENSE
|
||||
%cargo_prep
|
||||
|
||||
%generate_buildrequires
|
||||
%cargo_generate_buildrequires
|
||||
|
||||
%build
|
||||
%cargo_build
|
||||
|
||||
%install
|
||||
%cargo_install
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%cargo_test
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Apr 04 2022 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.60.0-1
|
||||
- Initial package
|
@ -0,0 +1,2 @@
|
||||
SHA512 (nu-path-0.60.0.crate) = b1dc297900db7e2b829f95f47f4af200186f0d896d0735f98adf0b6c4dfb5a4a02d12c44b4f30c62f9590bdd30990cbd69675ecddd727fba898537e58bff97a5
|
||||
SHA512 (nu-path-LICENSE) = 2d34e911a4a466733002770531ea8527c3fe8d18a2d9b06de9a716008d6b03be8b623eaa7d1840d96b42463ec524d2351b3816c9975b872bf17f748360d2b27e
|
Loading…
Reference in new issue