|
|
@ -1,10 +1,10 @@
|
|
|
|
# Generated by rust2rpm 17
|
|
|
|
# Generated by rust2rpm 20
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
|
|
%global crate zopfli
|
|
|
|
%global crate zopfli
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.4.0
|
|
|
|
Version: 0.5.0
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Rust implementation of a compression algorithm
|
|
|
|
Summary: Rust implementation of a compression algorithm
|
|
|
|
|
|
|
|
|
|
|
@ -12,11 +12,11 @@ Summary: Rust implementation of a compression algorithm
|
|
|
|
License: ASL 2.0
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://crates.io/crates/zopfli
|
|
|
|
URL: https://crates.io/crates/zopfli
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
|
|
|
# Downgrade typed-arena to version 1.7
|
|
|
|
|
|
|
|
Patch0: zopfli-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
|
|
|
|
|
|
@ -25,7 +25,6 @@ Rust implementation of the Zopfli compression algorithm.}
|
|
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
%if ! %{__cargo_skip_build}
|
|
|
|
|
|
|
|
%package -n %{crate}
|
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
# MIT
|
|
|
|
# MIT
|
|
|
@ -38,9 +37,8 @@ License: MIT and ASL 2.0 and Unlicense and zlib
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
%files -n %{crate}
|
|
|
|
%license COPYING
|
|
|
|
%license COPYING
|
|
|
|
%doc README.md
|
|
|
|
%doc CONTRIBUTING.md CONTRIBUTORS README.md
|
|
|
|
%{_bindir}/zopfli-rs
|
|
|
|
%{_bindir}/zopfli
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -53,7 +51,7 @@ which use "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%license COPYING
|
|
|
|
%license COPYING
|
|
|
|
%doc README.md
|
|
|
|
%doc CONTRIBUTING.md CONTRIBUTORS README.md
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
%package -n %{name}+default-devel
|
|
|
@ -62,8 +60,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
which use "default" feature of "%{crate}" crate.
|
|
|
|
use "default" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
@ -80,7 +78,6 @@ which use "default" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
%cargo_install
|
|
|
|
mv %{buildroot}/usr/bin/zopfli %{buildroot}/usr/bin/zopfli-rs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|