|
|
|
@ -1,10 +1,10 @@
|
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
|
# Generated by rust2rpm 25
|
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
%global crate weezl
|
|
|
|
|
|
|
|
|
|
Name: rust-weezl
|
|
|
|
|
Version: 0.1.7
|
|
|
|
|
Version: 0.1.8
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Fast LZW compression and decompression
|
|
|
|
|
|
|
|
|
@ -12,10 +12,10 @@ License: MIT OR Apache-2.0
|
|
|
|
|
URL: https://crates.io/crates/weezl
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
|
# * drop unused, benchmark-only criterion dev-dependency to speed up builds
|
|
|
|
|
# * drop unused, benchmark-only criterion dev-dependency
|
|
|
|
|
Patch: weezl-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Fast LZW compression and decompression.}
|
|
|
|
@ -24,12 +24,16 @@ Fast LZW compression and decompression.}
|
|
|
|
|
|
|
|
|
|
%package -n %{crate}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
# MIT OR Apache-2.0
|
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
|
# LICENSE.dependencies contains a full license breakdown
|
|
|
|
|
|
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
|
%license LICENSE-APACHE
|
|
|
|
|
%license LICENSE-MIT
|
|
|
|
|
%license LICENSE.dependencies
|
|
|
|
|
%doc Changes.md
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{_bindir}/lzw
|
|
|
|
@ -111,7 +115,7 @@ use the "std" feature of the "%{crate}" crate.
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
@ -119,6 +123,8 @@ use the "std" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cargo_build
|
|
|
|
|
%{cargo_license_summary}
|
|
|
|
|
%{cargo_license} > LICENSE.dependencies
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cargo_install
|
|
|
|
|