Initial package (close RHBZ#2249519)

epel9
Benjamin A. Beasley 1 year ago
parent e274f14d68
commit 0f6e168a55

1
.gitignore vendored

@ -0,0 +1 @@
/snap-1.1.0.crate

@ -0,0 +1,69 @@
# Generated by rust2rpm 25
%bcond_without check
%global debug_package %{nil}
%global crate snap
Name: rust-snap
Version: 1.1.0
Release: %autorelease
Summary: Pure Rust implementation of the Snappy compression algorithm
License: BSD-3-Clause
URL: https://crates.io/crates/snap
Source: %{crates_source}
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
A pure Rust implementation of the Snappy compression algorithm. Includes
streaming compression and decompression.}
%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}/COPYING
%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} -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 (snap-1.1.0.crate) = 3d374ece917ab052b260e2a6b5bd509c94b8545601b910c964368612055ba5cf7b748f23873f2ba5adcc47f0f4eb6063e52f6d4ba186653d43e5f5d03c0363b9
Loading…
Cancel
Save