|
|
|
@ -1,24 +1,23 @@
|
|
|
|
|
# Generated by rust2rpm 21
|
|
|
|
|
# Generated by rust2rpm 26
|
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
%global crate weezl
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.1.7
|
|
|
|
|
Name: rust-weezl
|
|
|
|
|
Version: 0.1.8
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Fast LZW compression and decompression
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT OR Apache-2.0
|
|
|
|
|
License: MIT or ASL 2.0
|
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
|
URL: https://crates.io/crates/weezl
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
# * drop unused, benchmark-only criterion dev-dependency to speed up builds
|
|
|
|
|
Patch0: weezl-fix-metadata.diff
|
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
|
# * drop unused, benchmark-only criterion dev-dependency
|
|
|
|
|
# * Update the tokio-util dev-dependency to 0.7.x
|
|
|
|
|
# (https://github.com/image-rs/weezl/pull/44)
|
|
|
|
|
Patch: weezl-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Fast LZW compression and decompression.}
|
|
|
|
@ -27,12 +26,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
|
|
|
|
@ -114,7 +117,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
|
|
|
|
@ -122,6 +125,8 @@ use the "std" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cargo_build
|
|
|
|
|
%{cargo_license_summary}
|
|
|
|
|
%{cargo_license} > LICENSE.dependencies
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cargo_install
|
|
|
|
|