Davide Cavalca 4 years ago
parent bfddd0f422
commit a2744b8767

1
.gitignore vendored

@ -0,0 +1 @@
/vsprintf-2.0.0.crate

@ -0,0 +1,75 @@
# Generated by rust2rpm 16
%bcond_without check
%global debug_package %{nil}
%global crate vsprintf
Name: rust-%{crate}
Version: 2.0.0
Release: 1%{?dist}
Summary: Rust bindings to the libc vsprintf function
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/vsprintf
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Rust bindings to the libc vsprintf function.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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
* Fri May 07 09:20:25 PDT 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 2.0.0-1
- Initial package

@ -0,0 +1 @@
SHA512 (vsprintf-2.0.0.crate) = 0db4b0a607eebe6592f26a96d832bbba0d3807ccd73472f2250c5e77b73b58439e876a961999e51796485609fbd1bcd89ca4e561c318fa86021285c495dfa0a1
Loading…
Cancel
Save