commit 1faa0130c0899dece4c0cceb2564b14e61904d1b Author: tigro Date: Mon Jan 15 22:45:02 2024 +0300 import rust-snap-1.1.1-1.el9 diff --git a/.rust-snap.metadata b/.rust-snap.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/snap-1.1.1.crate b/SOURCES/snap-1.1.1.crate new file mode 100644 index 0000000..ddc1a00 Binary files /dev/null and b/SOURCES/snap-1.1.1.crate differ diff --git a/SPECS/rust-snap.spec b/SPECS/rust-snap.spec new file mode 100644 index 0000000..ce87e31 --- /dev/null +++ b/SPECS/rust-snap.spec @@ -0,0 +1,86 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate snap + +Name: rust-snap +Version: 1.1.1 +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 +* Mon Jan 15 2024 Arkady L. Shane - 1.1.1-1 +- Rebuilt for MSVSphere 9.3 + +* Tue Dec 05 2023 Benjamin A. Beasley - 1.1.1-1 +- Update to 1.1.1 (close RHBZ#2252979) + +* Mon Nov 13 2023 Benjamin A. Beasley - 1.1.0-1 +- Initial package (close RHBZ#2249519)