File rust-simd-adler32.spec of Package rust-simd-adler32
#
# spec file for package rust-simd-adler32
#
# Copyright (c) 2024 Your Name <you@example.com>.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
%global crate simd-adler32
Name: rust-simd-adler32
Version: 0.3.7
Release: 0
Summary: SIMD-accelerated Adler-32 hash algorithm implementation
Group: Development/Libraries/Rust
License: MIT
URL: https://crates.io/crates/simd-adler32
Source: https://crates.io/api/v1/crates/%crate/%version/download#/%crate-%version.crate
# PATCH-FIX-OPENSUSE simd-adler32-fix-metadata.diff — Manually created patch for downstream crate metadata changes
Patch: simd-adler32-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging >= 21
%if %{with check}
%endif
%global _description %{expand:
A SIMD-accelerated Adler-32 hash algorithm implementation.}
%description %{_description}
%package devel
Summary: %{summary}
Group: Development/Libraries/Rust
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.md
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
Group: Development/Libraries/Rust
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}+const-generics-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+const-generics-devel %{_description}
This package contains library source intended for building other packages which
use the "const-generics" feature of the "%{crate}" crate.
%files -n %{name}+const-generics-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+nightly-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+nightly-devel %{_description}
This package contains library source intended for building other packages which
use the "nightly" feature of the "%{crate}" crate.
%files -n %{name}+nightly-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+std-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+std-devel %{_description}
This package contains library source intended for building other packages which
use the "std" feature of the "%{crate}" crate.
%files -n %{name}+std-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%build
%install
dir=%{buildroot}/%{crate_instdir}; mkdir -pv "$dir"; cp -R ./* $dir/; echo "{\"files\":{},\"package\":\"\"}" > "$dir/.cargo-checksum.json"
%if %{with check}
%check
%endif
%changelog
* Tue Apr 23 17:15:05 EAT 2024 Your Name <you@example.com>
- Version 0.3.7
- Initial package